Skip to content

Titanium.Geolocation.HeadingResponse

Argument passed to the getCurrentHeading callback.

Extends: ErrorResponse

Properties #

code#

Type: 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.

error#

Type: String

Error message, if any returned.

Will be undefined if success is true.

heading#

Type: HeadingData

If success is true, the actual heading data.

success#

Type: Boolean

Indicates a successful operation.

Returns true if request succeeded, false otherwise.

Titanium SDK Documentation