objc2_safari_services/generated/
SFContentBlockerState.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/safariservices/sfcontentblockerstate?language=objc)
10    #[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
27/// Methods declared on superclass `NSObject`.
28impl 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}