MobileObjectCollection
Class that represents a collection of MobileObjects returned by a custom code API.
Methods
all() → {Array.<MobileObject>}
Return all objects from collection.
Returns:
- Type
- Array.<MobileObject>
forEach(method)
For each.
Run method per item
Parameters:
Name | Type | Description |
---|---|---|
method |
MobileObjectCollection#forEachCallback | method to run on item. |
getItem(idx) → {MobileObject}
Return specific object from collection.
Parameters:
Name | Type | Description |
---|---|---|
idx |
number | item position in collection. |
Returns:
- Type
- MobileObject
getLength() → {number}
The count of items in the collection
Returns:
- Type
- number
Type Definitions
forEachCallback(object)
Run this method on every object.
Parameters:
Name | Type | Description |
---|---|---|
object |
MobileObject | the mobile object. |