Example usage for android.webkit GeolocationPermissions clearAll

List of usage examples for android.webkit GeolocationPermissions clearAll

Introduction

In this page you can find the example usage for android.webkit GeolocationPermissions clearAll.

Prototype

public void clearAll() 

Source Link

Document

Clears the Geolocation permission state for all origins.

Usage

From source file:Main.java

/**
 * Clear Stored Location permissions. When the geolocation API is used in
 * the WebViewer, the end user is prompted on a per URL basis for whether
 * or not permission should be granted to access their location. This
 * function clears this information for all locations.
 *
 * As the permissions interface is not available on phones older then
 * Eclair, this function is a no-op on older phones.
 *//*from   w  w w  .j  a  v  a  2s.  c  o m*/
public static void clearWebViewGeoLoc() {
    GeolocationPermissions permissions = GeolocationPermissions.getInstance();
    permissions.clearAll();
}