Class DeviceInfo#setBeaconInfo
DeviceInfo
- Defined in: deviceInfo.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
DeviceInfo#setBeaconInfo(successCallback, errorCallback, options)
Sets beacon information.
|
Class Detail
DeviceInfo#setBeaconInfo(successCallback, errorCallback, options)
Sets beacon information.
// Javascript code
function setBeaconInfo () {
function successCb() {
console.log("successCb");
}
function failureCb(cbObject) {
var errorCode = cbObject.errorCode;
var errorText = cbObject.errorText;
console.log ("Error Code [" + errorCode + "]: " + errorText);
}
var deviceInfo = new DeviceInfo();
var options = {
enabled : true,
uuid : "1A2B3C4D5E1A2B3C4D5E1A2B3C4D5EFF",
major :1234,
minor :4321
};
deviceInfo.setBeaconInfo(successCb, failureCb, options);
}
- Parameters:
- {Function} successCallback
- success callback function.
- {Function} errorCallback
- failure callback function.
- {Object} options
Property Type Description Required enabled Boolean Beacon is enabled true: enabled, false: disabled required uuid String UUID of beacon, 32 hexadecimal digits. Only valid when 'enabled' is true. required major Number Major number of beacon.(0 ~ 65535) Only valid when 'enabled' is true. required minor Number Minor number of beacon.(0 ~ 65535) Only valid when 'enabled' is true. required
- Since:
- 1.3
- Platform Version:
- webOS Signage 2.0
- See:
- DeviceInfo.getBeaconInfo()