UserInfo

public interfaceUserInfo
Known Indirect Subclasses
ExportedUserRecordContains metadata associated with a Firebase user account, along with password hash and salt. 
UserRecordContains metadata associated with a Firebase user account. 

A collection of standard profile information for a user. Used to expose profile information returned by an identity provider.

Public Method Summary

abstract String
getDisplayName()
Returns the user's display name, if available.
abstract String
getEmail()
Returns the user's email address, if available.
abstract String
getPhoneNumber()
Returns the user's phone number, if available.
abstract String
getPhotoUrl()
Returns the user's photo URL, if available.
abstract String
getProviderId()
Returns the ID of the identity provider.
abstract String
getUid()
Returns the user's unique ID assigned by the identity provider.

Public Methods

public abstract StringgetDisplayName()

Returns the user's display name, if available.

Returns
  • a display name string or null.

public abstract StringgetEmail()

Returns the user's email address, if available.

Returns
  • an email address string or null.

public abstract StringgetPhoneNumber()

Returns the user's phone number, if available.

Returns
  • a phone number string or null.

public abstract StringgetPhotoUrl()

Returns the user's photo URL, if available.

Returns
  • a URL string or null.

public abstract StringgetProviderId()

Returns the ID of the identity provider. This can be a short domain name (e.g. google.com) or the identifier of an OpenID identity provider.

Returns
  • an ID string that uniquely identifies the identity provider.

public abstract StringgetUid()

Returns the user's unique ID assigned by the identity provider.

Returns
  • a user ID string.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2021-04-28 UTC.