iOS Developer Library

Developer

Assets Library Framework Reference ALAssetsFilter Class Reference

Options
Deployment Target:

On This Page
Language:

ALAssetsFilter

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

You use filters with the setAssetsFilter: method in ALAssetsGroup.

  • Returns a filter that gets all assets in the assets group.

    Declaration

    Swift

    class func allAssets() -> ALAssetsFilter!

    Objective-C

    + (ALAssetsFilter *)allAssets

    Return Value

    A filter that gets all assets in the assets group.

    Availability

    Available in iOS 4.0 and later.

    Deprecated in iOS 9.0.

  • Returns a filter that gets all photos in the assets group.

    Declaration

    Swift

    class func allPhotos() -> ALAssetsFilter!

    Objective-C

    + (ALAssetsFilter *)allPhotos

    Return Value

    A filter that gets all photos in the assets group.

    Availability

    Available in iOS 4.0 and later.

    Deprecated in iOS 9.0.

  • Returns a filter that gets all videos in the assets group.

    Declaration

    Swift

    class func allVideos() -> ALAssetsFilter!

    Objective-C

    + (ALAssetsFilter *)allVideos

    Return Value

    A filter that gets all videos in the assets group.

    Availability

    Available in iOS 4.0 and later.

    Deprecated in iOS 9.0.