English
callAppLink
About 157 wordsLess than 1 minute
2026-09-04
This method is used to trigger an App Link action. Pass the action name through action and action parameters through payload. The method returns a Promise.
Syntax: FxUI.biz.callAppLink(action, payload)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| action | App Link action name (required) | string | — | — |
| payload | Parameters passed to the action | Object | — | — |
Example
import FxUI from 'fxui-mobile';
FxUI.biz.callAppLink(action, payload).then((res) => {
if (res.success) {
console.log('success');
} else {
console.log(res.error);
}
});Return Value
Returns a Promise with the following structure when the action is triggered successfully:
{
success: true
}When the action fails to trigger or an exception occurs:
{
success: false,
error: {}
}Notes
- The specific value of
actiondepends on the host-side action capability. - The structure of
payloaddepends on the target action capability. success: truemeans that the host action callback succeeded.success: falsemeans that triggering failed, the host returned a failure, or an exception occurred.
