登出账号 Logout

登出

接口说明:登出接口,清除 SDK 中的 token、userId 等缓存数据。

举个大栗子:

RokidMobileSDK.account.logout(new ILogoutResultCallback() {
    @Override
    public void onLogoutSucceed() {
        Logger.d("onLogoutSucceed is called.");
        ... // do something
    }

     @Override
    public void onLogoutFailed(String errorCode, String errorMsg){
        Logger.e("onLogoutFailed errorCode=" + errorCode + " errorMsg=" + errorMsg);
        ... // do something
    }
});

results matching ""

    No results matching ""