Contents |
The browser for S60 enables mobile phone users to browse the World Wide Web. Web pages can be implemented in Hypertext Markup Language (HTML), Extended Hypertext Markup Language (XHTML), or Wireless Markup Language (WML). A Browser Control is a browser that you embed into an application to enable users to view Web content from within that application. The host application can control the way the Browser Control displays the Web content, dialogs, softkeys, scroll bars, and so on. The Browser Control API enables developers to do the following:
The Browser Control API is compatible with any application that complies with S60 3rd Edition.
The Browser Control API complies with the following standards:
Basic Browser Control functionality includes:
When using the browser control in your application, you need to use the CBrCtlInterface interface. For this interface you need to include brctlinterface.h in your cpp file.
#include <brctlinterface.h>
you also need to link against browserengine.lib
which you can do by putting the following in your MMP file.
LIBRARY browserengine.lib
The file brctrlinterface.h is filled with usefull comments, its probably better to read that file in order to get more familiarity with the browser control creation and usage.
To create an instance of the browser control you need to use the CreateBrowserControlL function. This function takes quite a lot of parameters, however all of these are explained in the Browser Control API Developers Guide.
The third parameter to this function is TBrCtlDefs::TBrCtlCapabilities, this is an enum which is defined in the brctldefs.h file. Where TBrCtlDefs is a C++ class that holds all the browser defines etc.
For more information see: Browser Control API Developer's Guide
No related wiki articles found