# MusicLibraryOptionsType

Simple object for specifying options to openMusicLibrary.

Availability
0.8
9.2.0
Extends
Object

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Properties

# allowMultipleSelections

Availability
0.8
9.2.0
allowMultipleSelections :Boolean

Set to true to allow the user to select multiple items from the library.

Default: false


# animated

Availability
0.8
9.2.0
animated :Boolean

Boolean if the dialog should be animated when showing and hiding.

Default: true


# autohide

Availability
0.8
9.2.0
autohide :Boolean

Specifies that the library should be hidden automatically after media selection is completed.

Default: true


# cancel

Availability
0.8
9.2.0
cancel :Callback<FailureResponse>

Function to call if the user presses the cancel button.


# error

Availability
0.8
9.2.0
error :Callback<FailureResponse>

Function to call upon receiving an error.


# mediaTypes

Availability
0.8
9.2.0
mediaTypes :Number | Array<Number>

An array of media type constants defining selectable media.

Specify one or more of the MUSIC_MEDIA_TYPE constants from Titanium.Media. To specify multiple types, either pass an array of values, or pass a single value that represents the bitwise-OR of the desired media types. For example, the following values are equivalent:

mediaTypes: [Titanium.Media.MUSIC_MEDIA_TYPE_MUSIC, Titanium.Media.MUSIC_MEDIA_TYPE_PODCAST]

Or:

mediaTypes: Titanium.Media.MUSIC_MEDIA_TYPE_MUSIC|Titanium.Media.MUSIC_MEDIA_TYPE_PODCAST

Default: All available types.


# success

Availability
0.8
9.2.0
success :Callback<MusicLibraryResponseType>

Function to call when the music library selection is made.