# MediaQueryType

> A specifier for a media library query. By default, filters perform an exact match.

- Source: https://titaniumsdk.com/docs/sdk/13.1.1/MediaQueryType
- Titanium SDK version: 13.1.1
- Kind: pseudo
- Platforms: iPhone, iPad, macOS
- Since: Titanium SDK 1.8

## Properties

### albumArtist

- Type: MediaQueryInfoType | String
- Platforms: iPhone, iPad, macOS

The album artist to filter on. Value should be a String.

### albumArtistPersistentID

- Type: MediaQueryInfoType | Number
- Platforms: iPhone, iPad, macOS

The album artist persistent ID to filter on. Value should be a Number.

Available in Titanium SDK 6.1.0 and later.

### albumPersistentID

- Type: MediaQueryInfoType | Number
- Platforms: iPhone, iPad, macOS

The album persistent ID to filter on. Value should be a Number.

Available in Titanium SDK 6.1.0 and later.

### albumTitle

- Type: MediaQueryInfoType | String
- Platforms: iPhone, iPad, macOS

The album title to filter on. Value should be a String.

### artist

- Type: MediaQueryInfoType | String
- Platforms: iPhone, iPad, macOS

The artist to filter on. Value should be a String.

### composer

- Type: MediaQueryInfoType | String
- Platforms: iPhone, iPad, macOS

The composer to filter on. Value should be a String.

### composerPersistentID

- Type: MediaQueryInfoType | Number
- Platforms: iPhone, iPad, macOS

The composer persistent ID to filter on. Value should be a Number.

Available in Titanium SDK 6.1.0 and later.

### genre

- Type: MediaQueryInfoType | String
- Platforms: iPhone, iPad, macOS

The genre to filter on. Value should be a String.

### genrePersistentID

- Type: MediaQueryInfoType | Number
- Platforms: iPhone, iPad, macOS

The genre persistent ID to filter on. Value should be a Number.

Available in Titanium SDK 6.1.0 and later.

### grouping

- Type: Number
- Platforms: iPhone, iPad, macOS

A constant that specifies the ordering of the result array.

Accepts: `Titanium.Media.MUSIC_MEDIA_GROUP_ALBUM`, `Titanium.Media.MUSIC_MEDIA_GROUP_ALBUM_ARTIST`, `Titanium.Media.MUSIC_MEDIA_GROUP_ARTIST`, `Titanium.Media.MUSIC_MEDIA_GROUP_COMPOSER`, `Titanium.Media.MUSIC_MEDIA_GROUP_GENRE`, `Titanium.Media.MUSIC_MEDIA_GROUP_PLAYLIST`, `Titanium.Media.MUSIC_MEDIA_GROUP_PODCAST_TITLE`, `Titanium.Media.MUSIC_MEDIA_GROUP_TITLE`

### hasProtectedAsset

- Type: MediaQueryInfoType | Boolean
- Platforms: iPhone, iPad, macOS

Filter by whether or not the item is a protected asset.
Value should be a Boolean.

Available in Titanium SDK 6.1.0 and later.

### isCloudItem

- Type: MediaQueryInfoType | Boolean
- Platforms: iPhone, iPad, macOS

Filter by whether or not the item is a cloud item.
Value should be a Boolean.

Available in Titanium SDK 6.1.0 and later.

### isCompilation

- Type: MediaQueryInfoType | Boolean
- Platforms: iPhone, iPad, macOS

Filter by whether or not the item is a compilation.
The value should be a Boolean.

### mediaType

- Type: MediaQueryInfoType | Number
- Platforms: iPhone, iPad, macOS

The media type to filter on.

Accepts: `Titanium.Media.MUSIC_MEDIA_TYPE_ALL`, `Titanium.Media.MUSIC_MEDIA_TYPE_ANY_AUDIO`, `Titanium.Media.MUSIC_MEDIA_TYPE_AUDIOBOOK`, `Titanium.Media.MUSIC_MEDIA_TYPE_MUSIC`, `Titanium.Media.MUSIC_MEDIA_TYPE_PODCAST`

### persistentID

- Type: MediaQueryInfoType | Number
- Platforms: iPhone, iPad, macOS

The persistent ID to filter on. Value should be a Number.

Available in Titanium SDK 6.1.0 and later.

### playCount

- Type: MediaQueryInfoType | Number
- Platforms: iPhone, iPad, macOS

The play count to filter on. Value should be a Number.

Available in Titanium SDK 6.1.0 and later.

### podcastPersistentID

- Type: MediaQueryInfoType | Number
- Platforms: iPhone, iPad, macOS

The podcast persistent ID to filter on. Value should be a Number.

Available in Titanium SDK 6.1.0 and later.

### podcastTitle

- Type: MediaQueryInfoType | String
- Platforms: iPhone, iPad, macOS

The podcast title to filter on. Value should be a String.

Available in Titanium SDK 6.1.0 and later.

### title

- Type: MediaQueryInfoType | String
- Platforms: iPhone, iPad, macOS

The title to filter on. Value should be a String.

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

