AuthenticationResult


sealed interface AuthenticationResult

Known direct subclasses
AuthenticationResult.CustomFallbackSelected

The prompt was dismissed because the user clicked a custom fallback option.

AuthenticationResult.Error

A result when an error has been encountered and authentication has stopped.

AuthenticationResult.Success

A result when the user has successfully authenticated.


Types of the terminal result of the authentication.

Summary

Nested types

The prompt was dismissed because the user clicked a custom fallback option.

A result when an error has been encountered and authentication has stopped.

A result when the user has successfully authenticated.

Public functions

open AuthenticationResult.CustomFallbackSelected?

Returns a CustomFallbackSelected only if it's a CustomFallbackSelected, returns null otherwise.

open AuthenticationResult.Error?

Returns a Error only if it's a Error, returns null otherwise.

open Boolean

Whether this AuthenticationResult is a CustomFallbackSelected.

open Boolean

Whether this AuthenticationResult is an Error.

open Boolean

Whether this AuthenticationResult is a Success.

open AuthenticationResult.Success?

Returns a Success only if it's a Success, returns null otherwise.

Public functions

customFallbackSelected

Added in 1.4.0-alpha06
open fun customFallbackSelected(): AuthenticationResult.CustomFallbackSelected?

Returns a CustomFallbackSelected only if it's a CustomFallbackSelected, returns null otherwise.

error

Added in 1.4.0-alpha06
open fun error(): AuthenticationResult.Error?

Returns a Error only if it's a Error, returns null otherwise.

isCustomFallbackSelected

Added in 1.4.0-alpha06
open fun isCustomFallbackSelected(): Boolean

Whether this AuthenticationResult is a CustomFallbackSelected.

isError

Added in 1.4.0-alpha06
open fun isError(): Boolean

Whether this AuthenticationResult is an Error.

isSuccess

Added in 1.4.0-alpha06
open fun isSuccess(): Boolean

Whether this AuthenticationResult is a Success.

success

Added in 1.4.0-alpha06
open fun success(): AuthenticationResult.Success?

Returns a Success only if it's a Success, returns null otherwise.