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
A displayable representation of a Live Photo—a picture that includes motion and sound from the moments just before and after its capture.

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.

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:

Some properties using for this class:

Some examples using this class:

Blog Entries


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


PHLivePhotoFrameMBS   -   PHLivePhotoRequestOptionsMBS


The biggest plugin in space...