Platforms to show: All Mac Windows Linux Cross-Platform

Back to PHImageManagerMBS class.

PHImageManagerMBS.available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Checks whether class is available.

Should return true on MacOS 10.13 or newer.

PHImageManagerMBS.defaultManager as PHImageManagerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the shared image manager object.

This method always returns the same image manager object, which is shared for all uses in your app.

PHImageManagerMBS.MaximumSize as CGSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A special value for requesting original image data or the largest rendered image available.

When you use the PHImageManagerMaximumSize option, Photos provides the largest image available for the asset without scaling or cropping. (That is, it ignores the resizeMode option.)

PHImageManagerMBS.PHImageCancelledKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
One of the keys for the info dictionary.

A key whose value indicates whether the image request was canceled.

This key provides information about an image loading result in the resultHandler block for methods listed in Requesting Images. The corresponding value is a Boolean value.If you call the cancelImageRequest method to cancel a request, Photos calls your result handler block with the value true for this key.

Some examples using this method:

PHImageManagerMBS.PHImageErrorKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
One of the keys for the info dictionary.

A key whose value is an error that occurred when Photos attempted to load the image.

This key provides information about an image loading result in the resultHandler block for methods listed in Requesting Images. The corresponding value is an NSErrorMBS object.Photos provides an error object for this key if it cannot provide an image for your handler block’s result parameter. Examine the error object for information about the cause of the error.

Some examples using this method:

PHImageManagerMBS.PHImageResultIsDegradedKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
One of the keys for the info dictionary.

A key whose value indicates whether the result image is a low-quality substitute for the requested image.

This key provides information about an image loading result in the resultHandler block for methods listed in Requesting Images. The corresponding value is a Boolean value. If true, the result parameter of your resultHandler block contains a low-quality image because Photos could not yet provide a higher-quality image. Depending on your settings in the PHImageRequestOptions object that you provided with the request, Photos may call your result handler delegate again to provide a higher-quality image.

Some examples using this method:

PHImageManagerMBS.PHImageResultIsInCloudKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
One of the keys for the info dictionary.

A key whose value indicates whether photo asset data is stored on the local device or must be downloaded from iCloud.

This key provides information about an image loading result in the resultHandler delegate for methods listed in Requesting Images. The corresponding value is a Boolean value.

If true, no image was provided, because the asset data must be downloaded from iCloud. To download the data, submit another request, and specify true for the networkAccessAllowed option.

PHImageManagerMBS.PHImageResultRequestIDKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
One of the keys for the info dictionary.

A key whose value is a unique identifier for the image request.

This key provides information about an image loading result in the resultHandler block for methods listed in Requesting Images. The corresponding value is an integer value. This identifier matches that returned when making a request. You can use it with the cancelImageRequest method to cancel requests with pending results that are no longer needed.

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


The biggest plugin in space...