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:

    
copy
ZCatalystApp.getInstance().logout(
success: () → Unit,
failure: (ZCatalystException) → Unit
): Unit

A sample code snippet is shown below:

    
copy
ZCatalystApp.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

ON THIS PAGE
ACCESS THIS PAGE