70 lines
2.4 KiB
Rust
70 lines
2.4 KiB
Rust
//! This file has been automatically generated by `objc2`'s `header-translator`.
|
|
//! DO NOT EDIT
|
|
use objc2::__framework_prelude::*;
|
|
use objc2_foundation::*;
|
|
|
|
use crate::*;
|
|
|
|
// NS_TYPED_EXTENSIBLE_ENUM
|
|
pub type UNNotificationSoundName = NSString;
|
|
|
|
extern_class!(
|
|
#[derive(Debug, PartialEq, Eq, Hash)]
|
|
pub struct UNNotificationSound;
|
|
|
|
unsafe impl ClassType for UNNotificationSound {
|
|
type Super = NSObject;
|
|
type Mutability = InteriorMutable;
|
|
}
|
|
);
|
|
|
|
unsafe impl NSCoding for UNNotificationSound {}
|
|
|
|
unsafe impl NSCopying for UNNotificationSound {}
|
|
|
|
unsafe impl NSObjectProtocol for UNNotificationSound {}
|
|
|
|
unsafe impl NSSecureCoding for UNNotificationSound {}
|
|
|
|
extern_methods!(
|
|
unsafe impl UNNotificationSound {
|
|
#[method_id(@__retain_semantics Other defaultSound)]
|
|
pub unsafe fn defaultSound() -> Retained<UNNotificationSound>;
|
|
|
|
#[method_id(@__retain_semantics Other defaultRingtoneSound)]
|
|
pub unsafe fn defaultRingtoneSound() -> Retained<UNNotificationSound>;
|
|
|
|
#[method_id(@__retain_semantics Other defaultCriticalSound)]
|
|
pub unsafe fn defaultCriticalSound() -> Retained<UNNotificationSound>;
|
|
|
|
#[method_id(@__retain_semantics Other defaultCriticalSoundWithAudioVolume:)]
|
|
pub unsafe fn defaultCriticalSoundWithAudioVolume(volume: c_float) -> Retained<Self>;
|
|
|
|
#[method_id(@__retain_semantics Other soundNamed:)]
|
|
pub unsafe fn soundNamed(name: &UNNotificationSoundName) -> Retained<Self>;
|
|
|
|
#[method_id(@__retain_semantics Other ringtoneSoundNamed:)]
|
|
pub unsafe fn ringtoneSoundNamed(name: &UNNotificationSoundName) -> Retained<Self>;
|
|
|
|
#[method_id(@__retain_semantics Other criticalSoundNamed:)]
|
|
pub unsafe fn criticalSoundNamed(name: &UNNotificationSoundName) -> Retained<Self>;
|
|
|
|
#[method_id(@__retain_semantics Other criticalSoundNamed:withAudioVolume:)]
|
|
pub unsafe fn criticalSoundNamed_withAudioVolume(
|
|
name: &UNNotificationSoundName,
|
|
volume: c_float,
|
|
) -> Retained<Self>;
|
|
|
|
#[method_id(@__retain_semantics Init init)]
|
|
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
|
|
}
|
|
);
|
|
|
|
extern_methods!(
|
|
/// Methods declared on superclass `NSObject`
|
|
unsafe impl UNNotificationSound {
|
|
#[method_id(@__retain_semantics New new)]
|
|
pub unsafe fn new() -> Retained<Self>;
|
|
}
|
|
);
|