| java.lang.Object | ||
| ↳ | com.google.android.gms.gcm.Task | |
| ↳ | com.google.android.gms.gcm.PeriodicTask | |
A periodic task is one that will recur at the specified interval, without needing to be
rescheduled.
Schedule a task that will recur until the user calls one of
cancelAllTasks(Class), or
cancelTask(String, Class) with
an identifying tag.
Periodic tasks will not be scheduled if their period is below a certain minimum (currently 30 seconds).
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PeriodicTask.Builder | |||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.android.gms.gcm.Task
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CREATOR | |||||||||||
| mFlexInSeconds | |||||||||||
| mIntervalInSeconds | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Insert the task object into the provided bundle for IPC.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.android.gms.gcm.Task
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
getPeriod() that this periodic task can be executed early.
Insert the task object into the provided bundle for IPC. Use #fromBundle to recreate the object on the other side.