public abstract class HdmiClient extends Object
Modifier and Type | Method and Description |
---|---|
HdmiDeviceInfo |
getActiveSource()
Returns the active source information.
|
void |
sendKeyEvent(int keyCode,
boolean isPressed)
Sends a key event to other logical device.
|
void |
sendVendorCommand(int targetAddress,
byte[] params,
boolean hasVendorId)
Sends vendor-specific command.
|
void |
setVendorCommandListener(HdmiControlManager.VendorCommandListener listener)
Sets a listener used to receive incoming vendor-specific command.
|
public HdmiDeviceInfo getActiveSource()
HdmiDeviceInfo
object that describes the active source
or active routing pathpublic void sendKeyEvent(int keyCode, boolean isPressed)
keyCode
- key code to send. Defined in KeyEvent
.isPressed
- true if this is key press eventpublic void sendVendorCommand(int targetAddress, byte[] params, boolean hasVendorId)
targetAddress
- address of the target deviceparams
- vendor-specific parameter. For <Vendor Command With ID> do not
include the first 3 bytes (vendor ID).hasVendorId
- true
if the command type will be <Vendor Command With ID>.
false
if the command will be <Vendor Command>public void setVendorCommandListener(HdmiControlManager.VendorCommandListener listener)
listener
- listener object