ActionCodeResult

public interface ActionCodeResult

Interface for holding the information related to an out of band code.

Nested Class Summary

@interface ActionCodeResult.ActionDataKey Keys to access the account information related to an out of band code. 
@interface ActionCodeResult.Operation Holds the possible operations that an out of band code can perform, which are password reset, verify email, and recover email. 

Constant Summary

int EMAIL Represents an ActionCodeResult.ActionDataKey which is used to key calls to getData(int).
int ERROR Represents an ActionCodeResult.Operation signifying that there was some error in determining what the out of band code is for.
int FROM_EMAIL Represents an ActionCodeResult.ActionDataKey which is used to key calls to getData(int).
int PASSWORD_RESET Represents an ActionCodeResult.Operation signifying that the out of band code was for a password reset.
int RECOVER_EMAIL Represents an ActionCodeResult.Operation signifying that the out of band code was for email recovery.
int VERIFY_EMAIL Represents an ActionCodeResult.Operation signifying that the out of band code was for email verification.

Public Method Summary

abstract String
getData(int key)
Getter for fields pertaining to the operation being performed.
abstract int
getOperation()
Returns the ActionCodeResult.Operation for which this out of band code was intended.

Constants

public static final int EMAIL

Represents an ActionCodeResult.ActionDataKey which is used to key calls to getData(int). This signifies the email before the application of the out of band code.

Constant Value: 0

public static final int ERROR

Represents an ActionCodeResult.Operation signifying that there was some error in determining what the out of band code is for.

Constant Value: 3

public static final int FROM_EMAIL

Represents an ActionCodeResult.ActionDataKey which is used to key calls to getData(int). This signifies the current email associated with the account, which may have changed as a result of the ActionCodeResult.Operation performed.

Constant Value: 1

public static final int PASSWORD_RESET

Represents an ActionCodeResult.Operation signifying that the out of band code was for a password reset.

Constant Value: 0

public static final int RECOVER_EMAIL

Represents an ActionCodeResult.Operation signifying that the out of band code was for email recovery.

Constant Value: 2

public static final int VERIFY_EMAIL

Represents an ActionCodeResult.Operation signifying that the out of band code was for email verification.

Constant Value: 1

Public Methods

public abstract String getData (int key)

Getter for fields pertaining to the operation being performed. Keyed by ActionCodeResult.ActionDataKey.

public abstract int getOperation ()

Returns the ActionCodeResult.Operation for which this out of band code was intended.

Send feedback about...

Need help? Visit our support page.