java.lang.Object | ||
↳ | com.google.android.gms.gcm.Task | |
↳ | com.google.android.gms.gcm.OneoffTask |
A task that will execute once,at some point within the specified window.
If one of cancelTask(String, Class)
or
cancelAllTasks(Class)
is called before this
executes it will be cancelled.
Note that you can request a one-off task to be executed at any point in the future, but to
prevent abuse the scheduler will only set an alarm at a minimum of 30 seconds in the
future. Your task can still be run earlier than this if some network event occurs to wake up
the scheduler.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OneoffTask.Builder |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Insert the task object into the provided bundle for IPC.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Insert the task object into the provided bundle for IPC. Use #fromBundle to recreate the object on the other side.