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 2025-08-28 12:01:44 +0530 IST

ON THIS PAGE