Platforms to show: All Mac Windows Linux Cross-Platform
PHLivePhotoMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
In macOS, you can use this class to display edits in progress for Live Photo content in a photo editing extension.
For guidance on how to integrate Live Photos with your app’s user experience, see Live Photos in iOS Human Interface Guidelines.
The PHLivePhotoMBS class serves in much the same role for Live Photos as the NSImageMBS class serves for static images. A NSImageMBS object represents not the data file an image is loaded from, but instead a ready-to-use image that can be displayed in a view—similarly, a PHLivePhotoMBS object represents a Live Photo ready to display with motion and sound using a PHLivePhotoViewMBS object, not an entry in the Photos library or the data resources that constitute a Live Photo. (To work with Live Photos as elements of the Photos library, use the PHAsset class. To work with the data files that constitute a Live Photo, use the PHAssetResourceMBS class.)
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 3 properties
- 2 methods
- method Constructor Private
- method copy as PHLivePhotoMBS
- 7 shared methods
- shared method available as boolean
- shared method cancelLivePhotoRequestWithRequestID(requestID as Integer)
- shared method PHLivePhotoInfoCancelledKey as String
- shared method PHLivePhotoInfoErrorKey as String
- shared method PHLivePhotoInfoIsDegradedKey as String
- shared method requestLivePhotoWithResourceFileURLs(Files() as FolderItem, placeholderImage as NSImageMBS = nil, targetSize as CGSizeMBS, contentMode as Integer, theDelegate as RequestLivePhotoWithResourceFileURLsMBS, Tag as Variant = nil) as Integer
- shared method requestLivePhotoWithResourceFileURLs(fileURLs() as String, placeholderImage as NSImageMBS = nil, targetSize as CGSizeMBS, contentMode as Integer, theDelegate as RequestLivePhotoWithResourceFileURLsMBS, Tag as Variant = nil) as Integer
- delegate RequestLivePhotoWithResourceFileURLsMBS(LivePhoto as PHLivePhotoMBS, placeholderImage as NSImageMBS, targetSize as CGSizeMBS, contentMode as Integer, tag as variant, info as Dictionary)
- 4 constants
Constants
Constant | Value | Description |
---|---|---|
RequestIDInvalid | 0 | The value for an invalid request ID. |
Content Modes
Constant | Value | Description |
---|---|---|
ContentModeAspectFill | 1 |
Scales the image so that it completely fills the target size. |
ContentModeAspectFit | 0 |
Scales the image so that its larger dimension fits the target size. |
ContentModeDefault | 0 |
Fits the image to the requested size using the default option, ContentModeAspectFit. |
This class has no sub classes.
Some methods using this class:
- PHAssetResourceMBS.assetResourcesForLivePhoto(livePhoto as PHLivePhotoMBS) as PHAssetResourceMBS()
Some properties using for this class:
- DesktopPHLivePhotoControlMBS.LivePhoto as PHLivePhotoMBS
- PHContentEditingInputMBS.livePhoto as PHLivePhotoMBS
- PHLivePhotoControlMBS.LivePhoto as PHLivePhotoMBS
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS Mac64bit Plugin.
PHLivePhotoFrameMBS - PHLivePhotoRequestOptionsMBS