/// <summary> /// Get the webview's width, as a value in device-independent units (1/96th inch per unit). /// The default is 0. The default might be encountered if the webview has not been loaded /// and hasn't yet been involved in a layout pass that renders the UI. /// </summary> public int GetActualWidth() { Setup(); #if UNIWEBVIEW3_SUPPORTED return(UniWebViewInterface.GetActualWidth(listener.Name)); #elif UNIWEBVIEW2_SUPPORTED return(UniWebViewPlugin.GetActualWidth(listener.Name)); #else return(WWebViewPlugin.GetActualWidth(listener.Name)); #endif }