OAuthListWidget
class OAuthListWidget @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : FrameLayout
Multibranding widget that supports auth with multiple OAuths.
Properties
Link copied to clipboard
Optional params to be passed to auth. See VKIDAuthUiParams.Builder for more info.
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