objc2_browser_engine_kit/generated/
BEAutoFillTextSuggestion.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6use objc2_ui_kit::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(BETextSuggestion, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "BETextSuggestion")]
15 pub struct BEAutoFillTextSuggestion;
16);
17
18#[cfg(feature = "BETextSuggestion")]
19extern_conformance!(
20 unsafe impl NSObjectProtocol for BEAutoFillTextSuggestion {}
21);
22
23#[cfg(feature = "BETextSuggestion")]
24impl BEAutoFillTextSuggestion {
25 extern_methods!(
26 #[unsafe(method(contents))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn contents(&self) -> Retained<NSDictionary<UITextContentType, NSString>>;
30
31 #[unsafe(method(new))]
32 #[unsafe(method_family = new)]
33 pub unsafe fn new(&self) -> Retained<Self>;
34
35 #[unsafe(method(init))]
36 #[unsafe(method_family = init)]
37 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
38 );
39}
40
41#[cfg(feature = "BETextSuggestion")]
43impl BEAutoFillTextSuggestion {
44 extern_methods!(
45 #[unsafe(method(initWithInputText:))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn initWithInputText(
49 this: Allocated<Self>,
50 input_text: &NSString,
51 ) -> Retained<Self>;
52 );
53}
54
55#[cfg(feature = "BETextSuggestion")]
57impl BEAutoFillTextSuggestion {
58 extern_methods!(
59 #[unsafe(method(new))]
60 #[unsafe(method_family = new)]
61 pub unsafe fn new_class() -> Retained<Self>;
62 );
63}