objc2_safari_services/generated/
SFContentBlockerState.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(NSObject))]
11 #[derive(Debug, PartialEq, Eq, Hash)]
12 pub struct SFContentBlockerState;
13);
14
15extern_conformance!(
16 unsafe impl NSObjectProtocol for SFContentBlockerState {}
17);
18
19impl SFContentBlockerState {
20 extern_methods!(
21 #[unsafe(method(isEnabled))]
22 #[unsafe(method_family = none)]
23 pub unsafe fn isEnabled(&self) -> bool;
24 );
25}
26
27impl SFContentBlockerState {
29 extern_methods!(
30 #[unsafe(method(init))]
31 #[unsafe(method_family = init)]
32 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
33
34 #[unsafe(method(new))]
35 #[unsafe(method_family = new)]
36 pub unsafe fn new() -> Retained<Self>;
37 );
38}