AccountChangeEvent | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Inherited Constants | Fields | Ctors | Methods | Inherited Methods | [Expand All]
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
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Fields
public static final AccountChangeEventCreator | CREATOR |

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

Public Methods
int | describeContents()
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
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## Fields

#### public static final AccountChangeEventCreator CREATOR

## Public Constructors

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

## Public Methods

#### public int describeContents ()

#### 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)