User Login
You can display the login page to the end user of your Catalyst Android app using the login() method. This will be displayed when the user is logged out of the app. If the login is successful, the user will be able to access the app.
The code syntax for user login is given below:
copyZCatalystApp.getInstance().login( success: () → Unit, failure: (ZCatalystException) → Unit ): Unit
A sample code snippet is shown below:
copyZCatalystApp.getInstance().login( { ZCatalystLogger.logInfo("Login Success") //Actions to execute on successful login }, { ZCatalystLogger.logError("Login failed - $it") //Actions to execute on failed login })
The methods of the ZCatalystLogger class are used to log the result of the operation. You can define your own actions to execute on a successful or a failed login.
Last Updated 2023-09-03 01:06:41 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit