public abstract class

Task

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.gcm.Task

Class Overview

Encapsulates the parameters of a task that you will schedule on the GcmNetworkManager.

Construct instances of either PeriodicTask or OneoffTask with the desired parameters/behaviour and schedule them using schedule(Task).

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
int describeContents()
String getServiceName()
String getTag()
boolean isPersisted()
boolean isUpdateCurrent()
void writeToParcel(Parcel parcel, int i)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public int describeContents ()

public String getServiceName ()

Returns
  • The GcmTaskService component that this task will execute on.

public String getTag ()

Returns
  • The String identifier for this task, that is returned to onRunTask(com.google.android.gms.gcm.TaskParams) when this task executes.

public boolean isPersisted ()

public boolean isUpdateCurrent ()

Returns
  • Whether or not this task will update a pre-existing task in the scheduler queue.

public void writeToParcel (Parcel parcel, int i)