Adds TV Out functionality to your application, letting you control what is outputted to a TV on iOS devices with the proper adapters.
View the Using Titanium Modules document for instructions on getting started with using this module in your application.
To access this module from JavaScript, you would do the following:
var TVOut = require('ti.tvout');
Returns true if a screen is connected.
Returns a dictionary containing information about the connected screen:
Starts outputting to the television. Note that you can listen for the connect and disconnect events to know if output is being sent to a television.
Stops outputting to the television.
Sets the view that is output to the television.
view[object]: The view to output. If the mirror
argument is false
then this view will be removed from its parent view
and it is your application's responsibility to update the contents of this view as needed. If the mirror
argument is true
then the contents of the view will be cloned to the television. Set to null
to reset the television to display the application window.
mirror[boolean]: Specifies if the view
is mirrored to the television. Set to true
to have the contents of the view cloned to
the television. Set to false
to move the view to the television.
Fired when a television screen is connected.
Fired when a television screen is disconnected.
See example.
Jeff Haynie & Jeff English
View the change log for this module.
Please direct all questions, feedback, and concerns to info@appcelerator.com.
Copyright(c) 2010-2013 by Appcelerator, Inc. All Rights Reserved. Please see the LICENSE file included in the distribution for further details.