This class is used to transport a collection of objects between MobileDevice/Emulator and RemoteControl.
For example:
From release4.1+, Robotium begins to provide some APIs who use android.graphics.PointF as
parameter. Some APIs need more than one PointF parameter, to transport multiple PointF as
an object thru our TCP protocol in the same time, this class is created.
Example of usage:
At controller side, user can simply call
ObjectCollection()
to create an instance, and add some
instances of PointF and send this object thru the wire.
At the device side, we receive that object 'ObjectCollection' and we call
getObjectList()
to get a list of Android's PointF objects, which can be used by Robotium's APIs.