---
title: ALAsset
framework: assetslibrary
role: symbol
role_heading: Class
path: assetslibrary/alasset
---

# ALAsset

An ALAsset object represents a photo or a video managed by the Photo application.

## Declaration

```occ
@interface ALAsset : NSObject
```

## Overview

Overview important: The Assets Library framework is deprecated as of iOS 9.0. Instead, use the Photos framework instead, which in iOS 8.0 and later provides more features and better performance for working with a user’s photo library. For more information, see Photos. In the Photos framework, the PHAsset class provides functionality for fetching and working with photo and video assets. Assets can have multiple representations, for example a photo which was captured in RAW and JPG. Different representations of the same asset may have different dimensions.

## Topics

### Constants

- [Property Keys](assetslibrary/property-keys.md)
- [Invalid Property Value](assetslibrary/invalid-property-value.md)
- [Asset Types](assetslibrary/asset-types.md)

### Instance Properties

- [editable](assetslibrary/alasset/editable.md)
- [originalAsset](assetslibrary/alasset/originalasset.md)

### Instance Methods

- [aspectRatioThumbnail](assetslibrary/alasset/aspectratiothumbnail.md)
- [defaultRepresentation](assetslibrary/alasset/defaultrepresentation.md)
- [representationForUTI:](assetslibrary/alasset/representationforuti:.md)
- [setImageData:metadata:completionBlock:](assetslibrary/alasset/setimagedata:metadata:completionblock:.md)
- [setVideoAtPath:completionBlock:](assetslibrary/alasset/setvideoatpath:completionblock:.md)
- [thumbnail](assetslibrary/alasset/thumbnail.md)
- [valueForProperty:](assetslibrary/alasset/valueforproperty:.md)
- [writeModifiedImageDataToSavedPhotosAlbum:metadata:completionBlock:](assetslibrary/alasset/writemodifiedimagedatatosavedphotosalbum:metadata:completionblock:.md)
- [writeModifiedVideoAtPathToSavedPhotosAlbum:completionBlock:](assetslibrary/alasset/writemodifiedvideoatpathtosavedphotosalbum:completionblock:.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

## See Also

### Classes

- [ALAssetRepresentation](assetslibrary/alassetrepresentation.md)
- [ALAssetsFilter](assetslibrary/alassetsfilter.md)
- [ALAssetsGroup](assetslibrary/alassetsgroup.md)
- [ALAssetsLibrary](assetslibrary/alassetslibrary.md)
