MusicLibraryOptionsType

Simple object for specifying options to openMusicLibrary.

  • 0.8
  • 0.8

NOTE This is an abstract type. Any object meeting this description can be used where this type is used.

Defined By

Properties

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

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

Default: false

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

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

Default: true

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

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

Default: true

MusicLibraryOptionsType
cancel : Callback<FailureResponse>

Function to call if the user presses the cancel button.

Function to call if the user presses the cancel button.

MusicLibraryOptionsType
error : Callback<FailureResponse>

Function to call upon receiving an error.

Function to call upon receiving an error.

MusicLibraryOptionsType
: Number/Number[]
An array of media type constants defining selectable media. ...

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

This API can be assigned the following constants:

Default: All available types.

MusicLibraryOptionsType
success : Callback<MusicLibraryResponseType>

Function to call when the music library selection is made.

Function to call when the music library selection is made.