All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backendless.social.SocialWebViewLoginStrategy Maven / Gradle / Ivy

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()
  {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy