close(Closes the host in the native app. When being called in the native app, this action closes the modal browser window. Nothing happens if called within a browser tab.request?
):void
CloseRequest
void
modal(Opens the provided url into a new browser window and returns only when the newly opened window is closed.request
):Promise
<boolean
>
OpenRequest
Promise
<boolean
>
open(Opens the provided url into a new browser window.request
):void
OpenRequest
void
refresh(): void
Refresh the host in the native app.
When being called in the native app, this action will refresh the modal browser window.
void
selectTab(Selects the tab in the host view. When being called in the native app, this action selects the specified tab. Nothing happens if the selected tab is invalid. Currently only supports the matter view. The main view is NOT supported.tab
):void
number
void
type(): HostType
Retrieves the host’s type.
HostType
version():Retrieves the host’s version.Promise
<Version
>
Promise
<Version
>
the current version of the host.