Example usage for android.webkit WebView getId

List of usage examples for android.webkit WebView getId

Introduction

In this page you can find the example usage for android.webkit WebView getId.

Prototype

@IdRes
@ViewDebug.CapturedViewProperty
public int getId() 

Source Link

Document

Returns this view's identifier.

Usage

From source file:com.facebook.react.views.webview.ReactWebViewManager.java

private WebView.PictureListener getPictureListener() {
    if (mPictureListener == null) {
        mPictureListener = new WebView.PictureListener() {
            @Override//from w ww.ja  v a  2  s  . c om
            public void onNewPicture(WebView webView, Picture picture) {
                dispatchEvent(webView, new ContentSizeChangeEvent(webView.getId(), webView.getWidth(),
                        webView.getContentHeight()));
            }
        };
    }
    return mPictureListener;
}