use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[deprecated = "Use CarPlay framework"]
pub struct MPPlayableContentManager;
);
extern_conformance!(
unsafe impl NSObjectProtocol for MPPlayableContentManager {}
);
impl MPPlayableContentManager {
extern_methods!(
#[cfg(feature = "MPPlayableContentDataSource")]
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(dataSource))]
#[unsafe(method_family = none)]
pub unsafe fn dataSource(
&self,
) -> Option<Retained<ProtocolObject<dyn MPPlayableContentDataSource>>>;
#[cfg(feature = "MPPlayableContentDataSource")]
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(setDataSource:))]
#[unsafe(method_family = none)]
pub unsafe fn setDataSource(
&self,
data_source: Option<&ProtocolObject<dyn MPPlayableContentDataSource>>,
);
#[cfg(feature = "MPPlayableContentDelegate")]
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(delegate))]
#[unsafe(method_family = none)]
pub unsafe fn delegate(
&self,
) -> Option<Retained<ProtocolObject<dyn MPPlayableContentDelegate>>>;
#[cfg(feature = "MPPlayableContentDelegate")]
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(setDelegate:))]
#[unsafe(method_family = none)]
pub unsafe fn setDelegate(
&self,
delegate: Option<&ProtocolObject<dyn MPPlayableContentDelegate>>,
);
#[cfg(feature = "MPPlayableContentManagerContext")]
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(context))]
#[unsafe(method_family = none)]
pub unsafe fn context(&self) -> Retained<MPPlayableContentManagerContext>;
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(nowPlayingIdentifiers))]
#[unsafe(method_family = none)]
pub unsafe fn nowPlayingIdentifiers(&self) -> Retained<NSArray<NSString>>;
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(setNowPlayingIdentifiers:))]
#[unsafe(method_family = none)]
pub unsafe fn setNowPlayingIdentifiers(&self, now_playing_identifiers: &NSArray<NSString>);
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(sharedContentManager))]
#[unsafe(method_family = none)]
pub unsafe fn sharedContentManager() -> Retained<Self>;
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(reloadData))]
#[unsafe(method_family = none)]
pub unsafe fn reloadData(&self);
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(beginUpdates))]
#[unsafe(method_family = none)]
pub unsafe fn beginUpdates(&self);
#[deprecated = "Use CarPlay framework"]
#[unsafe(method(endUpdates))]
#[unsafe(method_family = none)]
pub unsafe fn endUpdates(&self);
);
}
impl MPPlayableContentManager {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}