com.sony.remotecontrol.ir
Interface Key


public interface Key

This interface defines the input Key command (executing a KeyType) and user label.


Method Summary
 KeyType getType()
          Returns the key type.
 java.lang.String getUserLabel()
          Returns the label related to this key.
 boolean isLearnt()
          Returns the status whether or not this key has been learnt.
 

Method Detail

getType

KeyType getType()
Returns the key type. Synchronous method.

Returns:
key type.

getUserLabel

java.lang.String getUserLabel()
Returns the label related to this key. Synchronous method.

Returns:
label of the key.
Throws:
java.lang.IllegalStateException - if IrManager is not activated.

isLearnt

boolean isLearnt()
Returns the status whether or not this key has been learnt. Synchronous method.

Returns:
true if the key has been learnt. false otherwise.
Throws:
java.lang.IllegalStateException - if IrManager is not activated.