Skip to content

attestr/attestr-ios-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

attestr-ios-sdk

GitHub GitHub release (latest SemVer including pre-releases)

Attestr Framework / SDK For IOS Applications

Installation

attestr-ios-sdk can be installed using Cocoapods. Add the following line to your pod file

pod 'attestr-flowx', '~> 0.8.1'

Usage

  1. Import attestr_flowx
import attestr_flowx
  1. Make your view controller conform to AttestrFlowxEventProtocol and add your implementation to its methods
extension ViewController: AttestrFlowxEventProtocol {
    func onFlowxSuccess(_ data: [String : AnyObject]) {
        // your implementation here
    }

    func onFlowxSkip(_ data: [String : AnyObject]) {
        // your implementation here
    }

    func onFlowxError(_ data: [String : AnyObject]) {
        // your implementation here
    }
}
  1. Create an instance of AttestrFlowx by calling the initialize method
let p = AttestrFlowx().initialize(cl: client key, hs: handshake key, self)

Check this for help on generation of handhshake key

  1. Call the launch method
p?.launch(lc: language code, retry: retry boolean, qr: query parameters dict)

Compatibilty

Made for iPhone and iPad. iOS 11.0+ Swift 4.0+ Xcode 11+

Changelog

For older versions, check CHANGELOG

License

attestr-ios-sdk is distributed under MIT license. Read more in the LICENSE file.

Contact

Write to us at [email protected]