@@ -124,11 +116,11 @@ class ExampleActivity : AppCompatActivity(), MyIdResultListener {
...
@@ -124,11 +116,11 @@ class ExampleActivity : AppCompatActivity(), MyIdResultListener {
}
}
privatefunstartMyId(){
privatefunstartMyId(){
valconfig=MyIdConfig.builder(clientId=/* Your client id */)
valconfig=MyIdConfig.Builder(clientId=/* Your client id */)
.withClientHash(/* Your clientHash */, /* Your clientHashId */)
.withClientHash(/* Your clientHash */, /* Your clientHashId */)
.withPassportData(passportData)
.withPassportData(passportData)
.withBirthDate(dateOfBirth)
.withBirthDate(dateOfBirth)
.withBuildMode(MyIdBuildMode.PRODUCTION)
.withEnvironment(MyIdEnvironment.Production)
.build()
.build()
/*
/*
...
@@ -145,51 +137,43 @@ class ExampleActivity : AppCompatActivity(), MyIdResultListener {
...
@@ -145,51 +137,43 @@ class ExampleActivity : AppCompatActivity(), MyIdResultListener {
Method | Notes | Default
Method | Notes | Default
--- | --- | ---
--- | --- | ---
`withClientHash(clientHash: String, clientHashId: String)` | Provided by MyID sales team | Mandatory, if using withEntryType(MyIdEntryType.AUTH)
`withClientHash(clientHash: String, clientHashId: String)` | Provided by MyID sales team | Mandatory, if using withEntryType(MyIdEntryType.Identification)
`withPassportData(value: String)` | Passport serial number or PINFL data | Optional
`withPassportData(passportData: String)` | Passport serial number or PINFL data | Optional
`withBirthDate(value: String)` | Date of birth. Format: `dd.MM.yyyy` | Optional
`withBirthDate(dateOfBirth: String)` | Date of birth. Format: `dd.MM.yyyy` | Optional
`withMinAge(value: Int)` | To set a specific minimum age to use MyID service | 16
**Note 1.1.** You can customize the screen for entering passport data and date of birth in your
**Note 1.1.** You can customize the screen for entering passport data and date of birth in your
application, in which case you can pass these parameters during initialization to the SDK, otherwise
application, in which case you can pass these parameters during initialization to the SDK, otherwise
the SDK requires the input of passport data and date of birth for user identification.
the SDK requires the input of passport data and date of birth for user identification.
**Note 1.2.** If the `sdk_hash` is empty, blank or string with length other than 32 has been
**Note 1.2.** If the `sdk_hash` is empty, blank or string with length other than 32 has been provided, we will continue showing the credentials screen.
provided, we will continue showing the credentials screen.
**Note 1.3.** If the `externalId` is not empty, has a length of 36 characters and corresponds to the
regular expression UUID4, we will not display a [recommendation](images/screen01.jpg) screen. If a certain number of unsuccessful identification attempts (currently set to 5) occur in MyID within one hour and the `externalId` is not empty, SDK returns to the parent app error message or TTL as `message` in `MyIdException`.
TTL error example:
**Note 1.3.** If the `externalId` is not empty, has a length of 36 characters and corresponds to the regular expression UUID4, we will not display a [recommendation](images/screen01.jpg) screen. If a certain number of unsuccessful identification attempts (currently set to 5) occur in MyID within one hour and the `externalId` is not empty, SDK returns to the parent app error message as `message` in `MyIdException`.
```json
{"ttl":362}
```
**Note 1.4.**`MyIdBuildMode` contains **DEBUG** and **PRODUCTION** modes.
`MyIdEnvironment` contains **Debug** and **Production** modes.
-**DEBUG** is used to sandbox.
-**Debug** is used to sandbox.
-**PRODUCTION** is used to production.
-**Production** is used to production.
**Note 1.5.**`MyIdEntryType` contains **AUTH** and **FACE** types.
**Note 1.5.**`MyIdEntryType` contains **Identification**, **VideoIdentification** and **FaceDetection** types.
-**AUTH** is used to identify the user through the MyID services.
-**Identification** is used to identify the user through the MyID services.
-**FACE** is used to detect a face and returns a picture (bitmap).
-**VideoIdentification** is used to identify the user through the MyID services.
-**FaceDetection** is used to detect a face and returns a picture (bitmap).