public final class GooglePlayDriver extends java.lang.Object implements Driver
GoogleApiAvailability#isGooglePlayServicesAvailable(android.content.Context)| Constructor and Description |
|---|
GooglePlayDriver(android.content.Context context)
Instantiates a new GooglePlayDriver.
|
| Modifier and Type | Method and Description |
|---|---|
int |
cancel(java.lang.String tag)
Cancels the job with the provided tag and class.
|
int |
cancelAll()
Cancels all jobs registered with this Driver.
|
protected android.content.Intent |
createBatchCancelRequest() |
protected android.content.Intent |
createCancelRequest(java.lang.String tag) |
protected java.lang.Class<GooglePlayReceiver> |
getReceiverClass() |
JobValidator |
getValidator()
Returns a JobValidator configured for this backend.
|
boolean |
isAvailable()
Indicates whether the backend is available.
|
int |
schedule(Job job)
Schedules the provided Job.
|
public GooglePlayDriver(android.content.Context context)
public boolean isAvailable()
DriverisAvailable in interface Driverpublic int schedule(Job job)
public int cancel(java.lang.String tag)
Driverpublic int cancelAll()
Driverprotected android.content.Intent createCancelRequest(java.lang.String tag)
protected android.content.Intent createBatchCancelRequest()
protected java.lang.Class<GooglePlayReceiver> getReceiverClass()
public JobValidator getValidator()
DrivergetValidator in interface Driver