This tracker is not maintained anymore.
Extends
Members
active :boolean
- Inherited From:
Is the tracker active or not.
Type:
- boolean
areaDefinitions :Array.<string>
List of available area definitions. Use GoogleTangoTracker#readAreaDefinitions to update this list.
Type:
- Array.<string>
name :string
- Inherited From:
Name of the tracker.
Type:
- string
tracking :boolean
- Inherited From:
Current target tracking status.
Type:
- boolean
Methods
(async) _saveAreaDefinition(areaDefinitionName) → {Promise}
Delete a previously saved area definition.
Parameters:
Name | Type | Description |
---|---|---|
areaDefinitionName |
string | name of the area definition. |
Returns:
Resolved when done.
- Type
- Promise
(async) activate()
- Inherited From:
Activate the tracker. Disables all other currently active trackers.
(async) deactivate()
- Inherited From:
Deactivate the tracker.
isActive() → {boolean}
- Inherited From:
Is the tracker currently active.
Returns:
True if active.
- Type
- boolean
(async) loadAreaDefinition(areaDefinitionName) → {Promise}
Load a previously saved area definition.
Parameters:
Name | Type | Description |
---|---|---|
areaDefinitionName |
string | name of the area definition. |
Returns:
Resolved when done.
- Type
- Promise
off(eventName, eventHandler)
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
eventName |
string | |
eventHandler |
function |
on(eventName, eventHandler)
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
eventName |
string | |
eventHandler |
function |
once(eventName, eventHandler)
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
eventName |
string | |
eventHandler |
function |
(async) readAreaDefinitions() → {Array.<string>}
Update the list of saved area definitions.
Returns:
List of available area definitions.
- Type
- Array.<string>
(async) reset()
- Inherited From:
Reset the tracker. Shorthand function for Tracker#deactivate and Tracker#activate.
(async) resetAreaDefinition() → {Promise}
Load a new empty area definition. This will unload the currently loaded area definition.
Returns:
Resolved when done.
- Type
- Promise
(async) saveAreaDefinition(areaDefinitionName) → {Promise}
Save the currently active, learned area definition.
Parameters:
Name | Type | Description |
---|---|---|
areaDefinitionName |
string | name of the area definition. |
Returns:
Resolved when done.
- Type
- Promise
Events
trackingTargetStatusChanged
- Inherited From:
Fired when tracking features are found or lost.
Parameters:
Name | Type | Description |
---|---|---|
tracking |
boolean |