Пример #1
0
        /// <summary>
        /// Get the webview's height, 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 GetActualHeight()
        {
            Setup();

#if UNIWEBVIEW3_SUPPORTED
            return(UniWebViewInterface.GetActualHeight(listener.Name));
#elif UNIWEBVIEW2_SUPPORTED
            return(UniWebViewPlugin.GetActualHeight(listener.Name));
#else
            return(WWebViewPlugin.GetActualHeight(listener.Name));
#endif
        }