Trait darwin_webkit::webkit::wk_web_view::WKWebView
source · pub trait WKWebView: Sized {
Show 46 methods
// Required methods
unsafe fn handlesURLScheme_(_: Self, urlScheme: id) -> BOOL;
unsafe fn configuration(self) -> id;
unsafe fn initWithFrame_configuration_(
self,
frameRect: NSRect,
configuration: id
) -> id;
unsafe fn initWithCoder_(self, coder: id) -> id;
unsafe fn scrollView(self) -> id;
unsafe fn title(self) -> id;
unsafe fn URL(self) -> id;
unsafe fn customUserAgent(self) -> id;
unsafe fn setCustomUserAgent_(self, customUserAgent: id);
unsafe fn navigationDelegate(self) -> id;
unsafe fn setNavigationDelegate_(self, navigationDelegate: id);
unsafe fn UIDelegate(self) -> id;
unsafe fn setUIDelegate_(self, navigationDelegate: id);
unsafe fn estimatedProgress(self) -> c_double;
unsafe fn hasOnlySecureContent(self) -> BOOL;
unsafe fn loadHTMLString_baseURL_(self, string: id, baseURL: id) -> id;
unsafe fn loading(self) -> BOOL;
unsafe fn reload_(self) -> id;
unsafe fn reload_sender_(self, sender: id) -> id;
unsafe fn reloadFromOrigin_(self) -> id;
unsafe fn reloadFromOrigin_sender_(self, sender: id) -> id;
unsafe fn stopLoading_(self);
unsafe fn stopLoading_sender_(self, sender: id) -> id;
unsafe fn loadData_MIMEType_characterEncodingName_baseURL_(
self,
data: id,
MIMEType: id,
characterEncodingName: id,
baseURL: id
) -> id;
unsafe fn loadFileURL_allowingReadAccessToURL_(
self,
URL: id,
allowingReadAccessToURL: id
) -> id;
unsafe fn allowsMagnification(self) -> BOOL;
unsafe fn setAllowsMagnification_(self, allowsMagnification: BOOL);
unsafe fn magnification(self) -> CGFloat;
unsafe fn setMagnification_(self, magnification: CGFloat);
unsafe fn setMagnification_centeredAtPoint_(
self,
magnification: CGFloat,
centeredAtPoint: CGPoint
);
unsafe fn allowsBackForwardNavigationGestures(self) -> BOOL;
unsafe fn setAllowsBackForwardNavigationGestures_(
self,
allowsBackForwardNavigationGestures: BOOL
);
unsafe fn backForwardList(self) -> id;
unsafe fn canGoBack(self) -> BOOL;
unsafe fn canGoForward(self) -> BOOL;
unsafe fn allowsLinkPreview(self) -> BOOL;
unsafe fn setAllowsLinkPreview_(self, allowsLinkPreview: BOOL);
unsafe fn goBack_(self) -> id;
unsafe fn goBack_sender_(self, sender: id) -> id;
unsafe fn goForward_(self) -> id;
unsafe fn goForward_sender_(self, sender: id) -> id;
unsafe fn goToBackForwardListItem_(self, item: id) -> id;
unsafe fn loadRequest_(self, request: id);
unsafe fn evaluateJavaScript_(
self,
javascriptString: id,
completionHandler: &Block<(id, id), ()>
);
unsafe fn takeSnapshotWithConfiguration_(
self,
snapshotConfiguration: id,
completionHandler: extern "C" fn(_: id, _: id)
);
// Provided method
unsafe fn alloc(_: Self) -> id { ... }
}
Required Methods§
sourceunsafe fn handlesURLScheme_(_: Self, urlScheme: id) -> BOOL
unsafe fn handlesURLScheme_(_: Self, urlScheme: id) -> BOOL
sourceunsafe fn configuration(self) -> id
unsafe fn configuration(self) -> id
sourceunsafe fn initWithFrame_configuration_(
self,
frameRect: NSRect,
configuration: id
) -> id
unsafe fn initWithFrame_configuration_( self, frameRect: NSRect, configuration: id ) -> id
Safety
All the FFI functions are unsafe.
sourceunsafe fn initWithCoder_(self, coder: id) -> id
unsafe fn initWithCoder_(self, coder: id) -> id
Safety
All the FFI functions are unsafe.
sourceunsafe fn scrollView(self) -> id
unsafe fn scrollView(self) -> id
sourceunsafe fn customUserAgent(self) -> id
unsafe fn customUserAgent(self) -> id
Safety
All the FFI functions are unsafe.
sourceunsafe fn setCustomUserAgent_(self, customUserAgent: id)
unsafe fn setCustomUserAgent_(self, customUserAgent: id)
Safety
All the FFI functions are unsafe.
sourceunsafe fn UIDelegate(self) -> id
unsafe fn UIDelegate(self) -> id
sourceunsafe fn setUIDelegate_(self, navigationDelegate: id)
unsafe fn setUIDelegate_(self, navigationDelegate: id)
sourceunsafe fn estimatedProgress(self) -> c_double
unsafe fn estimatedProgress(self) -> c_double
sourceunsafe fn hasOnlySecureContent(self) -> BOOL
unsafe fn hasOnlySecureContent(self) -> BOOL
sourceunsafe fn loadHTMLString_baseURL_(self, string: id, baseURL: id) -> id
unsafe fn loadHTMLString_baseURL_(self, string: id, baseURL: id) -> id
sourceunsafe fn reload_sender_(self, sender: id) -> id
unsafe fn reload_sender_(self, sender: id) -> id
sourceunsafe fn reloadFromOrigin_(self) -> id
unsafe fn reloadFromOrigin_(self) -> id
sourceunsafe fn reloadFromOrigin_sender_(self, sender: id) -> id
unsafe fn reloadFromOrigin_sender_(self, sender: id) -> id
sourceunsafe fn stopLoading_(self)
unsafe fn stopLoading_(self)
sourceunsafe fn stopLoading_sender_(self, sender: id) -> id
unsafe fn stopLoading_sender_(self, sender: id) -> id
sourceunsafe fn loadData_MIMEType_characterEncodingName_baseURL_(
self,
data: id,
MIMEType: id,
characterEncodingName: id,
baseURL: id
) -> id
unsafe fn loadData_MIMEType_characterEncodingName_baseURL_( self, data: id, MIMEType: id, characterEncodingName: id, baseURL: id ) -> id
sourceunsafe fn loadFileURL_allowingReadAccessToURL_(
self,
URL: id,
allowingReadAccessToURL: id
) -> id
unsafe fn loadFileURL_allowingReadAccessToURL_( self, URL: id, allowingReadAccessToURL: id ) -> id
sourceunsafe fn allowsMagnification(self) -> BOOL
unsafe fn allowsMagnification(self) -> BOOL
sourceunsafe fn setAllowsMagnification_(self, allowsMagnification: BOOL)
unsafe fn setAllowsMagnification_(self, allowsMagnification: BOOL)
sourceunsafe fn magnification(self) -> CGFloat
unsafe fn magnification(self) -> CGFloat
sourceunsafe fn setMagnification_(self, magnification: CGFloat)
unsafe fn setMagnification_(self, magnification: CGFloat)
sourceunsafe fn setMagnification_centeredAtPoint_(
self,
magnification: CGFloat,
centeredAtPoint: CGPoint
)
unsafe fn setMagnification_centeredAtPoint_( self, magnification: CGFloat, centeredAtPoint: CGPoint )
sourceunsafe fn backForwardList(self) -> id
unsafe fn backForwardList(self) -> id
sourceunsafe fn canGoForward(self) -> BOOL
unsafe fn canGoForward(self) -> BOOL
sourceunsafe fn allowsLinkPreview(self) -> BOOL
unsafe fn allowsLinkPreview(self) -> BOOL
sourceunsafe fn setAllowsLinkPreview_(self, allowsLinkPreview: BOOL)
unsafe fn setAllowsLinkPreview_(self, allowsLinkPreview: BOOL)
sourceunsafe fn goBack_sender_(self, sender: id) -> id
unsafe fn goBack_sender_(self, sender: id) -> id
sourceunsafe fn goForward_(self) -> id
unsafe fn goForward_(self) -> id
sourceunsafe fn goForward_sender_(self, sender: id) -> id
unsafe fn goForward_sender_(self, sender: id) -> id
sourceunsafe fn goToBackForwardListItem_(self, item: id) -> id
unsafe fn goToBackForwardListItem_(self, item: id) -> id
sourceunsafe fn loadRequest_(self, request: id)
unsafe fn loadRequest_(self, request: id)
Provided Methods§
Implementations on Foreign Types§
source§impl WKWebView for id
impl WKWebView for id
source§unsafe fn handlesURLScheme_(_: Self, urlScheme: id) -> BOOL
unsafe fn handlesURLScheme_(_: Self, urlScheme: id) -> BOOL
Determining Whether WebKit can Load Content
source§unsafe fn configuration(self) -> id
unsafe fn configuration(self) -> id
Initializing a Web View
source§unsafe fn initWithFrame_configuration_(
self,
frameRect: NSRect,
configuration: id
) -> id
unsafe fn initWithFrame_configuration_( self, frameRect: NSRect, configuration: id ) -> id
Initializing a Web View
source§unsafe fn initWithCoder_(self, coder: id) -> id
unsafe fn initWithCoder_(self, coder: id) -> id
Initializing a Web View
source§unsafe fn scrollView(self) -> id
unsafe fn scrollView(self) -> id
Inspecting the View Information
source§unsafe fn customUserAgent(self) -> id
unsafe fn customUserAgent(self) -> id
Inspecting the View Information
source§unsafe fn setCustomUserAgent_(self, customUserAgent: id)
unsafe fn setCustomUserAgent_(self, customUserAgent: id)
Inspecting the View Information
Setting Delegates
Setting Delegates
source§unsafe fn UIDelegate(self) -> id
unsafe fn UIDelegate(self) -> id
Setting Delegates
source§unsafe fn setUIDelegate_(self, navigationDelegate: id)
unsafe fn setUIDelegate_(self, navigationDelegate: id)
Setting Delegates
source§unsafe fn estimatedProgress(self) -> c_double
unsafe fn estimatedProgress(self) -> c_double
Loading Content
source§unsafe fn hasOnlySecureContent(self) -> BOOL
unsafe fn hasOnlySecureContent(self) -> BOOL
Loading Content
source§unsafe fn reload_sender_(self, sender: id) -> id
unsafe fn reload_sender_(self, sender: id) -> id
Loading Content
source§unsafe fn reloadFromOrigin_(self) -> id
unsafe fn reloadFromOrigin_(self) -> id
Loading Content
source§unsafe fn reloadFromOrigin_sender_(self, sender: id) -> id
unsafe fn reloadFromOrigin_sender_(self, sender: id) -> id
Loading Content
source§unsafe fn stopLoading_(self)
unsafe fn stopLoading_(self)
Loading Content
source§unsafe fn stopLoading_sender_(self, sender: id) -> id
unsafe fn stopLoading_sender_(self, sender: id) -> id
Loading Content
source§unsafe fn loadData_MIMEType_characterEncodingName_baseURL_(
self,
data: id,
MIMEType: id,
characterEncodingName: id,
baseURL: id
) -> id
unsafe fn loadData_MIMEType_characterEncodingName_baseURL_( self, data: id, MIMEType: id, characterEncodingName: id, baseURL: id ) -> id
Loading Content
source§unsafe fn loadFileURL_allowingReadAccessToURL_(
self,
URL: id,
allowingReadAccessToURL: id
) -> id
unsafe fn loadFileURL_allowingReadAccessToURL_( self, URL: id, allowingReadAccessToURL: id ) -> id
Loading Content