Class

ALAssetsGroup

An ALAssetsGroup object represents an ordered set of the assets managed by the Photos application. The order of the elements is the same as the user sees in the Photos application. An asset can belong to multiple assets groups.

Declaration

@interface ALAssetsGroup : NSObject

Overview

Assets groups themselves are synced via iTunes, created to hold the user’s saved photos or created during camera import. You can indirectly modify the Saved Photos group by saving images or videos into it using the ALAssetsLibrary class.

Topics

Enumerating Assets

- enumerateAssetsUsingBlock:

Invokes a given block using each of the assets in the group.

- enumerateAssetsWithOptions:usingBlock:

Invokes a given block using each of the assets in the group.

- enumerateAssetsAtIndexes:options:usingBlock:

Invokes a given block using each of the assets in the group at specified indexes.

Adding Assets

- addAsset:

Adds an existing asset to the receiver.

editable

Indicates whether the application can edit the group.

Filtering

- numberOfAssets

Returns the number of assets in the group that match the current filter.

- setAssetsFilter:

Sets the filter for the group.

Accessing Properties

- valueForProperty:

Returns the group’s value for a given property.

- posterImage

Returns the group’s poster image

Constants

ALAssetsGroupEnumerationResultsBlock

Signature for the block executed during enumeration of assets.

Group Property Names

Constants for the names of group properties, used by valueForProperty:.

Relationships

Inherits From