create

suspend fun create(configuration: OAuthUserConfiguration, startSignIn: (oAuthUserSignIn: OAuthUserSignIn) -> Unit): Result<OAuthUserCredential>

Creates an OAuthUserCredential with information needed to access an ArcGIS resource. This initiates the OAuth login process by invoking the provided startSignIn lambda when the OAuth user sign in prompt is required.

Return

a Result that returns an OAuthUserCredential if successful

Since

200.1.0

Parameters

configuration

an OAuthUserConfiguration for which to create an OAuthUserCredential

startSignIn

a lambda which is invoked when the OAuth user sign in prompt is required