Patches

Photo Library Media

Photo Library Media

Access information about a Photo media asset.

Photo Library Media

  • Asset
  • Image
  • Video
  • Natural Size
  • isPlayable
  • isFavorite

Asset

A Photo media asset coming from Photo Library.

Image

If the photo media asset is an image it returns the corresponding image, if it’s a video it returns a snapshot image of the video.

Video

The corresponding video if the photo media asset is video type or an empty video when the asset is an image.

Natural Size

The original size of the photo media asset.

isPlayable

A boolean value representing if the photo media asset can be played. It returns true only for videos.

isFavorite

A boolean value representing if the photo media asset is a favorite.