Platforms to show: All Mac Windows Linux Cross-Platform

Back to PHVideoRequestOptionsMBS class.

PHVideoRequestOptionsMBS.ProgressHandlerMBS(progress as double, tag as Variant, error as NSErrorMBS, byref stop as Boolean, info as Dictionary)

Type Topic Plugin Version macOS Windows Linux iOS Targets
delegate Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The delegate that Photos calls while downloading asset data from iCloud.

If you request a video asset whose data is not on the local device, and you have enabled downloading with the networkAccessAllowed property, Photos calls your block periodically to report progress and allow canceling the download.

The method takes the following parameters:

progress: A floating-point value indicating the progress of the download. A value of 0.0 indicates the download has just started, and a value of 1.0 indicates the download is complete.
error: An NSErrorMBS object describing an error that occurred when attempting to download the video, or nil if no errors have occurred.
stop: A pointer to a Boolean value. To cancel the download, set stop to true inside the method.
info: A dictionary providing additional information about the status of the video request. See Image Result Info Keys for possible keys and values.

If the event is dispatched asynchronously to main thread, the stop property will not work.

Some methods using this delegate:

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...