public class

AccountChangeEvent

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.auth.AccountChangeEvent

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<AccountChangeEvent> CREATOR
Public Constructors
AccountChangeEvent(long id, String accountName, int changeType, int eventIndex, String changeData)
Public Methods
boolean equals(Object that)
String getAccountName()
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 hashCode()
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<AccountChangeEvent> CREATOR

Public Constructors

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

Parameters
id long
accountName String
changeType int
eventIndex int
changeData String

Public Methods

public boolean equals (Object that)

Parameters
that Object
Returns
boolean

public String getAccountName ()

Returns
String

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.

Returns
String

public int getChangeType ()

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

Returns
int

public int getEventIndex ()

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

Returns
int

public int hashCode ()

Returns
int

public String toString ()

Returns
String

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int