foo-webview-sdk
    Preparing search index...

    Interface WindowGetZoomSuccess

    Successful response from window.getZoom.

    interface WindowGetZoomSuccess {
        dpi?: number;
        dpiScale?: number;
        success: true;
        textScaleFactor: number;
        zoom: number;
    }
    Index
    dpi?: number

    The window's DPI; left out without a WebView.

    dpiScale?: number

    dpi / 96; left out without a WebView.

    success: true

    Always true here; a failed call resolves with ApiFailure instead.

    textScaleFactor: number

    The Windows text size as a factor, 1 to 2.25, which the host applies to its WebViews together with the DPI; 1 when Windows does not report one.

    zoom: number

    The zoom factor; 1 is 100 %.