com.sony.remotecontrol.ir
Interface IrManager


public interface IrManager

This interface defines three main methods required to activate IrManager, get registered devices, and inactivate IrManager. IrManager.Listener is a subclass of this interface.


Nested Class Summary
static interface IrManager.Listener
          This interface is a listener to IrManager and handles callbacks and notifications based on actions of the IrManager.
 
Method Summary
 void activate(Context context, IrManager.Listener listener)
          Activate IrManager.
 java.util.List<Device> getRegisteredDevices()
          Returns the devices which has registered with DB.
 void inactivate()
          Inactivate IrManager.
 

Method Detail

activate

void activate(Context context,
              IrManager.Listener listener)
Activate IrManager. Asynchronous method. The Result will be delivered by Listener.

Parameters:
context - context.
listener - listener of IrManager.
Throws:
java.lang.NullPointerException - context or listener is null. IllegalStateException
See Also:
IrManager.Listener.onActivated(com.sony.remotecontrol.ir.IrManager)

inactivate

void inactivate()
Inactivate IrManager. If binded to the PublicRemoteControlService, unbind. Synchronous method.


getRegisteredDevices

java.util.List<Device> getRegisteredDevices()
Returns the devices which has registered with DB. Synchronous method.

Returns:
list of registered devices.
Throws:
java.lang.IllegalStateException - if IrManager is not activated.