Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
Andrey Matyushin edited this page Mar 29, 2019 · 5 revisions

Welcome to the SocialLogin wiki!

Here you can find how to configure each available social.

Usage

You can use this library with two ways:

  1. If you have only one social network to integrate, you can use this social's Login Action
  2. If you have two or more social networks, you can use Social Login Manager and map of Social Login Actions

You need to define Social Login Callback

Also if you use several modules that have own initializers, you can use Social Login Initializer

Customize web login

Library provides the way to use your own Activity for web login. To do that you need to inherite your Activity from BaseWebViewLoginActivity and call WebActivityStarter.setWebLoginActivity() before you login

class CustomWebViewLoginActivity : BaseWebViewLoginActivity() {

    override fun layoutResId(): Int = R.layout.activity_custom_webview_login

    override fun webView(): WebView = webview

    override fun showLoading() {
        progress.visibility = View.VISIBLE
    }

    override fun hideLoading() {
        progress.visibility = View.INVISIBLE
    }
}

Clone this wiki locally