User Logout
The logout() method can log an app user out from the Catalyst Android app.
The code syntax for user logout is given below:
copyZCatalystApp.getInstance().logout( success: () → Unit, failure: (ZCatalystException) → Unit ): Unit
A sample code snippet is shown below:
copyZCatalystApp.getInstance().logout( { ZCatalystLogger.logInfo("Logout Success") //Actions to execute on successful logout }, { ZCatalystLogger.logError("Logout failed - $it") //Actions to execute on failed logout })
The methods of the ZCatalystLogger class are used to log the result of the operation. You can define your own actions to execute upon a successful or failed logout.
Last Updated 2023-09-03 11:54:50 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit