|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.blackberry.api.browser.Browser
public final class Browser
Provides access to the BlackBerry Browser.
To gain access to the BlackBerry Browser application, use
Browser.getDefaultSession()
or Browser.getSession(java.lang.String)
to retrieve a
BrowserSession
object you can use to direct the application to load
pages.
Field Summary | ||
---|---|---|
|
static String |
CID_BROWSERCONFIG
Describes the CID of Browser Configuration service book entries |
Method Summary | ||
---|---|---|
|
static BrowserSession |
getDefaultSession()
Retrieves the default session based on the default connection settings. |
|
static BrowserSession |
getSession(String uid)
Retrieves a session based on one of the defined connection types. |
|
static String |
getTransportUid(ServiceRecord browserConfigSr)
Retrieves the UID for the underlying transport associated with a given service record. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String CID_BROWSERCONFIG
Method Detail |
---|
public static BrowserSession getDefaultSession()
public static BrowserSession getSession(String uid)
If the UID provided isn't found in the ServiceBook, this method uses
Browser.CID_BROWSERCONFIG
.
uid
- A service record UID with a "BrowserConfig" CID.
public static String getTransportUid(ServiceRecord browserConfigSr)
The BrowserConfig entries (CID=BrowserConfig) contain special application data that determines the actualy ServiceRecord entry used to fetch data. Using this method you can determine the UID of the service record that is used as the transport for a given BrowserConfig service record.
Using this method you can determine extra information about the connection that will be used when you invoke the browser with a given browser configuration UID.
browserConfigSr
- Service record for the browser config entry.
|
|||||||||
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