public static interface GeolocationPermissions.Callback
android.webkit.GeolocationPermissions.Callback |
主机应用程序使用的回调接口为源设置Geolocation权限状态。
Public methods |
|
---|---|
abstract void |
invoke(String origin, boolean allow, boolean retain) 为提供的原点设置地理位置权限状态。 |
void invoke (String origin, boolean allow, boolean retain)
为提供的原点设置地理位置权限状态。
Parameters | |
---|---|
origin |
String : the origin for which permissions are set |
allow |
boolean : whether or not the origin should be allowed to use the Geolocation API |
retain |
boolean : whether the permission should be retained beyond the lifetime of a page currently being displayed by a WebView |