Package com.clover.sdk.v3.apps
Class AppsConnector
- java.lang.Object
-
- com.clover.sdk.v1.ServiceConnector<IAppsService>
-
- com.clover.sdk.v3.apps.AppsConnector
-
- All Implemented Interfaces:
ServiceConnection
public class AppsConnector extends ServiceConnector<IAppsService>
Connector that communicates with the app service.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.clover.sdk.v1.ServiceConnector
ServiceConnector.Callback<T>, ServiceConnector.OnServiceConnectedListener, ServiceConnector.ServiceCallable<S,T>, ServiceConnector.ServiceRunnable<S>
-
-
Field Summary
-
Fields inherited from class com.clover.sdk.v1.ServiceConnector
mAccount, mClient, mConnected, mContext, mHandler, mService
-
-
Constructor Summary
Constructors Constructor Description AppsConnector(Context context, Account account)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 byServiceConnector.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)
-
Methods inherited from class com.clover.sdk.v1.ServiceConnector
connect, disconnect, execute, execute, execute, execute, getService, getStartIntent, isConnected, isInstalled, notifyServiceConnected, notifyServiceDisconnected, onServiceConnected, onServiceDisconnected, postResults, throwOnFailure, waitForConnection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface android.content.ServiceConnection
onBindingDied, onNullBinding
-
-
-
-
Method Detail
-
getServiceInterface
protected IAppsService getServiceInterface(IBinder iBinder)
- Specified by:
getServiceInterface
in classServiceConnector<IAppsService>
-
getServiceIntentAction
protected String getServiceIntentAction()
- Specified by:
getServiceIntentAction
in classServiceConnector<IAppsService>
-
getServiceIntentPackage
protected String getServiceIntentPackage()
Description copied from class:ServiceConnector
The package which hosts the service to connect to. Returning null is OK for api target < 21. Once you try to build with 21 or higher returning null will cause an illegal argument exception- Overrides:
getServiceIntentPackage
in classServiceConnector<IAppsService>
-
getServiceIntentVersion
protected int getServiceIntentVersion()
Description copied from class:ServiceConnector
Connectors that are versioned include a version number in the action returned byServiceConnector.getServiceIntentAction()
instead of using this mechanism.- Overrides:
getServiceIntentVersion
in classServiceConnector<IAppsService>
-
getApp
public App getApp() throws RemoteException, ServiceException, BindingException, ClientException
-
logMetered
public void logMetered(String meteredId, int numberOfEvents) throws RemoteException, ServiceException, BindingException, ClientException
-
getAppBillingInfo
public AppBillingInfo getAppBillingInfo() throws RemoteException, ServiceException, BindingException, ClientException
-
setSmartReceiptText
public void setSmartReceiptText(String text) throws RemoteException, ServiceException, BindingException, ClientException
-
setSmartReceiptUrl
public void setSmartReceiptUrl(String url) throws RemoteException, ServiceException, BindingException, ClientException
-
-