You are reading 12.5.0. See this page in 13.4.1.
Titanium.Utils
Extends Titanium.ModuleTitanium.Proxy
The top-level Utils module, containing a set of JavaScript methods that are often useful when building applications.
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 9
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. |
Returns the specified data decoded from Base64.
The parameter can be a String, Ti.Blob or Ti.File (iOS since 7.0.2 and Android since 3.3.0).
| Parameters | Type | Description |
|---|---|---|
| obj | String | Titanium.Blob | Titanium.Filesystem.File | Data to decode. |
Returns the specified data encoded to Base64.
The parameter can be a String, Ti.Blob or Ti.File (iOS since 7.0.2 and Android since 3.3.0).
| Parameters | Type | Description |
|---|---|---|
| obj | String | Titanium.Blob | Titanium.Filesystem.File | Data to encode. |
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. |
Returns a MD5 digest of the specified data as a hex-based String.
| Parameters | Type | Description |
|---|---|---|
| obj | String | Titanium.Blob | Data to calculate. |
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
|
sha1
since 1.3.2Returns a SHA-1 hash of the specified data as a hex-based String.
| Parameters | Type | Description |
|---|---|---|
| obj | String | Titanium.Blob | Data to calculate. |
sha256
since 1.8.0Returns a SHA-256 hash of the specified data as a hex-based String.
| Parameters | Type | Description |
|---|---|---|
| obj | String | Titanium.Blob | Data to calculate. |