Update Role Passwords API
Required Permissions
- Include the following permissions in your application's manifest: - 'android.permission.USER_PWD': permission for isUserPwd. 
- 'android.permission.USER_PWD_MODIFY': permission for forceModifyUserPwd, enableUserLogin. 
 
API Functions
verifyUserPwd
boolean verifyUserPwd(String pwd);Checks if the provided string ('pwd') is the current user password.
pwd
the user role password. It can not be null
boolean
a boolean representation of the result.
true if success. false if failure.
forceModifyUserPwd
boolean forceModifyUserPwd(String newPwd);Modifies the user role password to the new password ('newPwd').
newPwd
the new user role password. It can not be null
boolean
a boolean representation of the result.
true if success. false if failure.
setUserLoginMode
boolean setUserLoginMode(boolean eneable);Enables or disables user role login based on the boolean value ('enable').
eneable
for the user login setting, a boolean value is used: true enables user login, while false disables it.
boolean
a boolean representation of the result.
true if success. false if failure.
isUserLoginMode
boolean isUserLoginMode();Check whether enable user role login mode.
boolean
a boolean representation of the result.
true if enable. false if disable.
isUserLoggedIn
boolean isUserLoggedIn(boolean eneable);Check whether the user logged in.
boolean
a boolean representation of the result.
true if logged in. false if not.
Resource Download
- Refer to the cloudpos apidemo - demo. 
Last updated
