Instance Method

mediaObjectsForIdentifiers:

Returns the media objects with the specified identifiers.

Declaration

- (NSDictionary<NSString *,MLMediaObject *> *)mediaObjectsForIdentifiers:(NSArray<NSString *> *)mediaObjectIdentifiers;

Parameters

mediaObjectIdentifiers

An array of media object identifiers to search for in the source.

Return Value

A dictionary of media objects matching the specified identifiers.

Discussion

The media source must have finished loading before this method returns valid data. Specifically, the root media group must be available before the lookup methods will succeed. Otherwise, the return value is undefined.

See Also

Accessing Media

- mediaGroupForIdentifier:

Returns the media group with the specified identifier.

Deprecated
- mediaGroupsForIdentifiers:

Returns the media groups with the specified identifiers.

Deprecated
- mediaObjectForIdentifier:

Returns the media object with the specified identifier.

Deprecated