Got Stuck?
Forum for Lovense Developers
Support
Document Feedback
AppBaseInfo
getAppBaseInfo
- Description
Get basic information of the Lovense Remote app.
Parameters
Attribute Type Default Required Introduction success function No Callback function triggered when the API call successes 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 SDKVersion string The version of App Gallery SDK version string Lovense Remote app version language string Lovense Remote app language accountDidUpdate boolean The Lovense Remote account has been updated to another one userInfoDidUpdate boolean The user information (username or portrait) has been updated isAccountAvailable boolean The user has logged in or not Fail callback function will receive an object with the following attributes:
Attribute Type Introduction code string Error code msg string Error message Example
const appInfoManager = appGallery.getAppInfoManager(); // Get Lovense Remote app information appInfoManager.getAppBaseInfo({ success(res) { console.log(res.code) }, fail(err) { console.error(res.code) console.error(res.msg) }, });