账号登出
优质
小牛编辑
127浏览
2023-12-01
登出
接口说明:登出接口,清除 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
}
});