public static interface HdmiControlManager.VendorCommandListener
Modifier and Type | Method and Description |
---|---|
void |
onControlStateChanged(boolean enabled,
int reason)
The callback is called:
before HdmiControlService is disabled.
|
void |
onReceived(int srcAddress,
int destAddress,
byte[] params,
boolean hasVendorId)
Called when a vendor command is received.
|
void onReceived(int srcAddress, int destAddress, byte[] params, boolean hasVendorId)
srcAddress
- source logical addressdestAddress
- destination logical addressparams
- vendor-specific parametershasVendorId
- true
if the command is <Vendor Command
With ID>. The first 3 bytes of params is vendor id.void onControlStateChanged(boolean enabled, int reason)
enabled
- true
if HdmiControlService is enabled.reason
- the reason code why the state of HdmiControlService is changed.HdmiControlManager.CONTROL_STATE_CHANGED_REASON_START
,
HdmiControlManager.CONTROL_STATE_CHANGED_REASON_SETTING
,
HdmiControlManager.CONTROL_STATE_CHANGED_REASON_WAKEUP
,
HdmiControlManager.CONTROL_STATE_CHANGED_REASON_STANDBY