openModule

Updated:

Opens a native mobile extension.

openModule is only supported inside the Q2 mobile banking app. It is not available in the mobile browser or desktop browser.

Description

openModule opens a native mobile extension by name and allows arguments to be passed. It returns a promise that resolves or rejects depending on communication from the native extension or mobile app.

Signature

tecton.actions.openModule(route: string, data?: string): Promise<any | void>;

Usage

Open a native module named 'MyModule' with optional data.

const moduleData = JSON.stringify({ myKey: 'myValue' });

tecton.actions.openModule('MyModule', moduleData).then((response?: any) => {
    // Module opened successfully, Optional response returned at completion of module workflow.
}).catch(err => {
    // Module could not open or module failure
});

Parameters

route
data

Platform Support

iOS
Android

Changelog

The changelog provides a detailed history of new features, improvements, and bug fixes going back to Tecton 1.30.0. If the button is disabled, it indicates there have been no detectable changes since then.

Show changelog (1)