iOS Developer Library

Developer

AssetsLibrary 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.

Inheritance


Conforms To


Import Statement


Swift

import AssetsLibrary

Objective-C

@import AssetsLibrary;

Availability


Available in iOS 4.0 and later.
  • 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.

    Import Statement

    Objective-C

    @import AssetsLibrary;

    Swift

    import AssetsLibrary

    Availability

    Available in iOS 4.0 and later.

  • 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.

    Import Statement

    Objective-C

    @import AssetsLibrary;

    Swift

    import AssetsLibrary

    Availability

    Available in iOS 4.0 and later.

  • 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.

    Import Statement

    Objective-C

    @import AssetsLibrary;

    Swift

    import AssetsLibrary

    Availability

    Available in iOS 4.0 and later.