public class AppsConnector extends ServiceConnector<IAppsService>
ServiceConnector.Callback<T>, ServiceConnector.OnServiceConnectedListener, ServiceConnector.ServiceCallable<S,T>, ServiceConnector.ServiceRunnable<S>
mAccount, mClient, mConnected, mContext, mHandler, mService
Constructor and Description |
---|
AppsConnector(Context context,
Account account) |
Modifier and Type | Method and Description |
---|---|
App |
getApp() |
AppBillingInfo |
getAppBillingInfo() |
protected String |
getServiceIntentAction() |
protected String |
getServiceIntentPackage()
The package which hosts the service to connect to.
|
protected int |
getServiceIntentVersion()
Connectors that are versioned include a version number in the action returned by
ServiceConnector.getServiceIntentAction() instead of using this mechanism. |
protected IAppsService |
getServiceInterface(IBinder iBinder) |
void |
logMetered(String meteredId,
int numberOfEvents) |
void |
setSmartReceiptText(String text) |
void |
setSmartReceiptUrl(String url) |
connect, disconnect, execute, execute, execute, execute, getService, getStartIntent, isConnected, isInstalled, notifyServiceConnected, notifyServiceDisconnected, onServiceConnected, onServiceDisconnected, postResults, throwOnFailure, waitForConnection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onBindingDied, onNullBinding
protected IAppsService getServiceInterface(IBinder iBinder)
getServiceInterface
in class ServiceConnector<IAppsService>
protected String getServiceIntentAction()
getServiceIntentAction
in class ServiceConnector<IAppsService>
protected String getServiceIntentPackage()
ServiceConnector
getServiceIntentPackage
in class ServiceConnector<IAppsService>
protected int getServiceIntentVersion()
ServiceConnector
ServiceConnector.getServiceIntentAction()
instead of using this mechanism.getServiceIntentVersion
in class ServiceConnector<IAppsService>
public App getApp() throws RemoteException, ServiceException, BindingException, ClientException
public void logMetered(String meteredId, int numberOfEvents) throws RemoteException, ServiceException, BindingException, ClientException
public AppBillingInfo getAppBillingInfo() throws RemoteException, ServiceException, BindingException, ClientException
public void setSmartReceiptText(String text) throws RemoteException, ServiceException, BindingException, ClientException
public void setSmartReceiptUrl(String url) throws RemoteException, ServiceException, BindingException, ClientException