objc2_web_kit/generated/
WKNavigation.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(NSObject))]
17 #[thread_kind = MainThreadOnly]
18 #[derive(Debug, PartialEq, Eq, Hash)]
19 pub struct WKNavigation;
20);
21
22extern_conformance!(
23 unsafe impl NSObjectProtocol for WKNavigation {}
24);
25
26impl WKNavigation {
27 extern_methods!(
28 #[cfg(feature = "WKWebpagePreferences")]
29 #[unsafe(method(effectiveContentMode))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn effectiveContentMode(&self) -> WKContentMode;
35 );
36}
37
38impl WKNavigation {
40 extern_methods!(
41 #[unsafe(method(init))]
42 #[unsafe(method_family = init)]
43 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
44
45 #[unsafe(method(new))]
46 #[unsafe(method_family = new)]
47 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
48 );
49}