|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The listener interface for receiving system events.
| Field Summary | ||
static int |
POWER_OFF_KEY_PRESSED
|
|
static int |
USB_STATE_CABLE_CONNECTED
USB cable now connected to device. |
|
static int |
USB_STATE_CABLE_DISCONNECTED
USB cable now disconnected from device. |
|
static int |
USB_STATE_ENUMERATED
USB device now enumerated. |
|
static int |
USB_STATE_MS_INTERFACE_ENUMERATED
USB device now has USB Mass Storage enumerated. |
|
static int |
USB_STATE_MTP_INTERFACE_ENUMERATED
USB device now has USB Media Transfer Protocol (MTP) enumerated. |
|
static int |
USB_STATE_NOT_ENUMERATED
USB device received a USB_RESET (it is not enumerated). |
|
| Method Summary | ||
void |
backlightStateChange(boolean on)
Invoked when the backlight state changes. |
|
void |
cradleMismatch(boolean mismatch)
Invoked when a USB device has been placed in a serial cradle. |
|
void |
fastReset()
Invoked when a fast reset occurs. |
|
void |
powerOffRequested(int reason)
Invoked when the OS requests that the device power be turned off. |
|
void |
usbConnectionStateChange(int state)
Invoked when the USB connection state changes. |
|
| Methods inherited from interface net.rim.device.api.system.SystemListener |
batteryGood, batteryLow, batteryStatusChange, powerOff, powerUp |
| Field Detail |
public static final int USB_STATE_CABLE_CONNECTED
The device detects that it is now connected to some kind of host or AC adaptor. At this point, the device doesn't know what it's connected to (at this point, the MUX is still off).
public static final int USB_STATE_CABLE_DISCONNECTED
The device has now been taken off the cable, and thus isn't enumerated anymore (and the MUX has been turned off).
public static final int USB_STATE_ENUMERATED
After being connected to a cable, the device now knows it's connected to a USB host, and currently enumerated as a RIM handheld on that host (at this point, the MUX has been turned on).
public static final int USB_STATE_MS_INTERFACE_ENUMERATED
After being connected to a cable, the device now knows it's connected to a USB host, and currently enumerated as a Mass Storage Device on that host (this flag is only valid if USB_ENUMERATED is also set)
public static final int USB_STATE_MTP_INTERFACE_ENUMERATED
After being connected to a cable, the device now knows it's connected to a USB host, and currently enumerated as an MTP on that host (this flag is only valid if USB_ENUMERATED is also set)
public static final int USB_STATE_NOT_ENUMERATED
After receiving a USB_RESET, the device is no longer enumerated.
| Method Detail |
public void backlightStateChange(boolean on)
on - True if the backlight is on, false otherwise.public void cradleMismatch(boolean mismatch)
mismatch - Will be true when the device and cradle don't match and
false when the device is removed from the wrong cradle.public void powerOffRequested(int reason)
reason - POWER_OFF_KEY_PRESSEDpublic void usbConnectionStateChange(int state)
state - One of the USB_STATE_ constants.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.