AccountChangeEvent

  • AccountChangeEvent instances are Parcelables containing data about account events like addition or modification.

  • This class includes inherited constants from Parcelable and a public static final CREATOR field.

  • Public methods allow retrieval of account name, change data, change type, and event index, among others.

  • It has a public constructor to create instances with event details.

public class AccountChangeEvent extends Object
implements Parcelable

AccountChangeEvent instances are Parcelables that contain data about an event for an account (e.g., the account was added, modified, etc.).

Inherited Constant Summary

Field Summary

public static final Creator < AccountChangeEvent > CREATOR

Public Constructor Summary

AccountChangeEvent (long id, String accountName, int changeType, int eventIndex, String changeData)

Public Method Summary

boolean
equals ( Object that)
String
String
getChangeData ()
Extra data about the change, if any.
int
getChangeType ()
The change type of this event.
int
getEventIndex ()
The index of the event.
int
String
void
writeToParcel ( Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator < AccountChangeEvent > CREATOR

Public Constructors

public AccountChangeEvent (long id, String accountName, int changeType, int eventIndex, String changeData)

Public Methods

public boolean equals ( Object that)

public String getAccountName ()

public String getChangeData ()

Extra data about the change, if any. For example, in the case of a rename, this will contain the new account name. May be null if no extra data is available.

public int getChangeType ()

The change type of this event. Maps to constants in GoogleAuthUtil .

public int getEventIndex ()

The index of the event. Can be used to determine if the event has been seen or not.

public int hashCode ()

public String toString ()

public void writeToParcel ( Parcel dest, int flags)

Create a Mobile Website
View Site in Mobile | Classic
Share by: