use crate::common::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::UserNotifications::*;
extern_static!(UNNotificationDefaultActionIdentifier: &'static NSString);
extern_static!(UNNotificationDismissActionIdentifier: &'static NSString);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "UserNotifications_UNNotificationResponse")]
pub struct UNNotificationResponse;
#[cfg(feature = "UserNotifications_UNNotificationResponse")]
unsafe impl ClassType for UNNotificationResponse {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "UserNotifications_UNNotificationResponse")]
unsafe impl NSCoding for UNNotificationResponse {}
#[cfg(feature = "UserNotifications_UNNotificationResponse")]
unsafe impl NSCopying for UNNotificationResponse {}
#[cfg(feature = "UserNotifications_UNNotificationResponse")]
unsafe impl NSObjectProtocol for UNNotificationResponse {}
#[cfg(feature = "UserNotifications_UNNotificationResponse")]
unsafe impl NSSecureCoding for UNNotificationResponse {}
extern_methods!(
#[cfg(feature = "UserNotifications_UNNotificationResponse")]
unsafe impl UNNotificationResponse {
#[cfg(feature = "UserNotifications_UNNotification")]
#[method_id(@__retain_semantics Other notification)]
pub unsafe fn notification(&self) -> Id<UNNotification>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other actionIdentifier)]
pub unsafe fn actionIdentifier(&self) -> Id<NSString>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "UserNotifications_UNNotificationResponse")]
unsafe impl UNNotificationResponse {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "UserNotifications_UNTextInputNotificationResponse")]
pub struct UNTextInputNotificationResponse;
#[cfg(feature = "UserNotifications_UNTextInputNotificationResponse")]
unsafe impl ClassType for UNTextInputNotificationResponse {
#[inherits(NSObject)]
type Super = UNNotificationResponse;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "UserNotifications_UNTextInputNotificationResponse")]
unsafe impl NSCoding for UNTextInputNotificationResponse {}
#[cfg(feature = "UserNotifications_UNTextInputNotificationResponse")]
unsafe impl NSCopying for UNTextInputNotificationResponse {}
#[cfg(feature = "UserNotifications_UNTextInputNotificationResponse")]
unsafe impl NSObjectProtocol for UNTextInputNotificationResponse {}
#[cfg(feature = "UserNotifications_UNTextInputNotificationResponse")]
unsafe impl NSSecureCoding for UNTextInputNotificationResponse {}
extern_methods!(
#[cfg(feature = "UserNotifications_UNTextInputNotificationResponse")]
unsafe impl UNTextInputNotificationResponse {
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other userText)]
pub unsafe fn userText(&self) -> Id<NSString>;
}
);
extern_methods!(
#[cfg(feature = "UserNotifications_UNTextInputNotificationResponse")]
unsafe impl UNTextInputNotificationResponse {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "UserNotifications_UNTextInputNotificationResponse")]
unsafe impl UNTextInputNotificationResponse {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);