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§
Sourceunsafe fn downloadOfAssetPackBegan(&self, asset_pack: &BAAssetPack)
Available on crate feature BAAssetPack only.
unsafe fn downloadOfAssetPackBegan(&self, asset_pack: &BAAssetPack)
BAAssetPack only.Notifies the receiver that the download began or resumed after being paused.
- Parameter assetPack: The asset pack.
Sourceunsafe fn downloadOfAssetPackPaused(&self, asset_pack: &BAAssetPack)
Available on crate feature BAAssetPack only.
unsafe fn downloadOfAssetPackPaused(&self, asset_pack: &BAAssetPack)
BAAssetPack only.Notifies the receiver that the download paused.
- Parameter assetPack: The asset pack.
Sourceunsafe fn downloadOfAssetPack_hasProgress(
&self,
asset_pack: &BAAssetPack,
progress: &NSProgress,
)
Available on crate feature BAAssetPack only.
unsafe fn downloadOfAssetPack_hasProgress( &self, asset_pack: &BAAssetPack, progress: &NSProgress, )
BAAssetPack only.Notifies the receiver that the download is in progress.
- Parameters:
- assetPack: The asset pack.
- progress: The download progress.
Sourceunsafe fn downloadOfAssetPackFinished(&self, asset_pack: &BAAssetPack)
Available on crate feature BAAssetPack only.
unsafe fn downloadOfAssetPackFinished(&self, asset_pack: &BAAssetPack)
BAAssetPack only.Notifies the receiver that the download completed and that the asset pack is available locally.
- Parameter assetPack: The asset pack.
Sourceunsafe fn downloadOfAssetPack_failedWithError(
&self,
asset_pack: &BAAssetPack,
error: &NSError,
)
Available on crate feature BAAssetPack only.
unsafe fn downloadOfAssetPack_failedWithError( &self, asset_pack: &BAAssetPack, error: &NSError, )
BAAssetPack only.Notifies the receiver that the download failed.
- Parameters:
- assetPack: The asset pack.
- error: The error that occurred.