AuthOptions

class AuthOptions

Represents a set of options for authentication, which can be passed to some methods such as Webcom.authWithOAuth.

Types

Companion
Link copied to clipboard
object Companion
OAuthUserAgent
Link copied to clipboard
enum OAuthUserAgent : Enum<AuthOptions.OAuthUserAgent>

Functions

setCustomParameter
Link copied to clipboard
fun setCustomParameter(key: String, value: Any?): AuthOptions

Adds (or removes) a custom parameter to this AuthOptions instance with a custom value.

setMCC
Link copied to clipboard
fun setMCC(): AuthOptions

Adds the "mcc" option (Mobile Country Code) to this AuthOptions instance with a value automatically guessed from the activated SIM card on the device. This option is relevant for wassup-based implicit authentication.

fun setMCC(mcc: String): AuthOptions

Adds the "mcc" option (Mobile Country Code) to this AuthOptions instance with a custom value. This option is relevant for wassup-based implicit authentication.

setScope
Link copied to clipboard
fun setScope(scope: String?): AuthOptions

Adds an OAuth2 "scope" option to this AuthOptions instance.

toString
Link copied to clipboard
open override fun toString(): String
WithCustomParameter
Link copied to clipboard
fun WithCustomParameter(key: String, value: Any?): AuthOptions
WithMCC
Link copied to clipboard
fun WithMCC(): AuthOptions
fun WithMCC(mcc: String): AuthOptions
WithScope
Link copied to clipboard
fun WithScope(scope: String?): AuthOptions

Properties

customTabsBuilder
Link copied to clipboard
var customTabsBuilder: (CustomTabsIntent.Builder) -> Unit
forcesWebView
Link copied to clipboard
var forcesWebView: Boolean
userAgent
Link copied to clipboard
var userAgent: AuthOptions.OAuthUserAgent