logout

open fun logout(    @NonNull context: Context,     informAdmin: Boolean,     @Nullable callBack: LogoutCallBack)

This method is used to logout the current account.

Note :Your data and prefs will be lost.

Parameters

context

The application context

informAdmin

boolean: If true the backend will be informed by the logout, otherwise it will be a local action

callBack

LogoutCallBack:A callback used to listen to the logout process