This repository was archived by the owner on Feb 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
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.
You can use this library with two ways:
- If you have only one social network to integrate, you can use this social's Login Action
- 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
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
}
}