pub struct AssetDownloadURLSession { /* private fields */ }Expand description
Re-exports the AVPlayer framework surface for this item.
Implementations§
Source§impl AssetDownloadURLSession
impl AssetDownloadURLSession
pub fn background(identifier: &str) -> Result<Self, AVPlayerError>
Sourcepub fn background_with_events(
identifier: &str,
queue_label: Option<&str>,
capacity: usize,
) -> Result<(Self, AssetDownloadDelegateEventStream), AVPlayerError>
pub fn background_with_events( identifier: &str, queue_label: Option<&str>, capacity: usize, ) -> Result<(Self, AssetDownloadDelegateEventStream), AVPlayerError>
Creates a background download session together with an async delegate-event stream.
Sourcepub fn background_events(
identifier: &str,
capacity: usize,
) -> Result<(Self, AssetDownloadDelegateEventStream), AVPlayerError>
pub fn background_events( identifier: &str, capacity: usize, ) -> Result<(Self, AssetDownloadDelegateEventStream), AVPlayerError>
Creates a background download session with the default queue choice and an async delegate-event stream.
pub fn background_with_handler<F>( identifier: &str, queue_label: Option<&str>, callback: F, ) -> Result<Self, AVPlayerError>
pub fn asset_download_task( &self, configuration: &AssetDownloadConfiguration, ) -> Result<AssetDownloadTask, AVPlayerError>
pub fn aggregate_asset_download_task( &self, asset: &UrlAsset, media_selections: &[MediaSelection], title: &str, artwork_data: Option<&[u8]>, ) -> Result<AggregateAssetDownloadTask, AVPlayerError>
pub fn finish_tasks_and_invalidate(&self)
pub fn invalidate_and_cancel(&self)
Trait Implementations§
Source§impl Debug for AssetDownloadURLSession
impl Debug for AssetDownloadURLSession
Source§impl Drop for AssetDownloadURLSession
impl Drop for AssetDownloadURLSession
Auto Trait Implementations§
impl Freeze for AssetDownloadURLSession
impl RefUnwindSafe for AssetDownloadURLSession
impl !Send for AssetDownloadURLSession
impl !Sync for AssetDownloadURLSession
impl Unpin for AssetDownloadURLSession
impl UnsafeUnpin for AssetDownloadURLSession
impl UnwindSafe for AssetDownloadURLSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more