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.
Methods
-
all()
Return all objects from collection.
-
Return all objects from collection.
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. -
getItem(idx)
Return specific object from collection.
-
Return specific object from collection.
Parameters:
Name Type Description idx
number item position in collection. Returns:
- Type
- MobileResource
-
getLength()
The count of items in the collection.
-
The count of items in the collection