objc2_media_player/generated/
AVFoundation_MPNowPlayingInfoLanguageOptionAdditions.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-av-foundation")]
6use objc2_av_foundation::*;
7
8use crate::*;
9
10mod private_AVMediaSelectionOptionMPNowPlayingInfoLanguageOptionAdditions {
11    pub trait Sealed {}
12}
13
14/// Category "MPNowPlayingInfoLanguageOptionAdditions" on [`AVMediaSelectionOption`].
15/// Category for creating language options from AV types
16#[doc(alias = "MPNowPlayingInfoLanguageOptionAdditions")]
17pub unsafe trait AVMediaSelectionOptionMPNowPlayingInfoLanguageOptionAdditions:
18    ClassType + Sized + private_AVMediaSelectionOptionMPNowPlayingInfoLanguageOptionAdditions::Sealed
19{
20    extern_methods!(
21        #[cfg(feature = "MPNowPlayingInfoLanguageOption")]
22        /// Will create a language option from the AVMediaSelectionOption
23        /// Returns nil if the AVMediaSelectionOption does not represent an Audible or Legible selection option.
24        #[unsafe(method(makeNowPlayingInfoLanguageOption))]
25        #[unsafe(method_family = none)]
26        unsafe fn makeNowPlayingInfoLanguageOption(
27            &self,
28        ) -> Option<Retained<MPNowPlayingInfoLanguageOption>>;
29    );
30}
31
32#[cfg(feature = "objc2-av-foundation")]
33impl private_AVMediaSelectionOptionMPNowPlayingInfoLanguageOptionAdditions::Sealed
34    for AVMediaSelectionOption
35{
36}
37#[cfg(feature = "objc2-av-foundation")]
38unsafe impl AVMediaSelectionOptionMPNowPlayingInfoLanguageOptionAdditions
39    for AVMediaSelectionOption
40{
41}
42
43mod private_AVMediaSelectionGroupMPNowPlayingInfoLanguageOptionAdditions {
44    pub trait Sealed {}
45}
46
47/// Category "MPNowPlayingInfoLanguageOptionAdditions" on [`AVMediaSelectionGroup`].
48#[doc(alias = "MPNowPlayingInfoLanguageOptionAdditions")]
49pub unsafe trait AVMediaSelectionGroupMPNowPlayingInfoLanguageOptionAdditions:
50    ClassType + Sized + private_AVMediaSelectionGroupMPNowPlayingInfoLanguageOptionAdditions::Sealed
51{
52    extern_methods!(
53        #[cfg(feature = "MPNowPlayingInfoLanguageOption")]
54        /// Will create a language option group from the AVMediaSelectionGroup
55        /// Any AVMediaSelectionOptions in the AVMediaSelectionGroup not representing
56        /// Audible or Legible selection options will be ignored.
57        #[unsafe(method(makeNowPlayingInfoLanguageOptionGroup))]
58        #[unsafe(method_family = none)]
59        unsafe fn makeNowPlayingInfoLanguageOptionGroup(
60            &self,
61        ) -> Retained<MPNowPlayingInfoLanguageOptionGroup>;
62    );
63}
64
65#[cfg(feature = "objc2-av-foundation")]
66impl private_AVMediaSelectionGroupMPNowPlayingInfoLanguageOptionAdditions::Sealed
67    for AVMediaSelectionGroup
68{
69}
70#[cfg(feature = "objc2-av-foundation")]
71unsafe impl AVMediaSelectionGroupMPNowPlayingInfoLanguageOptionAdditions for AVMediaSelectionGroup {}