net.rim.device.api.system
Interface PeripheralListener


Deprecated.

public interface PeripheralListener

The listener interface for receiving peripheral events.

Peripherals, such as the travel charger, are used to extend the functionality of the BlackBerry.

Note this API is only supported on 857/957 and 5810/5820 handhelds.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0

Field Summary
Category: Signed static int TYPE_CAR_CHARGER
          Deprecated. Indicates that the RIM car charger peripheral is attached to the device.
Category: Signed static int TYPE_CRADLE
          Deprecated. Indicates that device is attached to the cradle.
Category: Signed static int TYPE_NONE
          Deprecated. Indicates that no peripheral is found.
Category: Signed static int TYPE_TRAVEL_CHARGER
          Deprecated. Indicates that the RIM travel charger peripheral is attached to the device.
Category: Signed static int TYPE_UNKNOWN
          Deprecated. Indicates that the attached peripheral is of an unknown type.
Category: Signed static int TYPE_USER
          Deprecated. Indicates that a recognized third party peripheral is attached to the device.
 
Method Summary
Category: Signed  void peripheralChange(int type)
          Deprecated. Invoked when the state of the peripheral port changes.
 



Field Detail

TYPE_UNKNOWN

static final int TYPE_UNKNOWN
Deprecated. 
Indicates that the attached peripheral is of an unknown type.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0

TYPE_USER

static final int TYPE_USER
Deprecated. 
Indicates that a recognized third party peripheral is attached to the device.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0

TYPE_CAR_CHARGER

static final int TYPE_CAR_CHARGER
Deprecated. 
Indicates that the RIM car charger peripheral is attached to the device.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0

TYPE_CRADLE

static final int TYPE_CRADLE
Deprecated. 
Indicates that device is attached to the cradle.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0

TYPE_NONE

static final int TYPE_NONE
Deprecated. 
Indicates that no peripheral is found.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0

TYPE_TRAVEL_CHARGER

static final int TYPE_TRAVEL_CHARGER
Deprecated. 
Indicates that the RIM travel charger peripheral is attached to the device.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0


Method Detail

peripheralChange

void peripheralChange(int type)
Deprecated. 
Invoked when the state of the peripheral port changes.

Parameters:
type - Current type of peripheral attached to the device, or PeripheralListener.TYPE_NONE if no peripheral is currently attached. Any one of the above values are valid.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0





Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.