public class SyncRequest extends Object implements Parcelable
SyncRequest.Builder
for an explanation of the various functions. The resulting object is passed through to the
framework via ContentResolver.requestSync(SyncRequest)
.Modifier and Type | Class and Description |
---|---|
static class |
SyncRequest.Builder
Builder class for a @link SyncRequest.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<SyncRequest> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
protected |
SyncRequest(SyncRequest.Builder b)
Protected ctor to instantiate anonymous SyncRequest.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
Account |
getAccount() |
Bundle |
getBundle()
Retrieve bundle for this SyncRequest.
|
String |
getProvider() |
long |
getSyncFlexTime() |
long |
getSyncRunTime() |
boolean |
isExpedited() |
boolean |
isPeriodic() |
void |
writeToParcel(Parcel parcel,
int flags)
Flatten this object in to a Parcel.
|
public static final Parcelable.Creator<SyncRequest> CREATOR
protected SyncRequest(SyncRequest.Builder b)
public boolean isPeriodic()
public boolean isExpedited()
public Account getAccount()
IllegalArgumentException
- if this function is called for a request that targets a
sync service.public String getProvider()
IllegalArgumentException
- if this function is called for a request that targets a
sync service.public Bundle getBundle()
public long getSyncFlexTime()
public long getSyncRunTime()
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel parcel, int flags)
Parcelable
writeToParcel
in interface Parcelable
parcel
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.