Sony Addon SDK
public interface

Device

This project is no longer being supported and will not get any further updates.

Class Overview

This interface defines methods to retrieve infomation on the device object and to send keys that the device object has.

Summary

Constants
int INVALID_DEVICE_ID
Public Methods
int getInstanceId()

Returns the device's ID.

DeviceCategory getCategory()

Returns the device's category.

java.lang.String getManufacturerName()

Returns a manufacturer name of the device.

java.lang.String getDeviceName()

Returns the device's name.

java.util.List<Key> getKeyList()

Returns keys that this device has.

boolean sendKey(Key key)

Request to send IR code.

boolean startRepeatKey(Key key)

Request to send IR code repeatedly.

void stopRepeatKey()

Request to stop sending IR code repeatedly.

Constants

public static final int INVALID_DEVICE_ID

Constant Value: 0 (0x00000000)

Public Methods

public int getInstanceId()

Returns the device's ID. Synchronous method.

Returns

the device ID or INVALID_DEVICE_ID

public DeviceCategory getCategory()

Returns the device's category. Synchronous method.

Returns

the device category. If failed, return null.

public java.lang.String getManufacturerName()

Returns a manufacturer name of the device. Synchronous method.

Returns

manufacturer name. If failed, return null.

public java.lang.String getDeviceName()

Returns the device's name. Synchronous method.

Returns

device name. If failed, return null.

public java.util.List<Key> getKeyList()

Returns keys that this device has. Synchronous method.

Returns

the keys of the device except custom key. If failed, return null.

public boolean sendKey(Key key)

Request to send IR code. Asynchronous method.

Parameters
key a key to send.
Returns

success to request or not.

public boolean startRepeatKey(Key key)

Request to send IR code repeatedly. Asynchronous method.

Parameters
key a key to send.
Returns

success to request or not.

public void stopRepeatKey()

Request to stop sending IR code repeatedly. Asynchronous method.