IDeviceListener

interface IDeviceListener<D : ADevice, S>

Interface for a listener of device lifecycle events.

Parameters

D

The model for the kind of device to manage.

S

The model for the kind of space to manage.

Functions

Link copied to clipboard
abstract fun onDiscovered(device: D, space: S)

Callback when a device is seen for the first time in a while.

Link copied to clipboard
abstract fun onKnown(device: D, space: S)

Callback when a currently known device is seen again. This is for debugging purpose, so called only if fr.maxcom.beacon.configuration.IContextConfigurator.verbose is set.

Link copied to clipboard
abstract fun onKnownReminder(device: D, space: S)

Callback when a currently known device is still seen after an elapsed time. This is subject to the setting of an interval with the method fr.maxcom.beacon.configuration.IContextConfigurator.reminderInterval.

Link copied to clipboard
abstract fun onLost(device: D, space: S)

Callback when a known device is not seen since a while.

Link copied to clipboard
abstract fun onUpdated(devices: List<D>, space: S)

Callback when the collection of known devices in a space has changed. This is subject to the setting of an interval with the method fr.maxcom.beacon.configuration.IContextConfigurator.devicesUpdateEventSlowdown.