H5 display interface


The APP automatically displays the H5 interface when it starts

Interface description

The promotion page can be automatically opened when the APP starts. You need to block the APP and wait until the callback of onWebClose before continuing. The H5 page can be configured to be valid or invalid in the digital entertainment background

Function prototype

public static boolean openWebviewOnStart(IWebListener listener,HashMap<String, String> params)

Parameter description
listener: callback

params: key-value Parameters passed in the form

Callback interface prototype:

public static interface IWebListener {
             void onWebOpen();
             void onWebClose();
      }

Apply custom display H5 interface

Interface description

The promotion page can be automatically opened when the APP is running. You need to block the APP and wait until onWebClose continue after the callback. The H5 page can be configured to be valid or invalid in the digital entertainment background

Function prototype :

public static boolean openWebviewOnStart(IWebListener listener,HashMap<String, String> params)

Parameter description

listener callback

params are parameters passed in in the form of key-value

Callback interface prototype:

public static interface IWebListener {
             void onWebOpen();
             void onWebClose();
      }

APP exits and automatically displays the H5 interface

Interface description

APP exits The promotion page can be opened automatically. You need to block the APP and wait until the onWebClose callback before continuing to close the APP

The digital entertainment background can be configured to be valid or invalid for the H5 page

Function prototype

##public static boolean openWebviewOnExit (IWebListener listener,HashMap<String, String> params)

Parameter description

listener callback

params are parameters passed in in the form of key-value

Callback interface prototype

public static interface IWebListener {
             void onWebOpen();
             void onWebClose();
      }