You should always check whether the extension is supported before making calls. This allows you to react to whether the functionality is available on the device.
You must initialise the platform before attempting to utilise the extension. This initialisation process will configure any libraries that are needed by the extensions. Additionally certain platforms have configuration options that will apply to all webviews that are created using the extension.
In order to specify these options and initialise the platform you must call
initialisePlatform() with an instance of
NativeWebViewOptions before creating any
WebViews. If you don't then the extension will fail to create any
WebView instances and your application may crash.
The initialise process is asynchronous so you can either use a callback:
Or listen for the
See the notes in the
NativeWebViewOptionsclass for details and support of the specific options