OAuthListWidget

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

Multibranding widget that supports auth with multiple OAuths.

Since

1.0.0

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

The id of the group the user will be subscribed to.

Link copied to clipboard

The widget style, can change appearance.

Link copied to clipboard

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

Link copied to clipboard

The host for snackbars. Pass the view after placing it on screen.

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

Link copied to clipboard
fun setGroupSubscriptionCallbacks(onSuccess: () -> Unit, onFail: (VKIDGroupSubscriptionFail) -> Unit = {})

Callbacks that provide Group Subscription result.