---
title: ALAssetsFilter
framework: assetslibrary
role: symbol
role_heading: Class
path: assetslibrary/alassetsfilter
---

# ALAssetsFilter

ALAssetsFilter encapsulates filtering criteria to be used when retrieving assets from a group.

## Declaration

```occ
@interface ALAssetsFilter : 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 PHFetchOptions class provides functionality for filtering requests for assets or collections. You use filters with the ALAssetsGroup/setAssetsFilter(_:) method in ALAssetsGroup.

## Topics

### Type Methods

- [allAssets](assetslibrary/alassetsfilter/allassets.md)
- [allPhotos](assetslibrary/alassetsfilter/allphotos.md)
- [allVideos](assetslibrary/alassetsfilter/allvideos.md)

## Relationships

### Inherits From

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

## See Also

### Classes

- [ALAsset](assetslibrary/alasset.md)
- [ALAssetRepresentation](assetslibrary/alassetrepresentation.md)
- [ALAssetsGroup](assetslibrary/alassetsgroup.md)
- [ALAssetsLibrary](assetslibrary/alassetslibrary.md)
