Java Code Examples for android.webkit.PermissionRequest#grant()

The following examples show how to use android.webkit.PermissionRequest#grant() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VideoEnabledWebChromeClient.java    From carstream-android-auto with Apache License 2.0 5 votes vote down vote up
@Override
public void onPermissionRequest(PermissionRequest request) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        request.grant(request.getResources());
    }
}
 
Example 2
Source File: MainActivity.java    From SimplicityBrowser with MIT License 5 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        request.grant(request.getResources());
    }
}
 
Example 3
Source File: X5WebChromeClient.java    From cordova-plugin-x5engine-webview with Apache License 2.0 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public void onPermissionRequest(final PermissionRequest request) {
    Log.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 4
Source File: SystemWebChromeClient.java    From lona with GNU General Public License v3.0 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    LOG.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 5
Source File: SystemWebChromeClient.java    From pychat with MIT License 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    LOG.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 6
Source File: SystemWebChromeClient.java    From cordova-plugin-intent with MIT License 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    Log.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 7
Source File: SystemWebChromeClient.java    From a2cardboard with Apache License 2.0 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    Log.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 8
Source File: SystemWebChromeClient.java    From cordova-plugin-app-update-demo with MIT License 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    Log.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 9
Source File: MyWebChromeClient.java    From ByWebView with Apache License 2.0 4 votes vote down vote up
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(PermissionRequest request) {
    super.onPermissionRequest(request);
    request.grant(request.getResources());
}
 
Example 10
Source File: ByWebChromeClient.java    From ByWebView with Apache License 2.0 4 votes vote down vote up
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(PermissionRequest request) {
    super.onPermissionRequest(request);
    request.grant(request.getResources());
}
 
Example 11
Source File: PrivateActivity.java    From SimplicityBrowser with MIT License 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        request.grant(request.getResources());
    }
}
 
Example 12
Source File: SystemWebChromeClient.java    From BigDataPlatform with GNU General Public License v3.0 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    LOG.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 13
Source File: SystemWebChromeClient.java    From app-icon with MIT License 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    LOG.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 14
Source File: X5WebChromeClient.java    From cordova-plugin-x5-tbs with Apache License 2.0 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public void onPermissionRequest(final PermissionRequest request) {
  Log.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
  request.grant(request.getResources());
}
 
Example 15
Source File: SystemWebChromeClient.java    From keemob with MIT License 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    LOG.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 16
Source File: SystemWebChromeClient.java    From keemob with MIT License 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    LOG.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 17
Source File: X5WebChromeClient.java    From cordova-plugin-x5-webview with Apache License 2.0 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public void onPermissionRequest(final PermissionRequest request) {
    LOG.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 18
Source File: X5WebChromeClient.java    From x5webview-cordova-plugin with Apache License 2.0 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public void onPermissionRequest(final PermissionRequest request) {
    Log.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 19
Source File: SystemWebChromeClient.java    From ultimate-cordova-webview-app with MIT License 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    LOG.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}
 
Example 20
Source File: SystemWebChromeClient.java    From countly-sdk-cordova with MIT License 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(final PermissionRequest request) {
    LOG.d(LOG_TAG, "onPermissionRequest: " + Arrays.toString(request.getResources()));
    request.grant(request.getResources());
}