Got Stuck?
Forum for Lovense Developers
Support
Document Feedback
Feedback Mode
startFeedbackMode
Description
Start toy feedback mode. About the toy feedback mode, please check: Toy Events API
Parameters
Attribute Type Default Required Introduction toyIdList Array No Array of toy MAC addresses. If not provided, it will start feedback mode for all connected supported toys success function No Callback function triggered when the feedback mode is successfully started fail function No Callback function triggered when the API call fails Success callback function will receive an object with the following attributes:
Attribute Type Introduction type string Event type toyId string Toy MAC address data object Event data Fail callback function will receive an object with the following attributes:
Attribute Type Introduction code string Error code msg string Error message Example
const toyManager = appGallery.getToyManager() // Start feedback mode toyManager.startFeedbackMode({ toyIdList: ["d802de4cd35b"], success(res) { console.log(res.type) }, fail(err) { console.error(err.code) console.error(err.msg) }, })
stopFeedbackMode
Description
Stop toy feedback mode.
Parameters
Attribute Type Default Required Introduction toyIdList Array No Array of toy MAC addresses. If not provided, it will stop feedback mode for all connected supported toys. success function No Callback function triggered when the feedback mode is successfully stopped fail function No Callback function triggered when the API call fails Success callback function will receive an object with the following attributes:
Attribute Type Introduction type string Event type toyId string Toy MAC address data object Event data Fail callback function will receive an object with the following attributes:
Attribute Type Introduction code string Error code msg string Error message Example
const toyManager = appGallery.getToyManager() // Stop feedback mode toyManager.stopFeedbackMode({ toyIdList: ["d802de4cd35b"], })