Class: MobileObjectCollection

Class: MobileObjectCollection

MobileObjectCollection

Class that represents a collection of MobileObjects returned by a custom code API.
Source:

Methods

all() → {Array.<MobileObject>}

All. Return all objects from collection.
Source:
Returns:
Type
Array.<MobileObject>

forEach(method)

For each. Run method per item
Parameters:
Name Type Description
method MobileObjectCollection#forEachCallback method to run on item.
Source:

getItem(idx) → {MobileObject}

Get item. Return specific object from collection.
Parameters:
Name Type Description
idx number item position in collection.
Source:
Returns:
Type
MobileObject

getLength() → {number}

Get Length. The count of items in the collection
Source:
Returns:
Type
number

Type Definitions

forEachCallback(object)

Run this method on every object.
Parameters:
Name Type Description
object MobileObject the mobile object.
Source: