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

Release Notes

Tecton
1.1.0
Tecton
1.30.0

Platform Support

iOS
Android