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