Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

AuthPromptHost

public class AuthPromptHost
extends Object

java.lang.Object
   ↳ androidx.biometric.auth.AuthPromptHost


A wrapper class for the component that will be used to host an auth prompt.

Summary

Public constructors

AuthPromptHost(FragmentActivity activity)

Constructs an AuthPromptHost wrapper for the given activity.

AuthPromptHost(Fragment fragment)

Constructs an AuthPromptHost wrapper for the given fragment.

Public methods

FragmentActivity getActivity()

Gets the activity that will host the prompt, if set.

Fragment getFragment()

Gets the fragment that will host the prompt, if set.

Inherited methods

Public constructors

AuthPromptHost

public AuthPromptHost (FragmentActivity activity)

Constructs an AuthPromptHost wrapper for the given activity.

Parameters
activity FragmentActivity: The activity that will host the prompt.

AuthPromptHost

public AuthPromptHost (Fragment fragment)

Constructs an AuthPromptHost wrapper for the given fragment.

Parameters
fragment Fragment: The fragment that will host the prompt.

Public methods

getActivity

public FragmentActivity getActivity ()

Gets the activity that will host the prompt, if set.

Returns
FragmentActivity The activity that will host the prompt, or null if the prompt will be hosted by a different type of component.

getFragment

public Fragment getFragment ()

Gets the fragment that will host the prompt, if set.

Returns
Fragment The fragment that will host the prompt, or null if the prompt will be hosted by a different type of component.