Code example for WebChromeClient

Methods: onShowCustomView

0
    } 
 
    /** {@inheritDoc} */ 
    @Override 
    public void onShowCustomView(View view, CustomViewCallback callback) {
        mWrappedClient.onShowCustomView(view, callback);
    } 
 
    /** {@inheritDoc} */ 
    @Override 
    public void onHideCustomView() { 
        mWrappedClient.onHideCustomView();
    } 
 
    /** {@inheritDoc} */ 
    @Override 
    public boolean onCreateWindow(WebView view, boolean dialog,
            boolean userGesture, Message resultMsg) {
        // do not open any new pop-ups 
        resultMsg.sendToTarget();
        return true;