# Titanium.Media.VideoPlayer

> A native control for playing videos.

- Source: https://titaniumsdk.com/docs/sdk/13.0.0/Titanium.Media.VideoPlayer
- Titanium SDK version: 13.0.0
- Kind: view
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 0.9
- Extends: Titanium.UI.View
- Inheritance: Titanium.UI.View > Titanium.Proxy

The video player is a native view that can be used to play videos, either stored
locally or streamed from a web server. The player can occupy the full screen, or can
be used as a view that can be added to other views.

Use the [Titanium.Media.createVideoPlayer](https://titaniumsdk.com/docs/sdk/Titanium.Media.md#createVideoPlayer) method to create a video player.

All platforms support specifying the video content as a URL, either to a local file or
a remote stream. This is done by setting the [url](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#url) property.

#### iOS Implementation Notes

On iOS, video content can also be specified as a [Blob](https://titaniumsdk.com/docs/sdk/Titanium.Blob.md) or
[File](https://titaniumsdk.com/docs/sdk/Titanium.Filesystem.File.md) object using the
[media](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#media) property.

On iOS, a video player can dynamically switch back and forth between fullscreen mode
and standard mode. If the native video controls are displayed, the user can use them
to switch between standard and fullscreen mode.

#### Android Implementation Notes

On Android, the video player cannot switch modes. To create a fullscreen player, you
must specify `fullscreen: true` when you create the player. This fullscreen player
creates its own Android [Activity](https://titaniumsdk.com/docs/sdk/Titanium.Android.Activity.md) on top of the activity stack.
Unlike a normal view, this fullscreen video player appears as soon as it is created.
The user can close the player by pressing the **Back** button. See the code examples for
a sample using the fullscreen player on Android.

There are several known issues with clipping on the Android video player.

* When used with `scalingMode` set to VIDEO_SCALING_ASPECT_FILL or VIDEO_SCALING_NONE,
  the video content is not correctly clipped to the boundaries of the view.
  ([TIMOB-7628](https://jira-archive.titaniumsdk.com/TIMOB-7628))

* When a border is set on the view, the video content does not take the border width
  into account, so the video content covers the border.
  ([TIMOB-7628](https://jira-archive.titaniumsdk.com/TIMOB-7628))

* If a borderRadius is specified, the video content is not clipped to the rounded
  corners. ([TIMOB-7629](https://jira-archive.titaniumsdk.com/TIMOB-7629))

On Android, using a video player inside a scroll view is not recommended. When scrolling,
black bars may appear over the video content.

This is because the video player is rendered on a special Android UI element called a SurfaceView.
Android renders the SurfaceView behind the main window and punches a hole in the window
to reveal the video.  Because the content of the SurfaceView does not reside in the application
window, the video content cannot be transformed (moved, scaled or rotated) with the window.
This makes it difficult for the content to render properly inside a ScrollView.

## Example: Simple Video Player Example

The following code creates a simple video player to play a local video file.

``` js
var vidWin = Titanium.UI.createWindow({
    title: 'Video View Demo',
    backgroundColor: '#fff'
});

var videoPlayer = Titanium.Media.createVideoPlayer({
    top: 2,
    autoplay: true,
    backgroundColor: 'blue',
    height: 300,
    width: 300,
    mediaControlStyle: Titanium.Media.VIDEO_CONTROL_DEFAULT,
    scalingMode: Titanium.Media.VIDEO_SCALING_RESIZE_ASPECT
});

videoPlayer.url = 'movie.mp4';
vidWin.add(videoPlayer);
vidWin.open();
```

## Example: Android Fullscreen Video Player

The Android fullscreen video player operates differently from other video players.
The following example shows how to create, show, and close a fullscreen video
player.

Note that in this example, a button is included to close the player, to
demonstrate a method for dismissing the player programmatically. In practice, the user
can always dismiss the player by using the **Back** button, so an on-screen
control would not be required.

``` js
var win = Titanium.UI.createWindow({
    title: 'Test',
    backgroundColor: '#fff'
});

// Change to a valid URL
var contentURL = "http://www.example.com/stream.mp4";

var openButton = Ti.UI.createButton({
    title: "Start Video",
    top: "0dp",
    height: "40dp",
    left: "10dp",
    right: "10dp"
});

openButton.addEventListener('click', function() {
    var activeMovie = Titanium.Media.createVideoPlayer({
        url: contentURL,
        backgroundColor: 'blue',
        mediaControlStyle: Titanium.Media.VIDEO_CONTROL_DEFAULT,
        scalingMode: Titanium.Media.VIDEO_SCALING_RESIZE_ASPECT_FILL,
        fullscreen: true,
        autoplay: true
    });

    var closeButton = Ti.UI.createButton({
        title: "Exit Video",
        top: "0dp",
        height: "40dp",
        left: "10dp",
        right: "10dp"
    });

    closeButton.addEventListener('click', function() {
        activeMovie.hide();
        activeMovie.release();
        activeMovie = null;
    });

    activeMovie.add(closeButton);
});
win.add(openButton);
win.open();
```

## Example: Alloy XML Markup

Previous simple example as an Alloy view.

**simplevideoplayer.xml:**
``` xml
<Alloy>
    <Window id="vidWin" title="Video View Demo" backgroundColor="#fff">
        <VideoPlayer id="videoPlayer" ns="Ti.Media" top="2" url="/movie.mp4"
                      height="300" width="300" backgroundColor="blue" autoplay="true" />
    </Window>
</Alloy>
```

## Properties

### allowsAirPlay

- Type: Boolean
- Platforms: iPhone, iPad, macOS
- Requires: iOS 4.3+

Whether or not the current movie can be played on a remote device.

### autoHide

- Type: Boolean
- Platforms: Android
- Since: Titanium SDK 12.1.0
- Default: `false`

Indicates if player is hidden by default and shown when its ready.

On Android the background of the video player is set to the primary background color.
When switching on `autoHide` it will hide the player until the video is loaded.
Then it will automatically show the player. In a [Titanium.UI.ListView](https://titaniumsdk.com/docs/sdk/Titanium.UI.ListView.md) it will hide
it again when it is outside the viewport.

### autoplay

- Type: Boolean
- Platforms: Android, iPhone, iPad, macOS
- Default: `true`

Indicates if a movie should automatically start playback.

On iOS, playback starts automatically if `autoplay` is `true` *and* the movie is likely to
finish uninterrupted. The OS determines whether the movie is likely to finish
uninterrupted based on factors including the bit rate of the movie and network
conditions (if the movie is being streamed from a remote source).

### backgroundView

- Type: Titanium.UI.View
- Platforms: iPhone, iPad, macOS
- DEPRECATED since 7.0.0. Use [Titanium.Media.VideoPlayer.overlayView](Titanium.Media.VideoPlayer.overlayView) instead.

Sets the background view for customization which is always displayed behind movie content.

To create a background behind the movie content on iOS, you can specify a
background view. On iOS, you can set the `backgroundColor` property directly on
the video player, but not a background image or background gradient. For this kind
of effect, specify a background view.

Note that the background view must be sized explicitly: percentage sizes do not work properly.

The following code sample creates a video player with a background image:

``` js
var videoPlayer = Ti.Media.createVideoPlayer({
    height: 300,
    width: 300,
    backgroundView: Ti.UI.createView({
        backgroundImage: 'videoPlayerBG.png
        width: 300,
        height: 300
    }),
    borderRadius: 20,
    borderWidth: 2,
    borderColor: 'blue',
});
```

Note that if [scalingMode](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#scalingMode) is set to
[VIDEO_SCALING_RESIZE](https://titaniumsdk.com/docs/sdk/Titanium.Media.md#VIDEO_SCALING_RESIZE) or
[VIDEO_SCALING_RESIZE_ASPECT_FILL](https://titaniumsdk.com/docs/sdk/Titanium.Media.md#VIDEO_SCALING_RESIZE_ASPECT_FILL),
the playing video will fill the entire video player area, obscuring any background
view.

### currentPlaybackTime

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

Current playback time of the current movie in milliseconds.

### duration

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Default: `0`

The duration of the current movie in milliseconds, or 0.0 if not known.

The duration of the movie may not be available when playback is started. The
[durationavailable](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#durationavailable) event is
fired when the duration is known.

### endPlaybackTime

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Default: `0`

The end time of movie playback, in milliseconds.

On iOS, defaults to 0, which indicates natural end time of the movie.
Changing the value to a value less than `duration` causes the movie to
stop playing at the specified point. On iOS, this value is not applicable to
streaming media, so 0 is returned if the current media is being streamed.

On Android, this is always the same as [duration](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#duration)
(the natural end time), and changing the value has no effect.

### fairPlayConfiguration

- Type: FairPlayConfiguration
- Platforms: iPhone, iPad, macOS
- Since: Titanium SDK 12.2.0

Handle DRM-encrypted video assets using the [Apple FairPlay Streaming API](https://developer.apple.com/streaming/fps/).

Secure the delivery of streaming media to devices through the HTTP Live Streaming (HLS) protocol. Using FairPlay Streaming (FPS) technology, content providers, encoding vendors, and delivery networks can encrypt content, securely exchange keys, and protect playback on iOS, iPadOS and macOS.

### fullscreen

- Type: Boolean
- Platforms: Android
- Default: `false`
- DEPRECATED since 7.0.0. This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.

Determines if the movie is presented in the entire screen (obscuring all other application content).

Note that this must be set at different times on different platforms:

On Android, this property must be set at creation time. For example:

``` js
var player = Ti.Media.createVideoPlayer({fullscreen: true});
```

On Android, setting this value to `true` means that the video will have its own Android Activity
rather than being embedded as a view.

This property was removed on iOS in SDK 7.0.0

### initialPlaybackTime

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Default: `0`

The start time of movie playback, in milliseconds.

### loadState

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Permission: read-only
- DEPRECATED since 7.0.0. On iOS, use [Titanium.Media.VideoPlayer.moviePlayerStatus](Titanium.Media.VideoPlayer.moviePlayerStatus) instead.

Returns the network load state of the movie player.

### media

- Type: Titanium.Blob | Titanium.Filesystem.File | String
- Platforms: iPhone, iPad, macOS
- Permission: write-only

Media object to play, as either a `Ti.Filesystem.File`, a `Ti.Blob`, or an URL `String`.

### mediaControlStyle

- Type: Number
- Platforms: Android
- Default: `System default video controls (<Titanium.Media.VIDEO_CONTROL_DEFAULT>).`
- DEPRECATED since 7.0.0. On iOS, use [Titanium.Media.VideoPlayer.showsControls](Titanium.Media.VideoPlayer.showsControls) instead.

The style of the playback controls.

Removed from iOS in SDK 7.0.0

Accepts: `Titanium.Media.VIDEO_CONTROL_DEFAULT`, `Titanium.Media.VIDEO_CONTROL_EMBEDDED`, `Titanium.Media.VIDEO_CONTROL_FULLSCREEN`, `Titanium.Media.VIDEO_CONTROL_HIDDEN`, `Titanium.Media.VIDEO_CONTROL_NONE`

### mediaTypes

- Type: String
- Platforms: iPhone, iPad, macOS
- Permission: read-only
- Default: `<Titanium.Media.VIDEO_MEDIA_TYPE_VIDEO>`

The type of media in the player's current item first track.

Accepts: `Titanium.Media.VIDEO_MEDIA_TYPE_AUDIO`, `Titanium.Media.VIDEO_MEDIA_TYPE_CLOSED_CAPTION`, `Titanium.Media.VIDEO_MEDIA_TYPE_DEPTH_DATA`, `Titanium.Media.VIDEO_MEDIA_TYPE_METADATA`, `Titanium.Media.VIDEO_MEDIA_TYPE_METADATA_OBJECT`, `Titanium.Media.VIDEO_MEDIA_TYPE_MUXED`, `Titanium.Media.VIDEO_MEDIA_TYPE_SUBTITLE`, `Titanium.Media.VIDEO_MEDIA_TYPE_TEXT`, `Titanium.Media.VIDEO_MEDIA_TYPE_TIMECODE`, `Titanium.Media.VIDEO_MEDIA_TYPE_VIDEO`

### moviePlayerStatus

- Type: Number
- Platforms: iPhone, iPad, macOS
- Permission: read-only

Returns the status of the movie player.

Accepts: `Titanium.Media.VIDEO_LOAD_STATE_FAILED`, `Titanium.Media.VIDEO_LOAD_STATE_PLAYABLE`, `Titanium.Media.VIDEO_LOAD_STATE_UNKNOWN`

### naturalSize

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

Returns the natural size of the movie.

Returns a dictionary with properties `width` and `height`. Returns 0 for both properties if not
known or applicable.

The [naturalSizeAvailable](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#naturalsizeavailable) event is
fired when the natural size is known.

### overlayView

- Type: Titanium.UI.View
- Platforms: iPhone, iPad, macOS

Use the overlay view to add additional custom views between the video content and the controls.

Note that the overlay view must be sized explicitly: percentage sizes do not work properly.

The following code sample creates a video player with a background image:

``` js
var videoPlayer = Ti.Media.createVideoPlayer({
    height : 300,
    width : 300,
    overlayView : Ti.UI.createView({
        backgroundImage: 'videoPlayerBG.png
        width : 300,
        height : 300
    }),
    borderRadius : 20,
    borderWidth : 2,
    borderColor : 'blue',
});
```

### pictureInPictureEnabled

- Type: Boolean
- Platforms: iPhone, iPad, macOS
- Default: `true`

Whether or not the receiver allows Picture in Picture playback.

### playableDuration

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Permission: read-only
- Default: `0`

Currently playable duration of the movie, in milliseconds, for progressively
downloaded network content, or 0.0 if not known.

On Android, this is always the same as [duration](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#duration).

### playbackState

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Permission: read-only

Current playback state of the video player.

One of the `VIDEO_PLAYBACK_STATE` constants defined in [Titanium.Media](https://titaniumsdk.com/docs/sdk/Titanium.Media.md).

Accepts: `Titanium.Media.VIDEO_PLAYBACK_STATE_INTERRUPTED`, `Titanium.Media.VIDEO_PLAYBACK_STATE_PAUSED`, `Titanium.Media.VIDEO_PLAYBACK_STATE_PLAYING`, `Titanium.Media.VIDEO_PLAYBACK_STATE_SEEKING_BACKWARD`, `Titanium.Media.VIDEO_PLAYBACK_STATE_SEEKING_FORWARD`, `Titanium.Media.VIDEO_PLAYBACK_STATE_STOPPED`

### playing

- Type: Boolean
- Platforms: Android, iPhone, iPad, macOS
- Permission: read-only

Boolean to indicate if the player has started playing.

### repeatMode

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK Android 6.2.0, iPhone 0.9.0, iPad 0.9.0
- Default: `Titanium.Media.VIDEO_REPEAT_MODE_NONE`

Determines how the movie player repeats when reaching the end of playback.

Accepts: `Titanium.Media.VIDEO_REPEAT_MODE_NONE`, `Titanium.Media.VIDEO_REPEAT_MODE_ONE`

### scalingMode

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Default: `<Titanium.Media.VIDEO_SCALING_RESIZE_ASPECT> on Android, <Titanium.Media.VIDEO_SCALING_RESIZE> on iOS`

Determines how the content scales to fit the view.

Accepts: `Titanium.Media.VIDEO_SCALING_ASPECT_FILL`, `Titanium.Media.VIDEO_SCALING_ASPECT_FIT`, `Titanium.Media.VIDEO_SCALING_MODE_FILL`, `Titanium.Media.VIDEO_SCALING_NONE`, `Titanium.Media.VIDEO_SCALING_RESIZE`, `Titanium.Media.VIDEO_SCALING_RESIZE_ASPECT`, `Titanium.Media.VIDEO_SCALING_RESIZE_ASPECT_FILL`

### showsControls

- Type: Boolean
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK Android 7.1.0, iPhone 7.0.0, iPad 7.0.0, macOS 9.2.0
- Default: `true`

Whether or not the receiver shows playback controls. Default is true.

Clients can set this property to false when they don't want to have any playback controls on top of
the visual content (e.g. for a game splash screen). This property should not be used to temporarily
 change the visibility of the playback controls since it will create or destroy UI elements.

### speed

- Type: Number
- Platforms: Android
- Since: Titanium SDK 12.4.0

Playback speed of the video.

Playback speed of the video. Android: only available for API level >= 23.

### url

- Type: String
- Platforms: Android, iPhone, iPad, macOS

URL of the media to play.

URL identifying a local or remote video to play.

### volume

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 2.1
- Default: `1`

Volume of the audio portion of the video.

On iOS, this adjusts the volume of the application's session as well, and will
not work if useApplicationAudioSession has been set false. On the iOS device,
setting this will be accompanied by an OS-provided indicator. However, the iOS
simulator does not honor this volume setting, and is a known issue with Apple's
simulator.

## Methods

### cancelAllThumbnailImageRequests

- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 3.6.0

Cancels all pending asynchronous thumbnail requests.

Asynchronous thumbnail requests initiated with
[requestThumbnailImagesAtTimes](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#requestThumbnailImagesAtTimes).

### pause

- Platforms: Android, iPhone, iPad, macOS

Pauses playing the video.

### play

- Platforms: Android, iPhone, iPad, macOS

Starts playing the video.

### release

- Platforms: Android, iPhone, iPad, macOS

Releases the internal video resources immediately.

This is not usually necessary but can help if you no longer need to use the player after
it is used to help converse memory.

### requestThumbnailImagesAtTimes

- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 3.6.0

Asynchronously request thumbnail images for one or more points in time in the video.

The `times` parameter specifies an array of time values, in
**seconds**. For each time value, the platform generates an image
representing the video at that point in time.

The callback function is invoked when a thumbnail is available.

Calling this method will cancel all pending asynchronous thumbnail requests.

Parameters:

- `times` (Array<Number>): Array of time values, representing offsets into the video, in seconds.
- `option` (Number): Video time precision.
- `callback` (Callback<ThumbnailResponse>): Callback to invoke when a thumbnail is available.

### stop

- Platforms: Android, iPhone, iPad, macOS

Stops playing the video.

## Events

### click

- Platforms: Android

Fired when the device detects a click against the view.

There is a subtle difference between singletap and click events.

A singletap event is generated when the user taps the screen briefly
without moving their finger. This gesture will also generate a click event.

However, a click event can also be generated when the user touches,
moves their finger, and then removes it from the screen.

On Android, a click event can also be generated by a trackball click.

Event properties:

- `y` (Number): Y coordinate of the event from the `source` view's coordinate system.
- `x` (Number): X coordinate of the event from the `source` view's coordinate system.

### complete

- Platforms: Android, iPhone, iPad, macOS

Fired when movie playback ends or a user exits playback.

On iOS, the `reason` property is only included if this information is available.

Event properties:

- `reason` (Number): Reason that playback ended.
- `success` (Boolean): Indicates if the video was played successfully. User exit counts as a success. Returns `true` if `reason` is not [VIDEO_FINISH_REASON_PLAYBACK_ERROR](https://titaniumsdk.com/docs/sdk/Titanium.Media.md#VIDEO_FINISH_REASON_PLAYBACK_ERROR), `false` otherwise.
- `error` (String): Error message, if any returned. Will be undefined if `success` is `true`.
- `code` (Number): Error code. Error code will be 0 if `success` is `true`, nonzero otherwise. If the error was generated by the operating system, that system's error value is used. Otherwise, this value will be -1.

### durationavailable

- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 3.0.0

Fired when the video duration is available.

Event properties:

- `duration` (Number): Video duration, in milliseconds.

### error

- Platforms: Android, iPhone, iPad, macOS

Fired when movie playback encounters an error.

Event properties:

- `message` (String): Reason for error as a string.
- `success` (Boolean): Indicates a successful operation. Returns `false`.
- `error` (String): Error message, if any returned. May be `undefined`.
- `code` (Number): Error code. If the error was generated by the operating system, that system's error value is used. Otherwise, this value will be `-1`.

### load

- Platforms: Android, iPhone, iPad, macOS

Fired when the movie play loads.

### loadstate

- Platforms: Android, iPhone, iPad, macOS

Fired when the network [loadState](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#loadState) changes.

Event properties:

- `loadState` (Number): Current value of the [loadState](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#loadState) property.

### naturalsizeavailable

- Platforms: iPhone, iPad, macOS
- Since: Titanium SDK 3.0.0

Fired when the natural size of the current movie is determined.

Event properties:

- `naturalSize` (Number): Current value of the [naturalSize](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#naturalSize) property.

### playbackstate

- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 3.0.0

Fired when the [playbackState](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#playbackState) changes.

Event properties:

- `playbackState` (Number): Current value of the [playbackState](https://titaniumsdk.com/docs/sdk/Titanium.Media.VideoPlayer.md#playbackState) property.

### playing

- Platforms: Android, iPhone, iPad, macOS

Fired when the currently playing movie changes.

Event properties:

- `url` (String): URL of the media.

### preload

- Platforms: Android

Fired when the movie has preloaded and is ready to play.

### resize

- Platforms: iPhone, iPad, macOS

Fired when the movie player is resized.

### singletap

- Platforms: Android

Fired when the device detects a single tap against the view.

Event properties:

- `y` (Number): Y coordinate of the event from the `source` view's coordinate system.
- `x` (Number): X coordinate of the event from the `source` view's coordinate system.

### touchcancel

- Platforms: Android

Fired when a touch event is interrupted by the device.

A touchcancel can happen in circumstances such as an incoming call to allow the
UI to clean up state.

Event properties:

- `y` (Number): Y coordinate of the event from the `source` view's coordinate system.
- `x` (Number): X coordinate of the event from the `source` view's coordinate system.

### touchend

- Platforms: Android

Fired when a touch event is completed.

On the Android platform, other gesture events, such as `longpress` or `swipe`, cancel touch events,
so this event may not be triggered after a `touchstart` event.

Event properties:

- `y` (Number): Y coordinate of the event from the `source` view's coordinate system.
- `x` (Number): X coordinate of the event from the `source` view's coordinate system.

### touchmove

- Platforms: Android

Fired as soon as the device detects movement of a touch.

Event coordinates are always relative to the view in which the initial touch occurred

Event properties:

- `y` (Number): Y coordinate of the event from the `source` view's coordinate system.
- `x` (Number): X coordinate of the event from the `source` view's coordinate system.

## Inherited members

96 members are inherited. Each is documented on the type that declares it.

- [Titanium.Proxy](https://titaniumsdk.com/docs/sdk/13.0.0/Titanium.Proxy.md): `addEventListener`, `apiName`, `applyProperties`, `bubbleParent`, `fireEvent`, `lifecycleContainer`, `removeEventListener`
- [Titanium.UI.View](https://titaniumsdk.com/docs/sdk/13.0.0/Titanium.UI.View.md): `accessibilityDisableLongPress`, `accessibilityHidden`, `accessibilityHint`, `accessibilityLabel`, `accessibilityValue`, `add`, `anchorPoint`, `animate`, `animatedCenter`, `backgroundColor`, `backgroundDisabledColor`, `backgroundDisabledImage`, `backgroundFocusedColor`, `backgroundFocusedImage`, `backgroundGradient`, `backgroundImage`, `backgroundLeftCap`, `backgroundRepeat`, `backgroundSelectedColor`, `backgroundSelectedImage`, `backgroundTopCap`, `borderColor`, `borderRadius`, `borderWidth`, `bottom`, `center`, `children`, `clearMotionEffects`, `clipMode`, `convertPointToView`, `dblclick`, `doubletap`, `elevation`, `filterTouchesWhenObscured`, `focusable`, `getViewById`, `height`, `hiddenBehavior`, `hide`, `horizontalMotionEffect`, `horizontalWrap`, `id`, `insertAt`, `keepScreenOn`, `keypressed`, `layout`, `left`, `longpress`, `opacity`, `overrideCurrentAnimation`, `postlayout`, `previewContext`, `pullBackgroundColor`, `rect`, `remove`, `removeAllChildren`, `replaceAt`, `right`, `rotate`, `rotation`, `rotationX`, `rotationY`, `scaleX`, `scaleY`, `show`, `size`, `softKeyboardOnFocus`, `stopAnimation`, `swipe`, `tintColor`, `toImage`, `tooltip`, `top`, `touchEnabled`, `touchFeedback`, `touchFeedbackColor`, `touchstart`, `transform`, `transitionName`, `translationX`, `translationY`, `translationZ`, `verticalMotionEffect`, `viewShadowColor`, `viewShadowOffset`, `viewShadowRadius`, `visible`, `width`, `zIndex`

---

- 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`.

