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
22unsafe impl NSObjectProtocol for WKNavigation {}
23
24impl WKNavigation {
25 extern_methods!(
26 #[cfg(feature = "WKWebpagePreferences")]
27 #[unsafe(method(effectiveContentMode))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn effectiveContentMode(&self) -> WKContentMode;
33 );
34}
35
36impl WKNavigation {
38 extern_methods!(
39 #[unsafe(method(init))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42
43 #[unsafe(method(new))]
44 #[unsafe(method_family = new)]
45 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
46 );
47}