public static interface SensoroBeaconConnection.BeaconConnectionCallback
Modifier and Type | Method and Description |
---|---|
void |
onConnectedState(Beacon beacon,
int newState,
int status)
The callback method when the state of the connection is changed.
|
void |
onDisableAliBeacon(Beacon beacon,
int status)
The callback method of disable AliBeacon function.
|
void |
onDisableBackgroundEnhancement(Beacon beacon,
int status)
The callback method of disable background enhancement function.
|
void |
onDisableIBeacon(Beacon beacon,
int status)
The callback method of disable iBeacon function.
|
void |
onDisablePassword(Beacon beacon,
int status)
The callback method of disabling password.
|
void |
onDisableSecondIBeacon(Beacon beacon,
int status) |
void |
onEnableAliBeacon(Beacon beacon,
int status)
The callback method of enable AliBeacon function.
|
void |
onEnableBackgroundEnhancement(Beacon beacon,
int status)
The callback method of enable background enhancement function.
|
void |
onEnableIBeacon(Beacon beacon,
int status)
The callback method of enable iBeacon function.
|
void |
onEnableSecondIBeacon(Beacon beacon,
int status) |
void |
onFlashLightWitCommand(Beacon beacon,
int status)
The callback method of writing LED.
|
void |
onReloadSensorData(Beacon beacon,
int status)
The callback method of updating sensor data.The method will be called
when calling
SensoroBeaconConnection.reloadSensorData() |
void |
onRequireWritePermission(Beacon beacon,
int status)
The callback method of checking password.
|
void |
onResetAcceleratorCount(Beacon beacon,
int status)
The callback method of resetting acceleration sensor count.
|
void |
onResetToFactorySettings(Beacon beacon,
int status)
The callback method of resetting to factory.
|
void |
onUpdateAccelerometerCount(Beacon beacon,
int count)
This method is called automatically once the acceleration sensor
state is changing after connecting the beacon successfully.
|
void |
onUpdateLightData(Beacon beacon,
java.lang.Double brightnessLux)
This method is called automatically once the light condition is
changing after connecting the beacon successfully.
|
void |
onUpdateMovingState(Beacon beacon,
Beacon.MovingState movingState)
This method is called automatically once the acceleration sensor
state is changing after connecting the beacon successfully.
|
void |
onUpdateTemperatureData(Beacon beacon,
java.lang.Integer temperature)
This method is called automatically once the temperature condition is
changing after connecting the beacon successfully.
|
void |
onUpdateWithSecondBeaconEnable(Beacon beacon) |
void |
onUpdateWithSecondBeaconMajorAndMinor(Beacon beacon) |
void |
onUpdateWithSecondBeaconUUID(Beacon beacon) |
void |
onWirteSensorSetting(Beacon beacon,
int status)
The callback method of modifying the sensor setting.
|
void |
onWriteBaseSetting(Beacon beacon,
int status)
The callback method of modifying the base settings.
|
void |
onWriteBroadcastKey(Beacon beacon,
int status)
The callback method of write broadcast key of Yunzi.
|
void |
onWriteMajorMinor(Beacon beacon,
int status)
The callback method of modifying the major and minor.
|
void |
onWritePassword(Beacon beacon,
int status)
The callback method of setting a new password.
|
void |
onWriteProximityUUID(Beacon beacon,
int status)
The callback method of modifying the proximity UUID.
|
void |
onWriteSecondMajorMinor(Beacon beacon,
int status) |
void |
onWriteSecondProximityUUID(Beacon beacon,
int status) |
void |
onWriteSecureBroadcastInterval(Beacon beacon,
int status)
The callback method of modifying the interval of secure broadcast of beacon.
|
void onConnectedState(Beacon beacon, int newState, int status)
beacon
- The current beacon.newState
- The new connection state of connecting the beacon. It can
be one of CONNECTED or DISCONNECTED. See
Beacon.CONNECTED
and Beacon.DISCONNECTED
status
- The result of connecting the beacon.It can be SUCCESS or
FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onWritePassword(Beacon beacon, int status)
beacon
- The current beacon.status
- the result of setting new password.It can be SUCCESS or
FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onDisablePassword(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of disabling the password.It can be SUCCESS or
FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onRequireWritePermission(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of checking the password.It can be SUCCESS or
FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onWriteBaseSetting(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting base settings.It can be SUCCESS or
FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onWirteSensorSetting(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting the sensor settings.It can be one of
SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onWriteMajorMinor(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting the major and minor.It can be one of
SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onWriteProximityUUID(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting the UUID.It can be one of SUCCESS or
FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onWriteSecureBroadcastInterval(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting the rotation of secure broadcast of
beacon.It can be one of SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onEnableIBeacon(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting enable iBeacon.It can be one of SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onDisableIBeacon(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting disable iBeacon.It can be one of SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onEnableAliBeacon(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting enable AliBeacon.It can be one of SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onDisableAliBeacon(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting disable AliBeacon.It can be one of SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onEnableBackgroundEnhancement(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting enable background enhancement.It can be one of SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onDisableBackgroundEnhancement(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting disable background enhancement.It can be one of SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onWriteBroadcastKey(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting the rotation of secure broadcast of
beacon.It can be one of SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onResetToFactorySettings(Beacon beacon, int status)
beacon
- The current beacon.status
- Return the result of resetting to factory.It can be one of
SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onResetAcceleratorCount(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of resetting the accelerator count.It can be
one of SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onReloadSensorData(Beacon beacon, int status)
SensoroBeaconConnection.reloadSensorData()
beacon
- The current beacon.status
- The result of updating the senso data.It can be one of
SUCCESS or FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onUpdateTemperatureData(Beacon beacon, java.lang.Integer temperature)
beacon
- The current beacon.temperature
- temperature of environment conditionvoid onUpdateLightData(Beacon beacon, java.lang.Double brightnessLux)
beacon
- The current beacon.brightnessLux
- The illumination intensity.void onUpdateMovingState(Beacon beacon, Beacon.MovingState movingState)
beacon
- The current beacon.movingState
- Current moving state of the beacon.void onUpdateAccelerometerCount(Beacon beacon, int count)
beacon
- The current beacon.count
- Moving count of the beacon.void onFlashLightWitCommand(Beacon beacon, int status)
beacon
- The current beacon.status
- The result of setting the UUID.It can be one of SUCCESS or
FAILURE. See
SensoroBeaconConnection.SUCCESS
and
SensoroBeaconConnection.FAILURE
void onWriteSecondMajorMinor(Beacon beacon, int status)
void onWriteSecondProximityUUID(Beacon beacon, int status)
void onEnableSecondIBeacon(Beacon beacon, int status)
void onDisableSecondIBeacon(Beacon beacon, int status)
void onUpdateWithSecondBeaconUUID(Beacon beacon)
void onUpdateWithSecondBeaconMajorAndMinor(Beacon beacon)
void onUpdateWithSecondBeaconEnable(Beacon beacon)