Commit 37f88cdf authored by Javohir Savriy's avatar Javohir Savriy
Browse files

Update README.md

parent 81592d3d
...@@ -40,7 +40,7 @@ dependencies: [ ...@@ -40,7 +40,7 @@ dependencies: [
The SDK is available on Cocoapods and you can include it in your projects by adding the following to your Podfile: The SDK is available on Cocoapods and you can include it in your projects by adding the following to your Podfile:
```ruby ```ruby
pod 'MyIdSDK', '~> 2.4.6' pod 'MyIdSDK', '~> 2.4.7'
``` ```
Run `pod install` to get the SDK. Run `pod install` to get the SDK.
...@@ -85,13 +85,10 @@ class ViewController : UIViewController { ...@@ -85,13 +85,10 @@ class ViewController : UIViewController {
extension ViewController: MyIdClientDelegate { extension ViewController: MyIdClientDelegate {
func onSuccess(result: MyIdResult) { func onSuccess(result: MyIdResult) {
if let code = result.code { // Get face bitmap and result code
print(code)
}
if let comparison = result.comparisonValue { print(result.code)
print(comparison) print(result.comparisonValue)
}
if let image = result.image { if let image = result.image {
print(img) print(img)
...@@ -99,12 +96,14 @@ extension ViewController: MyIdClientDelegate { ...@@ -99,12 +96,14 @@ extension ViewController: MyIdClientDelegate {
} }
func onError(exception: MyIdException) { func onError(exception: MyIdException) {
// Get error message and code
print(exception.code) print(exception.code)
print(exception.message) print(exception.message)
} }
func onUserExited() { func onUserExited() {
print("User exited") // User left the SDK
} }
} }
``` ```
...@@ -162,13 +161,8 @@ extension ViewController: MyIdClientDelegate { ...@@ -162,13 +161,8 @@ extension ViewController: MyIdClientDelegate {
func onSuccess(result: MyIdResult) { func onSuccess(result: MyIdResult) {
// Get face bitmap and result code // Get face bitmap and result code
if let code = result.code { print(result.code)
print(code) print(result.comparisonValue)
}
if let comparison = result.comparisonValue {
print(comparison)
}
if let image = result.image { if let image = result.image {
print(img) print(img)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment