Codota Logo
ActionActivity.setPermissionListener
Code IndexAdd Codota to your IDE (free)

How to use
setPermissionListener
method
in
com.just.agentweb.ActionActivity

Best Java code snippets using com.just.agentweb.ActionActivity.setPermissionListener (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: Justson/AgentWeb

private void fileChooser() {
  List<String> permission = null;
  if (AgentWebUtils.getDeniedPermissions(mActivity, AgentWebPermissions.STORAGE).isEmpty()) {
    touchOffFileChooserAction();
  } else {
    Action mAction = Action.createPermissionsAction(AgentWebPermissions.STORAGE);
    mAction.setFromIntention(FROM_INTENTION_CODE >> 2);
    ActionActivity.setPermissionListener(mPermissionListener);
    ActionActivity.start(mActivity, mAction);
  }
}
origin: Justson/AgentWeb

private void onGeolocationPermissionsShowPromptInternal(String origin, GeolocationPermissions.Callback callback) {
  if (mPermissionInterceptor != null) {
    if (mPermissionInterceptor.intercept(this.mWebView.getUrl(), AgentWebPermissions.LOCATION, "location")) {
      callback.invoke(origin, false, false);
      return;
    }
  }
  Activity mActivity = mActivityWeakReference.get();
  if (mActivity == null) {
    callback.invoke(origin, false, false);
    return;
  }
  List<String> deniedPermissions = null;
  if ((deniedPermissions = AgentWebUtils.getDeniedPermissions(mActivity, AgentWebPermissions.LOCATION)).isEmpty()) {
    LogUtils.i(TAG, "onGeolocationPermissionsShowPromptInternal:" + true);
    callback.invoke(origin, true, false);
  } else {
    Action mAction = Action.createPermissionsAction(deniedPermissions.toArray(new String[]{}));
    mAction.setFromIntention(FROM_CODE_INTENTION_LOCATION);
    ActionActivity.setPermissionListener(mPermissionListener);
    this.mCallback = callback;
    this.mOrigin = origin;
    ActionActivity.start(mActivity, mAction);
  }
}
origin: Justson/AgentWeb

private void onCameraAction() {
  if (mActivity == null) {
    return;
  }
  if (mPermissionInterceptor != null) {
    if (mPermissionInterceptor.intercept(FileChooser.this.mWebView.getUrl(), AgentWebPermissions.CAMERA, "camera")) {
      cancel();
      return;
    }
  }
  Action mAction = new Action();
  List<String> deniedPermissions = null;
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && !(deniedPermissions = checkNeedPermission()).isEmpty()) {
    mAction.setAction(Action.ACTION_PERMISSION);
    mAction.setPermissions(deniedPermissions.toArray(new String[]{}));
    mAction.setFromIntention(FROM_INTENTION_CODE >> 3);
    ActionActivity.setPermissionListener(this.mPermissionListener);
    start(mActivity, mAction);
  } else {
    openCameraAction();
  }
}
origin: Justson/AgentWeb

} else {
  Action mAction = Action.createPermissionsAction(mList.toArray(new String[]{}));
  ActionActivity.setPermissionListener(getPermissionListener());
  ActionActivity.start(mActivityWeakReference.get(), mAction);
com.just.agentwebActionActivitysetPermissionListener

Popular methods of ActionActivity

  • start
  • cancelAction
  • chooserActionCallback
  • fetchFile
  • finish
  • getIntent
  • permission
  • realOpenCamera
  • realOpenFileChooser
  • requestPermissions
  • setChooserListener
  • shouldShowRequestPermissionRationale
  • setChooserListener,
  • shouldShowRequestPermissionRationale,
  • startActivityForResult

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now