Class Overview
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).
Summary
Nested Classes |
class |
PeriodicTask.Builder |
|
[Expand]
Inherited Methods |
From class
com.google.android.gms.gcm.Task
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
protected
long
mFlexInSeconds
protected
long
mIntervalInSeconds
Public Methods
public
long
getFlex
()
Returns |
long |
The number of seconds before the end of the period returned via
getPeriod() that this periodic task can be executed early.
|
public
long
getPeriod
()
Returns |
long |
The period for this task. The number of seconds between subsequent executions.
|
public
void
toBundle
(Bundle bundle)
Insert the task object into the provided bundle for IPC. Use #fromBundle to recreate the
object on the other side.
public
String
toString
()
public
void
writeToParcel
(Parcel parcel, int flags)
Parameters |
parcel |
Parcel
|
flags |
int
|