/**@class android.widget.Chronometer @extends android.widget.TextView Class that implements a simple timer. <p> You can give it a start time in the {@link SystemClock#elapsedRealtime} timebase, and it counts up from that, or if you don't give it a base time, it will use the time at which you call {@link #start}. <p>The timer can also count downward towards the base time by setting {@link #setCountDown}(boolean) to true. <p>By default it will display the current timer value in the form "MM:SS" or "H:MM:SS", or you can use {@link #setFormat} to format the timer value into an arbitrary string. @attr ref android.R.styleable#Chronometer_format @attr ref android.R.styleable#Chronometer_countDown */ var Chronometer = { /**Set this view to count down to the base instead of counting up from it. @param {Boolean} countDown whether this view should count down @see #setBase(long) */ setCountDown : function( ) {}, /** @return {Boolean} whether this view counts down @see #setCountDown(boolean) */ isCountDown : function( ) {}, /** @return {Boolean} whether this is the final countdown */ isTheFinalCountDown : function( ) {}, /**Set the time that the count-up timer is in reference to. @param {Number} base Use the {@link SystemClock#elapsedRealtime} time base. */ setBase : function( ) {}, /**Return the base time as set through {@link #setBase}. */ getBase : function( ) {}, /**Sets the format string used for display. The Chronometer will display this string, with the first "%s" replaced by the current timer value in "MM:SS" or "H:MM:SS" form. If the format string is null, or if you never call setFormat(), the Chronometer will simply display the timer value in "MM:SS" or "H:MM:SS" form. @param {String} format the format string. */ setFormat : function( ) {}, /**Returns the current format string as set through {@link #setFormat}. */ getFormat : function( ) {}, /**Sets the listener to be called when the chronometer changes. @param {Object {Chronometer.OnChronometerTickListener}} listener The listener. */ setOnChronometerTickListener : function( ) {}, /** @return {Object {android.widget.Chronometer.OnChronometerTickListener}} The listener (may be null) that is listening for chronometer change events. */ getOnChronometerTickListener : function( ) {}, /**Start counting up. This does not affect the base as set from {@link #setBase}, just the view display. Chronometer works by regularly scheduling messages to the handler, even when the Widget is not visible. To make sure resource leaks do not occur, the user should make sure that each start() call has a reciprocal call to {@link #stop}. */ start : function( ) {}, /**Stop counting up. This does not affect the base as set from {@link #setBase}, just the view display. This stops the messages to the handler, effectively releasing resources that would be held as the chronometer is running, via {@link #start}. */ stop : function( ) {}, /**The same as calling {@link #start} or {@link #stop}. @hide pending API council approval */ setStarted : function( ) {}, /** */ getContentDescription : function( ) {}, /** */ getAccessibilityClassName : function( ) {}, };