Trait MPPlayableContentDataSource

Source
pub unsafe trait MPPlayableContentDataSource: NSObjectProtocol {
    // Provided methods
    unsafe fn beginLoadingChildItemsAtIndexPath_completionHandler(
        &self,
        index_path: &NSIndexPath,
        completion_handler: &Block<(*mut NSError,), ()>,
    )
       where Self: Sized + Message { ... }
    unsafe fn childItemsDisplayPlaybackProgressAtIndexPath(
        &self,
        index_path: &NSIndexPath,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn contentItemForIdentifier_completionHandler(
        &self,
        identifier: &NSString,
        completion_handler: &Block<(*mut MPContentItem, *mut NSError), ()>,
    )
       where Self: Sized + Message { ... }
    unsafe fn numberOfChildItemsAtIndexPath(
        &self,
        index_path: &NSIndexPath,
    ) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn contentItemAtIndexPath(
        &self,
        index_path: &NSIndexPath,
    ) -> Option<Id<MPContentItem>>
       where Self: Sized + Message { ... }
}
👎Deprecated: Use CarPlay framework
Available on crate feature MediaPlayer only.

Provided Methods§

Source

unsafe fn beginLoadingChildItemsAtIndexPath_completionHandler( &self, index_path: &NSIndexPath, completion_handler: &Block<(*mut NSError,), ()>, )
where Self: Sized + Message,

👎Deprecated: Use CarPlay framework
Available on crate features Foundation_NSError and Foundation_NSIndexPath only.
Source

unsafe fn childItemsDisplayPlaybackProgressAtIndexPath( &self, index_path: &NSIndexPath, ) -> bool
where Self: Sized + Message,

👎Deprecated: Use CarPlay framework
Available on crate feature Foundation_NSIndexPath only.
Source

unsafe fn contentItemForIdentifier_completionHandler( &self, identifier: &NSString, completion_handler: &Block<(*mut MPContentItem, *mut NSError), ()>, )
where Self: Sized + Message,

👎Deprecated: Use CarPlay framework
Available on crate features Foundation_NSError and Foundation_NSString and MediaPlayer_MPContentItem only.
Source

unsafe fn numberOfChildItemsAtIndexPath( &self, index_path: &NSIndexPath, ) -> NSInteger
where Self: Sized + Message,

👎Deprecated: Use CarPlay framework
Available on crate feature Foundation_NSIndexPath only.
Source

unsafe fn contentItemAtIndexPath( &self, index_path: &NSIndexPath, ) -> Option<Id<MPContentItem>>
where Self: Sized + Message,

👎Deprecated: Use CarPlay framework
Available on crate features Foundation_NSIndexPath and MediaPlayer_MPContentItem only.

Trait Implementations§

Source§

impl ProtocolType for dyn MPPlayableContentDataSource

Source§

const NAME: &'static str = "MPPlayableContentDataSource"

The name of the Objective-C protocol that this type represents.
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn MPPlayableContentDataSource

Implementations on Foreign Types§

Source§

impl<T> MPPlayableContentDataSource for ProtocolObject<T>

Implementors§