Code example for GeolocationPermissions.Callback

Methods: invoke

4
        } 
 
        @Override 
        public void onGeolocationPermissionsShowPrompt(String origin, Callback callback) {
            LOG.d("userwebview", "onGeolocationPermissionsShowPrompt(" + origin + ")");
            super.onGeolocationPermissionsShowPrompt(origin, callback);
            callback.invoke(origin, true, false);
        } 
    } 
 
    /** 
     * This class can be used to override the GapViewClient and receive notification of webview events. 
     */ 
    public class TestViewClient extends CordovaWebViewClient { 
        public TestViewClient(DroidGap arg0) {
            super(arg0);
            LOG.d("userwebview", "TestViewClient()"); 
        } 
 
        @Override 
        public boolean shouldOverrideUrlLoading(WebView view, String url) {