Enumeration

PHAssetMediaType

Constants identifying the general type of an asset, such as image or video.

Declaration

typedef enum PHAssetMediaType : NSInteger {
    ...
} PHAssetMediaType;

Overview

You use these constants with the PHAsset and PHContentEditingInput classes to fetch specific types of assets or to identify an asset being edited.

Topics

Constants

PHAssetMediaTypeUnknown

The asset’s type is unknown.

PHAssetMediaTypeImage

The asset is a photo or other static image.

PHAssetMediaTypeVideo

The asset is a video file.

PHAssetMediaTypeAudio

The asset is an audio file.

See Also

Reading Asset Metadata

mediaType

The type of the asset, such as video or audio.

mediaSubtypes

The subtypes of the asset, identifying special kinds of assets such as panoramic photo or high-framerate video.

PHAssetMediaSubtype

Constants identifying specific variations of asset media, such as panorama or screenshot photos and time lapse or high frame rate video.

sourceType

The means by which the asset entered the user’s Photos library.

PHAssetSourceType

Means by which an asset enters the Photos library, used by the PHAssetSourceType property.

pixelWidth

The width, in pixels, of the asset’s image or video data.

pixelHeight

The height, in pixels, of the asset’s image or video data.

creationDate

The date and time at which the asset was originally created.

modificationDate

The date and time at which the asset was last modified.

location

The location information saved with the asset.

duration

The duration, in seconds, of the video asset.

favorite

A Boolean value that indicates whether the user has marked the asset as a favorite.

hidden

A Boolean value that indicates whether the user has hidden the asset.

syncFailureHidden

A Boolean value that indicates whether the user has chosen to hide to the sync failure message.

Deprecated