User Information Modification
i. Change Local Authentication Type
Use BsaSdk
's resetBiometricChange()
to reset the biometric authentication information in the app.
Example
kotlin
BsaSdk.getInstance().sdkService.resetBiometricChange(fragmentActivity, object: SdkResponseCallback<AuthBiometricResponse> {
override fun onSuccess(authBiometric: AuthBiometricResponse?) {
// Code to execute after reset
...
}
override fun onFailed(errorResult: ErrorResult?) {
...
}
})
Parameter
- none
Response
Name | Type | Description |
---|---|---|
rtCode | Int | Result code |
rtMsg | String | Result message |
ii. Unregister Device
After deregistration is completed, the device can be used again by re-registering it using the registration information.
Example
kotlin
BsaSdk.getInstance().sdkService.unRegisterDevice(userKey, object: SdkResponseCallback<UnRegisterDeviceResponse> {
override fun onSuccess(response: UnRegisterDeviceResponse?) {
...
}
override fun onFailed(errorResult: ErrorResult?) {
...
}
})
Parameter
Key | Value | Description |
---|---|---|
userKey | String | User ID |
Response
Name | Type | Description |
---|---|---|
rtCode | Int | Result code |
rtMsg | String | Result message |
iii. Delete Account
This is a method for requesting membership withdrawal.
Example
kotlin
BsaSdk.getInstance().sdkService.deleteUser(object: SdkResponseCallback<DeleteUserResponse> {
override fun onSuccess(response: DeleteUserResponse?) {
...
}
override fun onFailed(errorResult: ErrorResult?) {
...
} )
Parameter
- none
Response
Name | Type | Description |
---|---|---|
rtCode | Int | Result code |
rtMsg | String | Result message |