public class

UserMetadata

extends Object
java.lang.Object
   ↳ com.google.firebase.auth.UserMetadata

Class Overview

Contains additional metadata associated with a user account.

Summary

Public Constructors
UserMetadata(long creationTimestamp)
UserMetadata(long creationTimestamp, long lastSignInTimestamp, long lastRefreshTimestamp)
Public Methods
long getCreationTimestamp()
Returns the time at which the account was created.
long getLastRefreshTimestamp()
Returns the time at which the user was last active (ID token refreshed).
long getLastSignInTimestamp()
Returns the time at which the user last signed in.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UserMetadata (long creationTimestamp)

public UserMetadata (long creationTimestamp, long lastSignInTimestamp, long lastRefreshTimestamp)

Public Methods

public long getCreationTimestamp ()

Returns the time at which the account was created.

Returns
  • Milliseconds since epoch timestamp.

public long getLastRefreshTimestamp ()

Returns the time at which the user was last active (ID token refreshed).  

Returns
  • Milliseconds since epoch timestamp, or 0 if the user was never active.

public long getLastSignInTimestamp ()

Returns the time at which the user last signed in.

Returns
  • Milliseconds since epoch timestamp, or 0 if the user has never signed in.