com.baidu.sapi2.callback
类 LoginCallBack
java.lang.Object
com.baidu.sapi2.callback.LoginCallBack
- 所有已实现的接口:
- SapiCallBack
public abstract class LoginCallBack
- extends Object
- implements SapiCallBack
Sapi组件通用回调
- 版本:
- 1.0
- 作者:
- yuankai
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REQUEST_LOGINPROTECT
public static final int REQUEST_LOGINPROTECT
- 另请参见:
- 常量字段值
activity
protected android.app.Activity activity
LoginCallBack
public LoginCallBack(android.app.Activity activity)
onMustProtectEvent
public final void onMustProtectEvent(int type,
String url)
- 登陆保护回调
- 参数:
type
- 登录保护的两种形式,1为强制保护,2为可选保护url
- 登录保护webview跳转的url
onOptionalProtectEvent
public boolean onOptionalProtectEvent(int type,
String url)
onEvent
public abstract void onEvent(int code,
Object obj)
- 事件回调接口,回调会在非UI线程中执行,需要外部手动同步
- 指定者:
- 接口
SapiCallBack
中的 onEvent
- 参数:
code
- 返回的错误码obj
- 附带数据- 另请参见:
ErrorCode
Copyright © 2013. All Rights Reserved.