Options
class Options(scope: String?, userAgent: OAuth2Method.Options.UserAgent, customTabsBuilder: (CustomTabsIntent.Builder) -> Unit, customOptions: Array<Pair<String, Any>>)
Content copied to clipboard
Represents some options to pass to a third-party OAuth2 provider.
Constructors
Options
Link copied to clipboard
fun Options(scope: String? = null, userAgent: OAuth2Method.Options.UserAgent = UserAgent.CustomTab)
Content copied to clipboard
Basic constructor for standard options.
Options
Link copied to clipboard
fun Options(scope: String?, userAgent: OAuth2Method.Options.UserAgent, customTabsBuilder: (CustomTabsIntent.Builder) -> Unit, customOptions: Array<Pair<String, Any>>)
Content copied to clipboard
Types
User Agent
Link copied to clipboard
Represents the browser (or User-Agent implementation) used to display the OAuth2 provider authorize endpoint on the device.
Functions
with Custom Tabs Builder
Link copied to clipboard
fun withCustomTabsBuilder(builder: (CustomTabsIntent.Builder) -> Unit): OAuth2Method.Options
Content copied to clipboard
Customizes the CustomTabsIntent.Builder used to display the OAuth2 provider authorize endpoint, when the userAgent is set to UserAgent.CustomTab (the default value). Typically, it makes it possible to update action buttons or background colors of the browser.