getProductInfo(params: Object)
Requires:
DeviceKit≥1.2.6@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Description
Get product information
Parameters
| Property | Type | Required | Default | Description | DeviceKit Since |
|---|---|---|---|---|---|
productId | string | Yes | - | Product ID | - |
productVer | string | No | "1.0.0" | Product version | v4.3.6 |
complete | () => void | No | - | Completion callback (executed on both success and failure) | - |
success | (params: Object) => void | No | - | Callback on successful API call | - |
fail | (params: Object) => void | No | - | Failure callback | - |
success callback parameters
| Property | Type | Description | DeviceKit Since |
|---|---|---|---|
| Panel configuration options, configurable on the platform | v3.3.0 | ||
schema | string | Collection of product function definitions | v3.3.0 |
schemaExt | string | Extended collection of product function definitions | v3.3.0 |
capability | number | capability Product capability value. On the backend-ng platform you can query the corresponding selections; overall business logic is partitioned based on this data. Device types can also be adjusted based on this attribute; managed using bitwise operations. | v3.3.0 |
attribute | number | attribute Product attribute definition. The corresponding configuration can be found on the backend-ng platform; managed via bitwise operations. | v3.3.0 |
productId | string | productId Product ID | v3.3.0 |
category | string | category Product category | v3.3.0 |
categoryCode | string | categoryCode Secondary product category | v3.3.0 |
standard | boolean | standard Whether it is a standard product | v3.3.0 |
pcc | string | pcc Classification identifier for Thing in-house Bluetooth mesh products | v3.3.0 |
vendorInfo | string | vendorInfo Classification identifier for Thing in-house Bluetooth mesh products, used for fusion types | v3.3.0 |
quickOpDps | string[] | quickOpDps DP IDs for quick actions | v3.3.0 |
faultDps | string[] | faultDps DP IDs for alarm/error display | v3.3.0 |
displayDps | string[] | displayDps DP IDs for quick actions | v3.3.0 |
| displayMsgs Display text for quick actions | v3.3.0 | ||
uiPhase | string | uiPhase Current environment of the UI package: preview or production | v3.3.0 |
uiId | string | uiId Unique package name identifier for the UI package | v3.3.0 |
uiVersion | string | uiVersion UI package version | v3.3.0 |
ui | string | ui UI short ID | v3.3.0 |
rnFind | boolean | rnFind Whether an RN package is included | v3.3.0 |
uiType | string | uiType UI package type | v3.3.0 |
uiName | string | uiName UI package name | v3.3.0 |
i18nTime | number | i18nTime Last update time of the product language pack | v3.3.0 |
supportGroup | boolean | supportGroup Whether creating groups is supported | v3.3.0 |
supportSGroup | boolean | supportSGroup Whether creating standard groups is supported | v3.3.0 |
| configMetas Special product configuration items; special settings for certain features | v3.3.0 | ||
productVer | string | productVer Product version | v3.3.0 |
attributeString | string | attribute formatted binary string Product attribute definition. The corresponding configuration can be found on the backend-ng platform; managed via bitwise operations. | v4.0.0 |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None