objc2_ui_kit/generated/
UIInputSuggestion.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    /// A base class you use to handle suggestions from the keyboard or system.
10    ///
11    /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiinputsuggestion?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct UIInputSuggestion;
15);
16
17extern_conformance!(
18    unsafe impl NSObjectProtocol for UIInputSuggestion {}
19);
20
21impl UIInputSuggestion {
22    extern_methods!();
23}
24
25/// Methods declared on superclass `NSObject`.
26impl UIInputSuggestion {
27    extern_methods!(
28        #[unsafe(method(init))]
29        #[unsafe(method_family = init)]
30        pub fn init(this: Allocated<Self>) -> Retained<Self>;
31
32        #[unsafe(method(new))]
33        #[unsafe(method_family = new)]
34        pub fn new() -> Retained<Self>;
35    );
36}
37
38impl DefaultRetained for UIInputSuggestion {
39    #[inline]
40    fn default_retained() -> Retained<Self> {
41        Self::new()
42    }
43}