|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.servicebook.ServiceRouting
public final class ServiceRouting
This class provides an application with the ability to route traffic through a USB or Bluetooth connection to the desktop using the standard connectivity protocols. This class leverages the least-cost routing feature; allowing the user to perform least-cost routing over a Bluetooth connection to their computer rather than relying on USB connectivity. Use this class to determine: when the user’s BlackBerry device is connected to a computer using Bluetooth or USB, if a particular service is currently enabled for serial bypass or least-cost routing, and to add and remove listeners that provide updates on when the device obtains and loses the ability to perform least-cost routing. For more information on this class, including code samples, see the BlackBerry Developer Newsletter.
Method Summary | ||
---|---|---|
|
void |
addListener(ServiceRoutingListener listener)
Add a listener for BlackBerry data service routing changes. |
|
static ServiceRouting |
getInstance()
Get the ServiceRouting object. |
|
boolean |
isSerialBypassActive()
Determines if the device is currently hosting serial bypass activity. |
|
boolean |
isSerialBypassActive(String service)
Determines if the device is currently hosting serial bypass activity. |
|
void |
removeListener(ServiceRoutingListener listener)
Remove a listener for BlackBerry data service routing changes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ServiceRouting getInstance()
public boolean isSerialBypassActive()
public boolean isSerialBypassActive(String service)
service
- The relevant service, a UID of a ServiceRecord
.
public void addListener(ServiceRoutingListener listener)
listener
- Listener for BlackBerry data service routing changes.public void removeListener(ServiceRoutingListener listener)
listener
- Listener for BlackBerry data service routing changes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal