public class DeviceEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
DEVICE_ADDED
A constant indicating new device is registered to home network.
|
static int |
DEVICE_REMOVED
A constant indicating a device is removed from home network.
|
static int |
DEVICE_UPDATED
A constant indicating a device is updated from home network.
|
static int |
STATE_CHANGE
A constant indicating a device's internal state has changed.
|
source| Constructor and Description |
|---|
DeviceEvent(int type,
Object source)
Constructs a DeviceEvent by specifying type and source.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getSource()
Returns device event source, which is always a Device.
|
int |
getType()
Returns device event type, as defined in
DeviceEvent. |
toStringpublic static final int DEVICE_ADDED
public static final int DEVICE_REMOVED
public static final int DEVICE_UPDATED
public static final int STATE_CHANGE
public DeviceEvent(int type,
Object source)
type - Device change type, allowed type are defined in
DeviceEventsource - Device where the change happens.public int getType()
DeviceEvent.public Object getSource()
getSource in class EventObjectCopyright © 2013 CableLabs. All rights reserved.