FutureBasic Logo

<<    Index    >> FutureBasic

WKWebView   statement



Syntax
wkwebview tag, rect, configuration, wndTag

Requires
Tlbx WebKit.incl header.
macOS 10.10+

Description
The wkwebview statement puts a new wkwebview in the current output window, or alters an existing wkwebview's characteristics.

Parameters
Parameter
Description
tag A number that you assign when you create the wkwebview and that you refer to when altering the view. The number you assign must be different from the tag value of all other existing widgets in the current window. A negative tag hides the view.
rect The wkwebview's enclosing rectangle. This can be specified in either of two ways:
(i) (x,y,w,h) where x,y are the origin and w,h the size of the view.
(ii) A CGRect value
configuration A WKWebViewConfiguration object (optional).
wndTag An optional parameter for when the wkwebview's window is not the current output window. Note specifying this parameter does not bring the window to the front or make it the output window.
 
Dialog events
_webViewDidCommitNavigation
_webViewDidStartProvisionalNavigation
_webViewDidReceiveServerRedirectForProvisionalNavigation
_webViewDidReceiveAuthenticationChallenge
_webViewDidFailNavigation
_webViewDidFailProvisionalNavigation
_webViewDidFinishNavigation
_webViewWebContentProcessDidTerminate
_webViewDecidePolicyForNavigationAction
 

Apple documentation
WKWebView