com.backendless.social.SocialWebViewLoginStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android Show documentation
Show all versions of android Show documentation
Android SDK used by developers to provide Backendless API in apps.
The newest version!
package com.backendless.social;
import android.app.Activity;
import android.webkit.WebView;
import com.backendless.async.callback.AsyncCallback;
import com.backendless.commons.util.SocialType;
import org.json.JSONObject;
import java.util.List;
import java.util.Map;
public class SocialWebViewLoginStrategy extends AbstractSocialLoginStrategy
{
public SocialWebViewLoginStrategy( Activity context, WebView webView, SocialType socialType,
Map fieldsMappings, List permissions,
AsyncCallback responder )
{
super( context, webView, socialType, fieldsMappings, permissions, responder );
}
@Override
public BackendlessSocialJSInterface getJSInterface( AsyncCallback responder )
{
try
{
return new BackendlessSocialJSInterfaceAnnotated( getContext(), responder );
}
catch( Exception e )
{
return new BackendlessSocialJSInterface( getContext(), responder );
}
}
@Override
public void createLayout()
{}
}