use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[deprecated = "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit."]
pub struct GKNotificationBanner;
);
extern_conformance!(
unsafe impl NSObjectProtocol for GKNotificationBanner {}
);
impl GKNotificationBanner {
extern_methods!(
#[cfg(feature = "block2")]
#[deprecated = "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit."]
#[unsafe(method(showBannerWithTitle:message:completionHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn showBannerWithTitle_message_completionHandler(
title: Option<&NSString>,
message: Option<&NSString>,
completion_handler: Option<&block2::DynBlock<dyn Fn()>>,
);
#[cfg(feature = "block2")]
#[deprecated = "Use UNNotificationRequest or provide custom UI instead. This method will become a no-op in a future version of GameKit."]
#[unsafe(method(showBannerWithTitle:message:duration:completionHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn showBannerWithTitle_message_duration_completionHandler(
title: Option<&NSString>,
message: Option<&NSString>,
duration: NSTimeInterval,
completion_handler: Option<&block2::DynBlock<dyn Fn()>>,
);
);
}
impl GKNotificationBanner {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}