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

字段摘要
protected  android.app.Activity activity
           
static int REQUEST_LOGINPROTECT
           
 
构造方法摘要
LoginCallBack(android.app.Activity activity)
           
 
方法摘要
abstract  void onEvent(int code, Object obj)
          事件回调接口,回调会在非UI线程中执行,需要外部手动同步
 void onMustProtectEvent(int type, String url)
          登陆保护回调
 boolean onOptionalProtectEvent(int type, String url)
           
 
从类 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.