use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[deprecated = "Use CarPlay framework"]
pub struct MPPlayableContentManagerContext;
unsafe impl ClassType for MPPlayableContentManagerContext {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for MPPlayableContentManagerContext {}
extern_methods!(
unsafe impl MPPlayableContentManagerContext {
#[deprecated = "Use CarPlay framework"]
#[method(enforcedContentItemsCount)]
pub unsafe fn enforcedContentItemsCount(&self) -> NSInteger;
#[deprecated = "Use CarPlay framework"]
#[method(enforcedContentTreeDepth)]
pub unsafe fn enforcedContentTreeDepth(&self) -> NSInteger;
#[deprecated = "Use CarPlay framework"]
#[method(contentLimitsEnforced)]
pub unsafe fn contentLimitsEnforced(&self) -> bool;
#[deprecated]
#[method(contentLimitsEnabled)]
pub unsafe fn contentLimitsEnabled(&self) -> bool;
#[deprecated = "Use CarPlay framework"]
#[method(endpointAvailable)]
pub unsafe fn endpointAvailable(&self) -> bool;
}
);
extern_methods!(
unsafe impl MPPlayableContentManagerContext {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);