WebViewController

Description

WebView Controller types

interface WebViewController {
    errorCode: undefined | number;
    goBack: (() => void);
    isLoading: boolean;
    openInBrowser: (() => void);
    setErrorCode: ((code) => void);
    toggleLoading: (() => void);
}

Properties

errorCode: undefined | number

The error code of the web page

goBack: (() => void)

The function to go back to the previous screen

Type declaration

    • (): void
    • Returns void

isLoading: boolean

The loading state of the web page

openInBrowser: (() => void)

The function to open the web page in the browser

Type declaration

    • (): void
    • Returns void

setErrorCode: ((code) => void)

The function to set the error code of the web page

Type declaration

    • (code): void
    • Parameters

      • code: number

      Returns void

toggleLoading: (() => void)

The function to toggle the loading state of the web page

Type declaration

    • (): void
    • Returns void