AuthPromptHost


public class AuthPromptHost


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

Summary

Public constructors

Constructs an AuthPromptHost wrapper for the given activity.

Constructs an AuthPromptHost wrapper for the given fragment.

Public methods

@Nullable FragmentActivity

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

@Nullable Fragment

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

Public constructors

AuthPromptHost

Added in 1.4.0-alpha02
public AuthPromptHost(@NonNull FragmentActivity activity)

Constructs an AuthPromptHost wrapper for the given activity.

Parameters
@NonNull FragmentActivity activity

The activity that will host the prompt.

AuthPromptHost

Added in 1.4.0-alpha02
public AuthPromptHost(@NonNull Fragment fragment)

Constructs an AuthPromptHost wrapper for the given fragment.

Parameters
@NonNull Fragment fragment

The fragment that will host the prompt.

Public methods

getActivity

Added in 1.4.0-alpha02
public @Nullable FragmentActivity getActivity()

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

Returns
@Nullable FragmentActivity

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

getFragment

Added in 1.4.0-alpha02
public @Nullable Fragment getFragment()

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

Returns
@Nullable Fragment

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