The Enumeration API lets you iterate though all the items return by the
Array.elements() and Array.keys().
Each reference to an Enumeration must be freed after use as the number of
references is limited (max. 32 concurrent references).
This API is only supported on Mobile Widgets version of the MeMo, and should now
only be used to support data provided by the Rpc API.
It is not supproted by Tiny Mobile Widgets version.
void free (ref):
Free the enumeration reference by ref.
boolean hasMoreElements (ref):
Return true if the enumeration referenced by ref has more elements.
value nextElement (ref):
Return the value representing the element in the Enumeration referenced by ref. The type of value can be a string, an integer, a float, or a reference to an array or collection of the Array API.