You are reading 12.6.2. See this page in 13.4.1.
Titanium.Media.Android
Extends Titanium.ModuleTitanium.Proxy
Android-specific media-related functionality.
Properties 3
Inherited from Titanium.Proxy
The name of the API that this proxy corresponds to.
Inherited from Titanium.Proxy
Indicates if the proxy will bubble an event to its parent.
Default: true
Inherited from Titanium.Proxy
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
Methods 6
Inherited from Titanium.Proxy
Adds the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to invoke when the event is fired. 4 fields
|
applyProperties
since 3.0.0Inherited from Titanium.Proxy
Applies the properties to the proxy.
| Parameters | Type | Description |
|---|---|---|
| props | Dictionary | A dictionary of properties to apply. |
Inherited from Titanium.Proxy
Fires a synthesized event to any registered listeners.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| event? | Dictionary | A dictionary of keys and values to add to the Titanium.Event object sent to the listeners. |
Inherited from Titanium.Proxy
Removes the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to remove. Must be the same function passed to 4 fields
|
Scans newly created or downloaded media files to make them available to other Android media providers, such as the Gallery.
Android scans media files for inclusion in the Gallery and other media providers. Use this method to force an immediate scan of particular files, such as newly-created or downloaded resources.
| Parameters | Type | Description |
|---|---|---|
| paths | Array<String> | Array of paths to the files you want to scan. |
| mimeTypes | Array<String> | Array of MIME types for the files in the paths parameter. If |
| callback | Callback<MediaScannerResponse> | Function to call when each file is done being scanned. 2 fields
|
Set the system homescreen wallpaper.
The image to use as the wallpaper must be passed as a Titanium.Blob. You can
create a Blob from an image file by calling File.read.
You can also use the Titanium.Media.openPhotoGallery
or Titanium.Media.showCamera methods to allow users to select an existing photo
or take a new one.
| Parameters | Type | Description |
|---|---|---|
| image | Titanium.Blob | Image to use as the wallpaper, as a |
| scale | Boolean | If |