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///
16/// Category for creating language options from AV types
17#[doc(alias = "MPNowPlayingInfoLanguageOptionAdditions")]
18pub unsafe trait AVMediaSelectionOptionMPNowPlayingInfoLanguageOptionAdditions:
19    ClassType + Sized + private_AVMediaSelectionOptionMPNowPlayingInfoLanguageOptionAdditions::Sealed
20{
21    extern_methods!(
22        #[cfg(feature = "MPNowPlayingInfoLanguageOption")]
23        /// Will create a language option from the AVMediaSelectionOption
24        /// Returns nil if the AVMediaSelectionOption does not represent an Audible or Legible selection option.
25        #[unsafe(method(makeNowPlayingInfoLanguageOption))]
26        #[unsafe(method_family = none)]
27        unsafe fn makeNowPlayingInfoLanguageOption(
28            &self,
29        ) -> Option<Retained<MPNowPlayingInfoLanguageOption>>;
30    );
31}
32
33#[cfg(feature = "objc2-av-foundation")]
34impl private_AVMediaSelectionOptionMPNowPlayingInfoLanguageOptionAdditions::Sealed
35    for AVMediaSelectionOption
36{
37}
38#[cfg(feature = "objc2-av-foundation")]
39unsafe impl AVMediaSelectionOptionMPNowPlayingInfoLanguageOptionAdditions
40    for AVMediaSelectionOption
41{
42}
43
44mod private_AVMediaSelectionGroupMPNowPlayingInfoLanguageOptionAdditions {
45    pub trait Sealed {}
46}
47
48/// Category "MPNowPlayingInfoLanguageOptionAdditions" on [`AVMediaSelectionGroup`].
49#[doc(alias = "MPNowPlayingInfoLanguageOptionAdditions")]
50pub unsafe trait AVMediaSelectionGroupMPNowPlayingInfoLanguageOptionAdditions:
51    ClassType + Sized + private_AVMediaSelectionGroupMPNowPlayingInfoLanguageOptionAdditions::Sealed
52{
53    extern_methods!(
54        #[cfg(feature = "MPNowPlayingInfoLanguageOption")]
55        /// Will create a language option group from the AVMediaSelectionGroup
56        /// Any AVMediaSelectionOptions in the AVMediaSelectionGroup not representing
57        /// Audible or Legible selection options will be ignored.
58        #[unsafe(method(makeNowPlayingInfoLanguageOptionGroup))]
59        #[unsafe(method_family = none)]
60        unsafe fn makeNowPlayingInfoLanguageOptionGroup(
61            &self,
62        ) -> Retained<MPNowPlayingInfoLanguageOptionGroup>;
63    );
64}
65
66#[cfg(feature = "objc2-av-foundation")]
67impl private_AVMediaSelectionGroupMPNowPlayingInfoLanguageOptionAdditions::Sealed
68    for AVMediaSelectionGroup
69{
70}
71#[cfg(feature = "objc2-av-foundation")]
72unsafe impl AVMediaSelectionGroupMPNowPlayingInfoLanguageOptionAdditions for AVMediaSelectionGroup {}