use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(UIInputSuggestion, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "UIInputSuggestion")]
pub struct UISmartReplySuggestion;
);
#[cfg(feature = "UIInputSuggestion")]
extern_conformance!(
unsafe impl NSObjectProtocol for UISmartReplySuggestion {}
);
#[cfg(feature = "UIInputSuggestion")]
impl UISmartReplySuggestion {
extern_methods!(
#[unsafe(method(smartReply))]
#[unsafe(method_family = none)]
pub fn smartReply(&self) -> Retained<NSString>;
);
}
#[cfg(feature = "UIInputSuggestion")]
impl UISmartReplySuggestion {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new() -> Retained<Self>;
);
}
#[cfg(feature = "UIInputSuggestion")]
impl DefaultRetained for UISmartReplySuggestion {
#[inline]
fn default_retained() -> Retained<Self> {
Self::new()
}
}