public abstract class PlatformServiceClient
extends java.lang.Object
implements android.content.ServiceConnection
| Modifier and Type | Class and Description |
|---|---|
static interface |
PlatformServiceClient.CompletedListener |
| Constructor and Description |
|---|
PlatformServiceClient(android.content.Context context,
int requestMessage,
int replyMessage,
int protocolVersion,
java.lang.String applicationId) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
protected android.content.Context |
getContext() |
protected void |
handleMessage(android.os.Message message) |
void |
onServiceConnected(android.content.ComponentName name,
android.os.IBinder service) |
void |
onServiceDisconnected(android.content.ComponentName name) |
protected abstract void |
populateRequestBundle(android.os.Bundle data) |
void |
setCompletedListener(PlatformServiceClient.CompletedListener listener) |
boolean |
start() |
public PlatformServiceClient(android.content.Context context,
int requestMessage,
int replyMessage,
int protocolVersion,
java.lang.String applicationId)
public void setCompletedListener(PlatformServiceClient.CompletedListener listener)
protected android.content.Context getContext()
public boolean start()
public void cancel()
public void onServiceConnected(android.content.ComponentName name,
android.os.IBinder service)
onServiceConnected in interface android.content.ServiceConnectionpublic void onServiceDisconnected(android.content.ComponentName name)
onServiceDisconnected in interface android.content.ServiceConnectionprotected abstract void populateRequestBundle(android.os.Bundle data)
protected void handleMessage(android.os.Message message)