public abstract class Client
extends java.lang.Object
| 构造器和说明 |
|---|
Client(android.content.Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
bindService(android.content.Intent serviceIntent) |
boolean |
isServiceConnected() |
protected abstract ClientInfo |
onInitInfo() |
protected abstract void |
onReceiveMessage(android.os.Bundle data,
java.lang.String token) |
protected abstract void |
onServiceConnected() |
protected abstract void |
onServiceDisconnected() |
void |
replyMessage(android.os.Bundle data,
java.lang.String srcToken) |
void |
sendMessage(android.os.Bundle data) |
void |
sendMessage(android.os.Bundle data,
ReplyCallback callback,
int timeout) |
void |
unbindService() |
protected abstract ClientInfo onInitInfo()
protected abstract void onServiceConnected()
protected abstract void onServiceDisconnected()
protected abstract void onReceiveMessage(android.os.Bundle data,
java.lang.String token)
public boolean isServiceConnected()
public boolean bindService(android.content.Intent serviceIntent)
public void unbindService()
public void sendMessage(android.os.Bundle data)
throws android.os.RemoteException
android.os.RemoteExceptionpublic void sendMessage(android.os.Bundle data,
ReplyCallback callback,
int timeout)
throws android.os.RemoteException
android.os.RemoteExceptionpublic void replyMessage(android.os.Bundle data,
java.lang.String srcToken)
throws android.os.RemoteException
android.os.RemoteException