Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This class receives IR events. For more information, refer to the Object Reference Manual entry on roIRReceiver.

Object Creation

A BSIRReceiver object must specify the hardware interface that will receive IR events, as well as the encoding(s) to look for:

...

If the manufacturer code is zero, then the code is considered to be intended for the Roku SoundBridge remote control.

Methods

void Close()

Shuts down the instance, preventing it from further consuming resources. If this method is not called, garbage collection determines when the instance will be destroyed.

Events

These events are available on the BSIRReceiver object. Each event can receive an IRReceiverEvent event.

...

readonly attribute unsigned long code;

Example

The following JavaScript example displays messages on the log when remote codes are received:

...