DeveloperDeveloper
  • Standard Solutions
  • Cam Solutions
  • Native SDKs
  • App Gallery
  • Game Engine Plugins
Forum
Projects Library
Dev Discord
  • Standard Solutions
  • Cam Solutions
  • Native SDKs
  • App Gallery
  • Game Engine Plugins
Forum
Projects Library
Dev Discord
  • App Gallery (with Lovense Remote)
    • Get Started
    • Development
    • Deploy
  • Basic API
    • Life Cycle
  • Platform API
    • App Info
      • AppBaseInfo
    • Toy
      • Toy Info
      • Command
      • Feedback Mode
    • Device
      • Accelerometer
      • Screen Orientation
      • Shake
      • Vibrate
    • File System
      • Save Image
  • Open API
    • User Authorization
      • Client API
      • Server API
  • Error Code
  • startFeedbackMode
  • stopFeedbackMode
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

    AttributeTypeDefaultRequiredIntroduction
    toyIdListArrayNoArray of toy MAC addresses. If not provided, it will start feedback mode for all connected supported toys
    successfunctionNoCallback function triggered when the feedback mode is successfully started
    failfunctionNoCallback function triggered when the API call fails

    Success callback function will receive an object with the following attributes:

    AttributeTypeIntroduction
    typestringEvent type
    toyIdstringToy MAC address
    dataobjectEvent data

    Fail callback function will receive an object with the following attributes:

    AttributeTypeIntroduction
    codestringError code
    msgstringError 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

    AttributeTypeDefaultRequiredIntroduction
    toyIdListArrayNoArray of toy MAC addresses. If not provided, it will stop feedback mode for all connected supported toys.
    successfunctionNoCallback function triggered when the feedback mode is successfully stopped
    failfunctionNoCallback function triggered when the API call fails

    Success callback function will receive an object with the following attributes:

    AttributeTypeIntroduction
    typestringEvent type
    toyIdstringToy MAC address
    dataobjectEvent data

    Fail callback function will receive an object with the following attributes:

    AttributeTypeIntroduction
    codestringError code
    msgstringError message
  • Example

    const toyManager = appGallery.getToyManager()
    
    // Stop feedback mode
    toyManager.stopFeedbackMode({
      toyIdList: ["d802de4cd35b"],
    })
    
Last Updated:
Prev
Command
Next
Device
Explore our Forum or Support to get more inspiration or solve your problems.
Discord Channel
It is an online real-time channel where you can communicate directly with our official administrators or many excellent developers.
Forum
It is a place for Lovense developers to communicate, where you can find solutions to problems or get inspired for your projects.
Support
Find documents and tutorials that may be helpful to you.