OAuthListWidget

fun OAuthListWidget(modifier: Modifier = Modifier, style: OAuthListWidgetStyle = OAuthListWidgetStyle.Dark(), onAuth: (oAuth: OAuth, accessToken: AccessToken) -> Unit, onAuthCode: (data: AuthCodeData, isCompletion: Boolean) -> Unit = { _, _ -> }, onFail: (oAuth: OAuth, fail: VKIDAuthFail) -> Unit, oAuths: Set<OAuth> = OAuth.entries.toSet(), authParams: VKIDAuthUiParams = VKIDAuthUiParams {})

Constructs a multibranding widget that supports auth with multiple OAuths.

Parameters

modifier

Layout configuration for the widget.

style

Styling widget configuration.

onAuth

A callback to be invoked upon a successful auth.

onAuthCode

A callback to be invoked upon successful first step of auth - receiving auth code which can later be exchanged to access token.

onFail

A callback to be invoked upon an error during auth.

oAuths

A set of OAuths the should be displayed to the user.

authParams

Optional params to be passed to auth. See VKIDAuthUiParams.Builder for more info.