MoveDevice
MOVE Models
MoveDevice is used to register / unregister relevant car audio devices and beacons if the optional BDD - Device Discovery feature is configured with setup(...). It is also used when the relevant scan results are delivered to the host app.
Till MOVE SDK v2.12.0: After a .shutdown() the previous registered devices will be unregistered.
Since MOVE SDK v2.13.0: The registered Bluetooth devices will be stored in the SDK Backend. After a re-registration / login with the same userId the registered Bluetooth devices are available again.
class MoveDevice internal constructor(
val id: String,
val name: String,
val manufacturerId: Int? = null,
val isConnected: Boolean = false,
val uuid: String? = null,
val major: Int? = null,
val minor: Int? = null,
val state: MoveDeviceState = MoveDeviceState.NOT_SYNCHRONIZED,
val displayName: String = "",
)public class MoveDevice {
public var id: String
public var name: String
public var displayName: String
public var isConnected: Bool
public var state: MoveDeviceState
public init(name: String, id: String)
public init(name: String, proximityUUID: UUID, major: UInt16, minor: UInt16)
public init(proximityUUID: UUID)
}MoveDevice
Type
id
String
A device identifier to uniquely identify the device i.e: MAC address. This is used for equality checks. This id is sent to the server during trip device discovery. Note: For Classic Bluetooth devices, the Bluetooth device must be paired with the phone before registration. BLE Beacons do not require pairing.
name
String
The name of the device.
displayName
String
Since MOVE SDK 2.17.0
An editable custom name for the device. defaults to name.
manufacturerId (Android only)
Integer
A company identification of the beacon. You can find a list of companies at www.bluetooth.com.
data (Flutter/React only)
String
Opaque data field to convert to native object.
isConnected
Boolean
Since MOVE SDK v2.9.1
The connection state of the registered MoveDevice. Will be updated via the deviceStateListener.
uuid
String
Since MOVE SDK v2.13.0
Universally Unique Identifier of a group of beacons.
major
Int
Since MOVE SDK v2.13.0
The subgroup within a UUID.
minor
Int
Since MOVE SDK v2.13.0
Used to identify an individual beacon.
state
Since MOVE SDK 2.17.0 A state indicating errors during synchronization of the device with the backend.
MoveDevice related
Listeners / Callbacks
Listeners / Callbacks
Registering all beacons for a Service UUID
To register all beacons for a specific proximity UUID, register a beacon device with empty major, minor.
For Android you can use code like:
For react native there is a helper function:
For Flutter:
Last updated