initWithMediaType:sortOrder:mediaName:artistName:albumName:genreNames:moodNames:releaseDate:reference:mediaIdentifier:
Creates a new media search object with the specified parameters.
Declaration
- (instancetype) initWithMediaType:(INMediaItemType) mediaType sortOrder:(INMediaSortOrder) sortOrder mediaName:(NSString *) mediaName artistName:(NSString *) artistName albumName:(NSString *) albumName genreNames:(NSArray<NSString *> *) genreNames moodNames:(NSArray<NSString *> *) moodNames releaseDate:(INDateComponentsRange *) releaseDate reference:(INMediaReference) reference mediaIdentifier:(NSString *) mediaIdentifier;Parameters
- mediaType:
The type of media to search for.
- sortOrder:
The sort order for the media found by the search.
- mediaName:
The name of the media to search for.
- artistName:
The name of the artist to search for.
- albumName:
The name of the album to search for.
- genreNames:
The different genres to search.
- moodNames:
The moods to search for. For example, “Play some happy music in ”.
- releaseDate:
The release date of the media item to search for.
- reference:
A reference for the media item to search for.
- mediaIdentifier:
The unique identifier for the media item to search for.
Return Value
An initialized search object or nil if the object could not be created.