Code example for GeolocationPermissions.Callback

Methods: invoke

0
            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) {
            LOG.d("userwebview", "shouldOverrideUrlLoading(" + url + ")");
            return super.shouldOverrideUrlLoading(view, url);
        } 
 
        @Override 
        public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {