BAManagedAssetPackDownloadDelegate

Trait BAManagedAssetPackDownloadDelegate 

Source
pub unsafe trait BAManagedAssetPackDownloadDelegate:
    NSObjectProtocol
    + Send
    + Sync {
    // Provided methods
    unsafe fn downloadOfAssetPackBegan(&self, asset_pack: &BAAssetPack)
       where Self: Sized + Message { ... }
    unsafe fn downloadOfAssetPackPaused(&self, asset_pack: &BAAssetPack)
       where Self: Sized + Message { ... }
    unsafe fn downloadOfAssetPack_hasProgress(
        &self,
        asset_pack: &BAAssetPack,
        progress: &NSProgress,
    )
       where Self: Sized + Message { ... }
    unsafe fn downloadOfAssetPackFinished(&self, asset_pack: &BAAssetPack)
       where Self: Sized + Message { ... }
    unsafe fn downloadOfAssetPack_failedWithError(
        &self,
        asset_pack: &BAAssetPack,
        error: &NSError,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature BAManagedAssetPackDownloadDelegate only.
Expand description

An object that handles status updates when downloading an asset pack.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn downloadOfAssetPackBegan(&self, asset_pack: &BAAssetPack)
where Self: Sized + Message,

Available on crate feature BAAssetPack only.

Notifies the receiver that the download began or resumed after being paused.

  • Parameter assetPack: The asset pack.
Source

unsafe fn downloadOfAssetPackPaused(&self, asset_pack: &BAAssetPack)
where Self: Sized + Message,

Available on crate feature BAAssetPack only.

Notifies the receiver that the download paused.

  • Parameter assetPack: The asset pack.
Source

unsafe fn downloadOfAssetPack_hasProgress( &self, asset_pack: &BAAssetPack, progress: &NSProgress, )
where Self: Sized + Message,

Available on crate feature BAAssetPack only.

Notifies the receiver that the download is in progress.

  • Parameters:
  • assetPack: The asset pack.
  • progress: The download progress.
Source

unsafe fn downloadOfAssetPackFinished(&self, asset_pack: &BAAssetPack)
where Self: Sized + Message,

Available on crate feature BAAssetPack only.

Notifies the receiver that the download completed and that the asset pack is available locally.

  • Parameter assetPack: The asset pack.
Source

unsafe fn downloadOfAssetPack_failedWithError( &self, asset_pack: &BAAssetPack, error: &NSError, )
where Self: Sized + Message,

Available on crate feature BAAssetPack only.

Notifies the receiver that the download failed.

  • Parameters:
  • assetPack: The asset pack.
  • error: The error that occurred.

Trait Implementations§

Source§

impl ProtocolType for dyn BAManagedAssetPackDownloadDelegate

Source§

const NAME: &'static str = "BAManagedAssetPackDownloadDelegate"

The name of the Objective-C protocol that this type represents. Read more
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 BAManagedAssetPackDownloadDelegate

Implementations on Foreign Types§

Source§

impl<T> BAManagedAssetPackDownloadDelegate for ProtocolObject<T>

Implementors§