Class: MobileObjectCollection

MobileObjectCollection


new MobileObjectCollection()

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

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

Methods


all()

Return all objects from collection.

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

forEach(method)

Run method per item.

Run method per item
Parameters:
Name Type Description
method function method to run on item.
Source:

getItem(idx)

Return specific object from collection.

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

getLength()

The count of items in the collection.

The count of items in the collection
Source: