AuthPromptHost

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 functions

FragmentActivity?

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

Fragment?

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

Public constructors

AuthPromptHost

Added in 1.2.0-alpha06
AuthPromptHost(activity: FragmentActivity)

Constructs an AuthPromptHost wrapper for the given activity.

Parameters
activity: FragmentActivity

The activity that will host the prompt.

AuthPromptHost

Added in 1.2.0-alpha06
AuthPromptHost(fragment: Fragment)

Constructs an AuthPromptHost wrapper for the given fragment.

Parameters
fragment: Fragment

The fragment that will host the prompt.

Public functions

getActivity

Added in 1.2.0-alpha06
fun getActivity(): FragmentActivity?

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

Added in 1.2.0-alpha06
fun getFragment(): Fragment?

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.