@grabjs/superapp-sdk
    Preparing search index...

    Class BaseModule

    Base class for all JSBridge modules.

    On construction, the class wraps the JSBridge module on window (e.g., WrappedContainerModule). This code must run on the Grab SuperApp's webview to function correctly.

    Hierarchy (View Summary)

    Index

    Constructors

    Constructors

    • Creates a new module instance and wraps it on the global window object.

      Parameters

      • moduleName: string

        The name of the module (e.g., "ContainerModule", "ProfileModule").

      Returns BaseModule

      Error when the bridge SDK fails to wrap the module.