Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MYID Public Code
MyID Sample Android
Commits
ef2067d1
Commit
ef2067d1
authored
Feb 01, 2024
by
Javokhir
Browse files
Published 2.2.8 version
parent
bbe9245e
Changes
6
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
ef2067d1
...
...
@@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
## [2.2.78] - 1 Feb, 2024
-
Added configurations for allowing transactions of foreign based end-users
## [2.2.7] - 2 Nov, 2023
-
Added new
`withMinAge(value: Int)`
method for the minimum age to use the MyID service.
...
...
README.md
View file @
ef2067d1
...
...
@@ -45,7 +45,7 @@ repositories {
}
dependencies
{
implementation
(
"uz.myid.sdk.capture:myid-capture-sdk:2.2.
7
"
)
implementation
(
"uz.myid.sdk.capture:myid-capture-sdk:2.2.
8
"
)
}
```
...
...
@@ -145,7 +145,6 @@ Method | Notes | Default
`withScreenOrientation(value: MyIdScreenOrientation)`
| To set a specific screen orientation | MyIdScreenOrientation.FULL
`withImageFormat(value: MyIdImageFormat)`
| To set a specific image format | MyIdImageFormat.PNG
`withOrganizationDetails(value: MyIdOrganizationDetails)`
| Custom Organization Details | Optional
`withPhoto(value: Boolean)`
| Return SDK face bitmap | false
**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
...
...
@@ -178,7 +177,7 @@ val resultListener: MyIdResultListener = object : MyIdResultListener {
override
fun
onSuccess
(
result
:
MyIdResult
)
{
// Get face bitmap and result code
val
bitmap
=
result
.
bitmap
val
bitmap
=
result
.
getGraphicFieldImageByType
(
MyIdGraphicFieldType
.
FACE_PORTRAIT
)
val
code
=
result
.
code
val
comparison
=
result
.
comparison
}
...
...
app/build.gradle
View file @
ef2067d1
...
...
@@ -33,7 +33,7 @@ android {
}
dependencies
{
implementation
(
"com.google.android.material:material:1.1
0
.0"
)
implementation
(
"com.google.android.material:material:1.1
1
.0"
)
implementation
(
"uz.myid.sdk.capture:myid-capture-sdk:2.2.
7
"
)
implementation
(
"uz.myid.sdk.capture:myid-capture-sdk:2.2.
8
"
)
}
\ No newline at end of file
app/src/main/java/uz/myid/sdk/sample/MainActivity.kt
View file @
ef2067d1
...
...
@@ -9,6 +9,7 @@ import uz.myid.android.sdk.capture.MyIdException
import
uz.myid.android.sdk.capture.MyIdResult
import
uz.myid.android.sdk.capture.MyIdResultListener
import
uz.myid.android.sdk.capture.model.MyIdBuildMode
import
uz.myid.android.sdk.capture.model.MyIdGraphicFieldType
import
uz.myid.android.sdk.capture.takeUserResult
import
uz.myid.sdk.sample.databinding.ActivityMainBinding
...
...
@@ -38,8 +39,11 @@ class MainActivity : AppCompatActivity(), MyIdResultListener {
}
override
fun
onSuccess
(
result
:
MyIdResult
)
{
val
bitmap
=
result
.
getGraphicFieldImageByType
(
MyIdGraphicFieldType
.
FACE_PORTRAIT
)
with
(
binding
)
{
imageResult
.
setImageBitmap
(
result
.
bitmap
)
imageResult
.
setImageBitmap
(
bitmap
)
"""
Result code: ${result.code}
Comparison value: ${result.comparison}
...
...
@@ -50,6 +54,7 @@ class MainActivity : AppCompatActivity(), MyIdResultListener {
override
fun
onError
(
e
:
MyIdException
)
{
with
(
binding
)
{
imageResult
.
setImageBitmap
(
null
)
"""
Result error: ${e.message}
Result error code: ${e.code}
...
...
@@ -60,6 +65,7 @@ class MainActivity : AppCompatActivity(), MyIdResultListener {
override
fun
onUserExited
()
{
with
(
binding
)
{
imageResult
.
setImageBitmap
(
null
)
"User exited sdk"
.
also
{
textResult
.
text
=
it
}
}
}
...
...
myid-sdk-2.2.7.zip
deleted
100644 → 0
View file @
bbe9245e
File deleted
myid-sdk-2.2.8.zip
0 → 100644
View file @
ef2067d1
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment