---
title: PHAssetMediaType
framework: photos
role: symbol
role_heading: Enumeration
path: photos/phassetmediatype
---

# PHAssetMediaType

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

## Declaration

```swift
enum PHAssetMediaType
```

## Overview

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

- [PHAssetMediaType.unknown](photos/phassetmediatype/unknown.md)
- [PHAssetMediaType.image](photos/phassetmediatype/image.md)
- [PHAssetMediaType.video](photos/phassetmediatype/video.md)
- [PHAssetMediaType.audio](photos/phassetmediatype/audio.md)

### Initializers

- [init(rawValue:)](photos/phassetmediatype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Reading Asset Metadata

- [contentType](photos/phasset/contenttype.md)
- [mediaType](photos/phasset/mediatype.md)
- [mediaSubtypes](photos/phasset/mediasubtypes.md)
- [PHAssetMediaSubtype](photos/phassetmediasubtype.md)
- [sourceType](photos/phasset/sourcetype.md)
- [PHAssetSourceType](photos/phassetsourcetype.md)
- [pixelWidth](photos/phasset/pixelwidth.md)
- [pixelHeight](photos/phasset/pixelheight.md)
- [addedDate](photos/phasset/addeddate.md)
- [creationDate](photos/phasset/creationdate.md)
- [modificationDate](photos/phasset/modificationdate.md)
- [location](photos/phasset/location.md)
- [duration](photos/phasset/duration.md)
- [isFavorite](photos/phasset/isfavorite.md)
- [isHidden](photos/phasset/ishidden.md)
