objc2_io_bluetooth/generated/objc2/IOBluetoothUserNotification.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10 /// Represents a registered notification.
11 ///
12 /// When registering for various notifications in the system, an IOBluetoothUserNotification
13 /// object is returned. To unregister from the notification, call -unregister on the
14 /// IOBluetoothUserNotification object. Once -unregister is called, the object will no
15 /// longer be valid.
16 ///
17 /// See also [Apple's documentation](https://developer.apple.com/documentation/iobluetooth/iobluetoothusernotification?language=objc)
18 #[unsafe(super(NSObject))]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 pub struct IOBluetoothUserNotification;
21);
22
23extern_conformance!(
24 unsafe impl NSObjectProtocol for IOBluetoothUserNotification {}
25);
26
27impl IOBluetoothUserNotification {
28 extern_methods!(
29 /// Called to unregister the target notification.
30 ///
31 /// Once this method has completed, the target IOBluetoothUserNotification will
32 /// no longer be valid.
33 #[unsafe(method(unregister))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn unregister(&self);
36 );
37}
38
39/// Methods declared on superclass `NSObject`.
40impl IOBluetoothUserNotification {
41 extern_methods!(
42 #[unsafe(method(init))]
43 #[unsafe(method_family = init)]
44 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45
46 #[unsafe(method(new))]
47 #[unsafe(method_family = new)]
48 pub unsafe fn new() -> Retained<Self>;
49 );
50}