iOSHTMLViewerExtension - UBogun/Xojo-iosLib GitHub Wiki

This extension brings back some missing features the desktop HTML viewers offer and even adds a few more. For full access, address the AppleWebView property or use the iOLibHTMLViewer custom control.

Properties

AllowAirPlay As Boolean: If True, can stream to AirPlay.

AllowInlineMediaPlayback As Boolean: If true, can play embedded videos.

AllowLinkPreview As Boolean: Whether pressing on a link displays a preview of the destination for the link. Available since iOS 9.0 on 3D Touch devices.

AllowPictureInPicturePlayback As Boolean: Whether Picture in Picture playback is allowed from this view. Available since iOS 9.0.

CanGoBack As Boolean (read-only): True if the user can return to a previously visited site.

CanGoForward As Boolean (read-only): True if you can use the GoForward method.

View As AppleWebView: Lets you address the AppleWebView / UIWebView instance of the HTLViewer for full access to its features.

IsLoading As Boolean (read-only): True if the Viewer is currently loading data.

PlayMediaAutomatically As Boolean: If True, starts videos without user interaction.

ScalesPageToFit As Boolean: If True, displayed content is scaled and user zoom is enabled.

SuppressRenderDuringLoad As Boolean: If true, will not render content while it is being loaded.

Methods

GoBack(): Goes to the site visited previously.

GoForward(): If GoBack was used before, lets you return to the previously watched content.

Reload(): Reloads the current content.

RunJavaScript (AScript As Text) A Text: Runs a Javascript ≤ 10 MB and returns its result.

StopLoading(): Does exactly that.