Basic capacity /Mini Program and Mobile Application Communication /Mini Program interface /Channel.invoke /
wmpf.Channel.invoke(Object object)
Asynchronous trigger third party App Service instruction
parameter
Object object
attribute | type | Default value | Required | Introductions |
command | string | | yes | Mini Program through wmpf Transmitted to third parties app The instruction name of the |
data | Object | | no | Mini Program through wmpf Transmitted to third parties app Instruction parameters of the |
success | function | | no | Interface calls a successful callback function |
fail | function | | no | Interface call failed callback function |
complete | function | | no | The callback function at the end of the interface call (the call is executed on success or failure) |
object.success callback
parameter
Object res
attribute | type | Introductions |
data | string | third party app through wmpf The call passed to the Mini Program returns the result |
sample code
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.