Skip to content

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

NameTypeDescription
rtCodeIntResult code
rtMsgStringResult 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

KeyValueDescription
userKeyStringUser ID

Response

NameTypeDescription
rtCodeIntResult code
rtMsgStringResult 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

NameTypeDescription
rtCodeIntResult code
rtMsgStringResult message