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.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.
tecton.actions.openModule(route: string, data?: string): Promise<any | void>;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
});routedata