Skip to content
Titanium SDK
Version13.3.0

You are reading 13.3.0. See this page in 13.4.1.

Titanium.API

moduleAndroidiPhoneiPadmacOSsince 0.1

Extends Titanium.ModuleTitanium.Proxy

The top-level API module, containing methods to output messages to the system log.

Properties 3

apiName

Stringsince Android 3.2.0, iPhone 3.2.0, iPad 3.2.0, macOS 9.2.0read-only

Inherited from Titanium.Proxy

The name of the API that this proxy corresponds to.

bubbleParent

Booleansince Android 3.0.0, iPhone 3.0.0, iPad 3.0.0, macOS 9.2.0

Inherited from Titanium.Proxy

Indicates if the proxy will bubble an event to its parent.

Default: true

Methods 11

Inherited from Titanium.Proxy

Adds the specified callback as an event listener for the named event.

Parameters
ParametersTypeDescription
nameString

Name of the event.

callbackCallback<Titanium.Event>

Callback function to invoke when the event is fired.

4 fields
bubbles Boolean

True if the event will try to bubble up if possible.

cancelBubble Boolean

Set to true to stop the event from bubbling.

source Object

Source object that fired the event.

type String

Name of the event fired.

Logs messages with a debug severity-level.

Parameters
ParametersTypeDescription
messageArray<String> | String

Message to log. Accepts an array on iOS only.

Logs messages with an error severity-level.

Parameters
ParametersTypeDescription
messageArray<String> | String

Message to log. Accepts an array on iOS only.

Inherited from Titanium.Proxy

Fires a synthesized event to any registered listeners.

Parameters
ParametersTypeDescription
nameString

Name of the event.

event?Dictionary

A dictionary of keys and values to add to the Titanium.Event object sent to the listeners.

Logs messages with an info severity-level.

Parameters
ParametersTypeDescription
messageArray<String> | String

Message to log. Accepts an array on iOS only.

Logs messages with the specified severity-level.

Parameters
ParametersTypeDescription
levelString

Log level. One of info, warn, error, debug and trace. If the value is not recognized, an info-level message prefixed with the value is logged.

messageArray<String> | String

Message to log. Accepts an array on iOS only.

Inherited from Titanium.Proxy

Removes the specified callback as an event listener for the named event.

Parameters
ParametersTypeDescription
nameString

Name of the event.

callbackCallback<Titanium.Event>

Callback function to remove. Must be the same function passed to addEventListener.

4 fields
bubbles Boolean

True if the event will try to bubble up if possible.

cancelBubble Boolean

Set to true to stop the event from bubbling.

source Object

Source object that fired the event.

type String

Name of the event fired.

timestamp

iPhoneiPadmacOS

Logs messages with a timestamp severity-level, prefixed with a timestamp float number representing the number of seconds since January 1st, 2001.

Parameters
ParametersTypeDescription
messageArray<String> | String

Message to log. Accepts an array on iOS only.

Logs messages with a trace severity-level.

Parameters
ParametersTypeDescription
messageArray<String> | String

Message to log. Accepts an array on iOS only.

Logs messages with a warn severity-level.

Parameters
ParametersTypeDescription
messageArray<String> | String

Message to log. Accepts an array on iOS only.