May 19, 2021 WeChat Mini Program Development Document
Base Library 2.11.2 starts to be supported, and low versions need to be compatible.
Ndef label
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Disconnect
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Connect the NFC label
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Cancel listening to Ndef messages
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Listen for Ndef messages
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Set a timeout
Property | Type | The default | Required | Description |
---|---|---|---|---|
timeout | number | Is | Set timeout (ms) | |
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Rewrite the contents of the Ndef label
Property | Type | The default | Required | Description |
---|---|---|---|---|
uris | Array | Whether | uri array | |
texts | Array | Whether | Text array | |
records | Array | Whether | Array of binary objects, id, type, and payload (all arrayBuffer types) | |
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |