objc2_media_player/generated/
MPPlayableContentManager.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 #[deprecated = "Use CarPlay framework"]
21 pub struct MPPlayableContentManager;
22);
23
24extern_conformance!(
25 unsafe impl NSObjectProtocol for MPPlayableContentManager {}
26);
27
28impl MPPlayableContentManager {
29 extern_methods!(
30 #[cfg(feature = "MPPlayableContentDataSource")]
31 #[deprecated = "Use CarPlay framework"]
32 #[unsafe(method(dataSource))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn dataSource(
35 &self,
36 ) -> Option<Retained<ProtocolObject<dyn MPPlayableContentDataSource>>>;
37
38 #[cfg(feature = "MPPlayableContentDataSource")]
39 #[deprecated = "Use CarPlay framework"]
43 #[unsafe(method(setDataSource:))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn setDataSource(
46 &self,
47 data_source: Option<&ProtocolObject<dyn MPPlayableContentDataSource>>,
48 );
49
50 #[cfg(feature = "MPPlayableContentDelegate")]
51 #[deprecated = "Use CarPlay framework"]
52 #[unsafe(method(delegate))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn delegate(
55 &self,
56 ) -> Option<Retained<ProtocolObject<dyn MPPlayableContentDelegate>>>;
57
58 #[cfg(feature = "MPPlayableContentDelegate")]
59 #[deprecated = "Use CarPlay framework"]
63 #[unsafe(method(setDelegate:))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn setDelegate(
66 &self,
67 delegate: Option<&ProtocolObject<dyn MPPlayableContentDelegate>>,
68 );
69
70 #[cfg(feature = "MPPlayableContentManagerContext")]
71 #[deprecated = "Use CarPlay framework"]
72 #[unsafe(method(context))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn context(&self) -> Retained<MPPlayableContentManagerContext>;
75
76 #[deprecated = "Use CarPlay framework"]
78 #[unsafe(method(nowPlayingIdentifiers))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn nowPlayingIdentifiers(&self) -> Retained<NSArray<NSString>>;
81
82 #[deprecated = "Use CarPlay framework"]
86 #[unsafe(method(setNowPlayingIdentifiers:))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn setNowPlayingIdentifiers(&self, now_playing_identifiers: &NSArray<NSString>);
89
90 #[deprecated = "Use CarPlay framework"]
92 #[unsafe(method(sharedContentManager))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn sharedContentManager() -> Retained<Self>;
95
96 #[deprecated = "Use CarPlay framework"]
99 #[unsafe(method(reloadData))]
100 #[unsafe(method_family = none)]
101 pub unsafe fn reloadData(&self);
102
103 #[deprecated = "Use CarPlay framework"]
105 #[unsafe(method(beginUpdates))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn beginUpdates(&self);
108
109 #[deprecated = "Use CarPlay framework"]
111 #[unsafe(method(endUpdates))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn endUpdates(&self);
114 );
115}
116
117impl MPPlayableContentManager {
119 extern_methods!(
120 #[unsafe(method(init))]
121 #[unsafe(method_family = init)]
122 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
123
124 #[unsafe(method(new))]
125 #[unsafe(method_family = new)]
126 pub unsafe fn new() -> Retained<Self>;
127 );
128}