OAuthListWidget

class OAuthListWidget @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : FrameLayout

Multibranding widget that supports auth with multiple OAuths.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Styling widget configuration.

Functions

Link copied to clipboard
fun setCallbacks(onAuth: (oAuth: OAuth, accessToken: AccessToken) -> Unit, onAuthCode: (data: AuthCodeData, isCompletion: Boolean) -> Unit = { _, _ -> }, onFail: (oAuth: OAuth, fail: VKIDAuthFail) -> Unit = { _, _ -> })

Sets callbacks for the authorization