BusySpinner

Widget node that displays a continuously rotating bitmap with configurable spin controls

Extends Group

The BusySpinner node class is a simple widget that displays a continuously rotating bitmap. Since the BusySpinner node class uses an internal Poster node instance, the busy spinner bitmap can be specified by setting the internal Poster node uri field.

SimpleBusySpinner is a sample app that demonstrates usage of the BusySpinner.

Not all Roku Player hardware versions support arbitrary rotations. In particular, some hardware versions only support 90 degree rotation increments. In those cases, the icon will step through 90 degree, 180 degree, 270 degree and back to 0 degree rotations, rather than spin smoothly.

Fields


FieldTypeDefaultAccess PermissionDescription
posterPoster nodeinternal instance defaultREAD_WRITESet the uri field of the Poster node to select the bitmap for the busy spinner
controloption stringnoneREAD_WRITESets the operational state of the busy spinner:

  • none: No operational state set. The busy spinner will run if not set to "stop".

  • start: Starts the busy spinner if not running.

  • stop: Stops the busy spinner if running.
clockwiseBooleantrueREAD_WRITESpecifies whether the bitmap rotates in a clockwise or counterclockwise direction
spinIntervaltime2READ_WRITEThe number of seconds to complete a 360-degree rotation of the spinner image. A value of 0 will cause the spinner to remain stationary and not spin
uriuri""READ_WRITEThe uri of the bitmap to be used for the busy spinner. This is an alias for the uri field of the internal Poster node instance, and setting this field is equivalent to setting the uri field of the internal Poster node instance.

Sample app

BusySpinnerExample is a sample app demonstrating BusySpinner in action.


Did this page help you?