SyncInfopublic class SyncInfo extends Object implements android.os.ParcelableInformation about the sync operation that is currently underway. |
Fields Summary |
---|
public final int | authorityId | public final android.accounts.Account | accountThe {@link Account} that is currently being synced. | public final String | authorityThe authority of the provider that is currently being synced. | public final long | startTimeThe start time of the current sync operation in milliseconds since boot.
This is represented in elapsed real time.
See {@link android.os.SystemClock#elapsedRealtime()}. | public static final Creator | CREATOR |
Constructors Summary |
---|
public SyncInfo(int authorityId, android.accounts.Account account, String authority, long startTime)
this.authorityId = authorityId;
this.account = account;
this.authority = authority;
this.startTime = startTime;
| public SyncInfo(SyncInfo other)
this.authorityId = other.authorityId;
this.account = new Account(other.account.name, other.account.type);
this.authority = other.authority;
this.startTime = other.startTime;
| SyncInfo(android.os.Parcel parcel)
authorityId = parcel.readInt();
account = parcel.readParcelable(Account.class.getClassLoader());
authority = parcel.readString();
startTime = parcel.readLong();
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public void | writeToParcel(android.os.Parcel parcel, int flags)
parcel.writeInt(authorityId);
parcel.writeParcelable(account, flags);
parcel.writeString(authority);
parcel.writeLong(startTime);
|
|