For the complete documentation index, see llms.txt. This page is also available as Markdown.

MoveDevice

MOVE Models

Since MOVE SDK v2.4

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.

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 = "",
)

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:

Note: MoveDevice cannot be instantiated directly. Use the provided factory methods: createClassicDevice(), createBeacon(), or createBeacons().

For react native there is a helper function:

For Flutter:

Note: The data field must contain a JSON string with the device identifiers. For BLE beacons include uuid, major, and minor. For Classic Bluetooth devices include the MAC address as id.

Last updated