A B C D E F G H I L M N O P R S T U V W X Y Z 

A

addLeadingZeroes(String) - Static method in class dk.lego.devicesdk.bluetooth.BluetoothHelper
 
addValidDataFormat(DataFormat) - Method in class dk.lego.devicesdk.services.LegoService
Add a new valid data format
addValidDataFormat(DataFormat) - Method in class dk.lego.devicesdk.services.TiltSensor
 
addWriteOfCharacteristicToQueue(BluetoothGattCharacteristic, byte[], int) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDevice
Wrapper for BluetoothGatt.writeCharacteristic(android.bluetooth.BluetoothGattCharacteristic) On Android we need to maintain a queue of read/write requests to ensure proper functionning.
addWriteOfCharacteristicToQueue(BluetoothGattCharacteristic, byte[], int) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
AdvAudioDist - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
allDevices() - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
Returns a list with all known devices regardless of their current connect state.
allDevices() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
allDevices() - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
Returns a list with all known devices regardless of their current connect state.
allDevices() - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
AndroidBluetoothAdapterWrapper - Interface in dk.lego.devicesdk.bluetooth.wrappers
Android BluetoothAdapter wrapper
AndroidBluetoothAdapterWrapperImpl - Class in dk.lego.devicesdk.bluetooth.wrappers
 
AndroidBluetoothAdapterWrapperImpl(Context) - Constructor for class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapperImpl
 
AndroidBluetoothDeviceWrapper - Interface in dk.lego.devicesdk.bluetooth.wrappers
Android BluetoothDevice wrapper
AndroidBluetoothDeviceWrapperImpl - Class in dk.lego.devicesdk.bluetooth.wrappers
 
AndroidBluetoothDeviceWrapperImpl(BluetoothDevice) - Constructor for class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothDeviceWrapperImpl
 
AndroidBluetoothScanCallbackListener - Interface in dk.lego.devicesdk.bluetooth.wrappers
Callback used for signalling scan results
APPLICATION_ID - Static variable in class dk.lego.devicesdk.BuildConfig
 
arrayOfStringsFromCharacteristicProperties(int) - Static method in class dk.lego.devicesdk.bluetooth.BluetoothHelper
 
associatedDevice - Variable in class dk.lego.devicesdk.input_output.IO
 
AudioSink - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
AudioSource - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
AvrcpController - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
AvrcpTarget - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 

B

BASE_UUID - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
BaseBluetoothGattCallback - Class in dk.lego.devicesdk.bluetooth
 
BaseBluetoothGattCallback() - Constructor for class dk.lego.devicesdk.bluetooth.BaseBluetoothGattCallback
 
batteryLevel - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
BatteryServiceDefinition - Class in dk.lego.devicesdk.bluetooth.service_definitions
 
batteryServiceDefinition() - Static method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
BLUETOOTH_DEVICE_FIRMWARE_VERSION - Static variable in class dk.lego.devicesdk.BuildConfig
 
BluetoothHelper - Class in dk.lego.devicesdk.bluetooth
 
BluetoothHelper() - Constructor for class dk.lego.devicesdk.bluetooth.BluetoothHelper
 
BluetoothHelper.Permissions - Enum in dk.lego.devicesdk.bluetooth
 
BluetoothHelper.Properties - Enum in dk.lego.devicesdk.bluetooth
 
BluetoothIO - Class in dk.lego.devicesdk.bluetooth
 
bluetoothIO(BluetoothGattService, LegoBluetoothDevice) - Static method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
BluetoothLeUtils - Class in dk.lego.devicesdk.android.bluetooth.le
Helper class for Bluetooth LE utils.
BluetoothLeUtils() - Constructor for class dk.lego.devicesdk.android.bluetooth.le.BluetoothLeUtils
 
BluetoothServiceDefinition - Class in dk.lego.devicesdk.bluetooth.service_definitions
 
BluetoothServiceDefinition() - Constructor for class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
BluetoothUuid - Class in dk.lego.devicesdk.android.bluetooth
Imported from Android to support simple parsing of raw scanRecord from device.
BluetoothUuid() - Constructor for class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
BNEP - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
brake() - Method in class dk.lego.devicesdk.services.Motor
Send a command to stop (brake) the motor
brake(String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
brake(String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
BUILD_TYPE - Static variable in class dk.lego.devicesdk.BuildConfig
 
BuildConfig - Class in dk.lego.devicesdk
 
BuildConfig() - Constructor for class dk.lego.devicesdk.BuildConfig
 
buttonPressed - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
byteArrayFromByte(int) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
byteArrayFromFloatBE(float) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
byteArrayFromFloatLE(float) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
byteArrayFromShortBE(int) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
byteArrayFromShortLE(int) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
byteArrayFromUnsignedIntBE(long) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
byteArrayFromUnsignedIntLE(long) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
ByteUtils - Class in dk.lego.devicesdk.utils
 
ByteUtils() - Constructor for class dk.lego.devicesdk.utils.ByteUtils
 

C

calculateAverageRSSI(int) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
callbackHelper - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
callbackHelper - Variable in class dk.lego.devicesdk.input_output.IO
 
callbackHelper - Variable in class dk.lego.devicesdk.services.LegoService
 
cancelDeviceConnection(LegoBluetoothDevice) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
Disconnect from a LEGO Bluetooth LE Device.
cancelDeviceConnection(LegoBluetoothDevice) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
cancelDeviceConnection(LegoDevice) - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
Disconnect from a LEGO Device.
cancelDeviceConnection(LegoDevice) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
category - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
changeColor(String, String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
changeColor(String, String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
changeColorIndex(String, String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
changeColorIndex(String, String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
changeColorToDefault(String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
changeColorToDefault(String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
changeDeviceName(String, String) - Method in interface dk.lego.devicesdk.unity.LegoDeviceWrapper
 
changeDeviceName(String, String) - Method in class dk.lego.devicesdk.unity.LegoDeviceWrapperImpl
 
CharacteristicDefinition - Class in dk.lego.devicesdk.bluetooth.service_definitions
 
CharacteristicDefinition(String, BluetoothServiceDefinition, UUID, boolean, int, int, int) - Constructor for class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
characteristicDefinitions - Variable in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
characteristicDefinitionWithUUID(UUID) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
characteristicUUIDs() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
cleanUp() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
COMMAND_PAYLOAD_SIZE_PIEZO - Static variable in class dk.lego.devicesdk.input_output.OutputCommand
 
COMMAND_PAYLOAD_SIZE_RGB_LIGHT - Static variable in class dk.lego.devicesdk.input_output.OutputCommand
 
commandReadInputFormatForConnectId(int) - Static method in class dk.lego.devicesdk.input_output.InputCommand
 
commandReadValueForConnectId(int) - Static method in class dk.lego.devicesdk.input_output.InputCommand
 
commandWithDirectWriteThroughData(byte[], int) - Static method in class dk.lego.devicesdk.input_output.OutputCommand
 
commandWriteInputFormat(InputFormat, int) - Static method in class dk.lego.devicesdk.input_output.InputCommand
 
commandWriteMotorPower(int, int) - Static method in class dk.lego.devicesdk.input_output.OutputCommand
 
commandWritePiezoToneFrequency(int, int, int) - Static method in class dk.lego.devicesdk.input_output.OutputCommand
 
commandWritePiezoToneStopForConnectId(int) - Static method in class dk.lego.devicesdk.input_output.OutputCommand
 
commandWriteRGBLight(int, int, int, int) - Static method in class dk.lego.devicesdk.input_output.OutputCommand
 
commandWriteRGBLightIndex(int, int) - Static method in class dk.lego.devicesdk.input_output.OutputCommand
 
connectCallbackListener(AndroidBluetoothScanCallbackListener) - Method in interface dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapper
Connect listener to adapter - allowing for callbacks whenever an LE scan result is available
connectCallbackListener(AndroidBluetoothScanCallbackListener) - Method in class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapperImpl
 
connectGatt(Context, boolean, BluetoothGattCallback) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
connectGatt(Context, boolean, BluetoothGattCallback) - Method in interface dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothDeviceWrapper
Wraps the Android connectGatt method used to connect and interrogate Bluetooth LE devices
connectGatt(Context, boolean, BluetoothGattCallback) - Method in class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothDeviceWrapperImpl
 
ConnectInfo - Class in dk.lego.devicesdk.device
The ConnectInfo class represents generic info about an IO (service) attached to a device.
ConnectInfo(int, int, int, Revision, Revision) - Constructor for class dk.lego.devicesdk.device.ConnectInfo
 
ConnectInfo(int, int, ConnectInfo.IOType) - Constructor for class dk.lego.devicesdk.device.ConnectInfo
 
connectInfo - Variable in class dk.lego.devicesdk.services.LegoService
General info about the connected service
ConnectInfo.IOType - Enum in dk.lego.devicesdk.device
Represent the type of an attached IO (motor, sensor, etc).
connectState - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
connectToDevice(Context, LegoBluetoothDevice) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
Connect to a @class LegoBluetoothDevice.
connectToDevice(Context, LegoBluetoothDevice) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
connectToDevice(Context, LegoDevice) - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
Connect to a LEGO Device.
connectToDevice(Context, LegoDevice) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
connectToDevice(String) - Method in interface dk.lego.devicesdk.unity.LegoDeviceManagerWrapper
 
connectToDevice(String) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
containsAllUuids(ParcelUuid[], ParcelUuid[]) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
Returns true if all the ParcelUuids in ParcelUuidB are present in ParcelUuidA
containsAnyUuid(ParcelUuid[], ParcelUuid[]) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
Returns true if there any common ParcelUuids in uuidA and uuidB.
create(UUID, BluetoothGattService) - Static method in class dk.lego.devicesdk.bluetooth.BluetoothHelper
 
create(String, int, InputFormat.InputFormatUnit, int, int) - Static method in class dk.lego.devicesdk.input_output.DataFormat
Create and initialize a new instance of an DataFormat.
create(ConnectInfo, IO, LegoDevice) - Static method in class dk.lego.devicesdk.services.LegoServiceFactory
 
createFromDataData(byte[]) - Static method in class dk.lego.devicesdk.device.Revision
 
createFromString(String) - Static method in class dk.lego.devicesdk.device.Revision
 
createService(ConnectInfo, IO) - Static method in class dk.lego.devicesdk.services.CurrentSensor
 
createService(ConnectInfo, IO) - Static method in class dk.lego.devicesdk.services.GenericService
 
createService(ConnectInfo, IO) - Static method in class dk.lego.devicesdk.services.LegoService
 
createService(ConnectInfo, IO) - Static method in class dk.lego.devicesdk.services.MotionSensor
 
createService(ConnectInfo, IO) - Static method in class dk.lego.devicesdk.services.Motor
 
createService(ConnectInfo, IO) - Static method in class dk.lego.devicesdk.services.PiezoTonePlayer
 
createService(ConnectInfo, IO) - Static method in class dk.lego.devicesdk.services.RGBLight
 
createService(ConnectInfo, IO) - Static method in class dk.lego.devicesdk.services.TiltSensor
 
createService(ConnectInfo, IO) - Static method in class dk.lego.devicesdk.services.VoltageSensor
 
CurrentSensor - Class in dk.lego.devicesdk.services
 
CurrentSensorCallbackListener - Interface in dk.lego.devicesdk.services
Implement this callback listener to be notified when the CurrentSensor updates its value
CustomLogger - Interface in dk.lego.devicesdk.logging
You may provide an implementation of this interface to the LDSDKLogger to have all log from the LEGO Device SDK written to a custom destination (for instance a remote logging server).

D

d(String) - Static method in class dk.lego.devicesdk.logging.LDSDKLogger
 
DataFormat - Class in dk.lego.devicesdk.input_output
This class contains info detailing how the data received for a given service (typically a sensor of some kind) should be interpreted.
DEBUG - Static variable in class dk.lego.devicesdk.BuildConfig
 
debug(String) - Method in interface dk.lego.devicesdk.logging.CustomLogger
Used to log detailed information.
debug(String) - Method in class dk.lego.devicesdk.logging.DefaultAndroidCustomLogger
 
debug(String) - Method in class dk.lego.devicesdk.logging.DefaultSilentCustomLogger
 
DEFAULT_CONNECT_REQUEST_TIMEOUT - Static variable in interface dk.lego.devicesdk.device.LegoDeviceManager
The default connect request timeout in milliseconds
DefaultAndroidCustomLogger - Class in dk.lego.devicesdk.logging
 
DefaultAndroidCustomLogger() - Constructor for class dk.lego.devicesdk.logging.DefaultAndroidCustomLogger
 
DefaultSilentCustomLogger - Class in dk.lego.devicesdk.logging
Default implementation of the CustomLogger allowing for clients to disable logging completely.
DefaultSilentCustomLogger() - Constructor for class dk.lego.devicesdk.logging.DefaultSilentCustomLogger
 
deserializeColor(Map<String, Object>) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
DeviceCallbackHelper - Class in dk.lego.devicesdk.bluetooth
 
DeviceCallbackHelper() - Constructor for class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
DeviceCallbackListener - Interface in dk.lego.devicesdk.device
Implement this listener to be notified about changes to the attributes of the device.
deviceError(LDSDKError.ErrorCode, String) - Static method in exception dk.lego.devicesdk.LDSDKError
 
deviceId - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
DeviceInfo - Class in dk.lego.devicesdk.device
Represent info about a connected LegoDevice such as firmware-, hardware- and software revision.
DeviceInfo() - Constructor for class dk.lego.devicesdk.device.DeviceInfo
 
deviceInfo - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
deviceInfoServiceDefinition() - Static method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
DeviceInfoServiceDefinition - Class in dk.lego.devicesdk.bluetooth.service_definitions
 
DeviceManagerCallbackListener - Interface in dk.lego.devicesdk.device
Callback used to signal whenever a LEGO device has appeared or disappeared.
deviceServiceDefinition() - Static method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
DeviceServiceDefinition - Class in dk.lego.devicesdk.bluetooth.service_definitions
 
devicesInState(LegoDevice.DeviceState) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
Returns a list of devices in the specified device state.
devicesInState(LegoDevice.DeviceState) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
devicesInState(LegoDevice.DeviceState) - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
Returns a list of devices in the specified device state.
devicesInState(LegoDevice.DeviceState) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
deviceWithWrapper(AndroidBluetoothDeviceWrapper, byte[], int) - Static method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
didAddService(LegoDevice, LegoService) - Method in interface dk.lego.devicesdk.device.DeviceCallbackListener
Invoked when the a new motor, sensor or other service is attached to the device (Hub).
didAddService(LegoDevice, LegoService) - Method in class dk.lego.devicesdk.unity.LegoDeviceWrapperImpl
 
didChangeButtonState(LegoDevice, boolean) - Method in interface dk.lego.devicesdk.device.DeviceCallbackListener
Invoked when the user press or release the connect-button on the device
didChangeButtonState(LegoDevice, boolean) - Method in class dk.lego.devicesdk.unity.LegoDeviceWrapperImpl
 
didChangeNameFrom(LegoDevice, String, String) - Method in interface dk.lego.devicesdk.device.DeviceCallbackListener
Invoked if the device sends an updated device name.
didChangeNameFrom(LegoDevice, String, String) - Method in class dk.lego.devicesdk.unity.LegoDeviceWrapperImpl
 
didFailToAddServiceWithError(LegoDevice, LDSDKError) - Method in interface dk.lego.devicesdk.device.DeviceCallbackListener
Invoked when an update from the device about attached services (sensor, motors, etc) could not be understood.
didFailToAddServiceWithError(LegoDevice, LDSDKError) - Method in class dk.lego.devicesdk.unity.LegoDeviceWrapperImpl
 
didReadInitialColor(RGBLight) - Method in interface dk.lego.devicesdk.services.RGBLightCallbackListener
Invoked when the first (initial) color of the RGB Light is read
didReadInitialColor(RGBLight) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didReceiveInputFormat(IO, InputFormat) - Method in interface dk.lego.devicesdk.input_output.IOCallbackListener
 
didReceiveInputFormat(IO, InputFormat) - Method in class dk.lego.devicesdk.services.LegoService
 
didReceiveValueData(IO, byte[]) - Method in interface dk.lego.devicesdk.input_output.IOCallbackListener
 
didReceiveValueData(IO, byte[]) - Method in class dk.lego.devicesdk.services.LegoService
 
didRemoveService(LegoDevice, LegoService) - Method in interface dk.lego.devicesdk.device.DeviceCallbackListener
Invoked when a new motor, sensor or other service is detached from the device (Hub).
didRemoveService(LegoDevice, LegoService) - Method in class dk.lego.devicesdk.unity.LegoDeviceWrapperImpl
 
didRequestConnectInfo(IO) - Method in interface dk.lego.devicesdk.input_output.IOCallbackListener
 
didRequestConnectInfo(IO) - Method in class dk.lego.devicesdk.services.LegoService
 
didUpdateAngle(TiltSensor, TiltSensor.TiltSensorAngle, TiltSensor.TiltSensorAngle) - Method in interface dk.lego.devicesdk.services.TiltSensorCallbackListener
Invoked when the tilt sensor has an updated value for angle.
didUpdateAngle(TiltSensor, TiltSensor.TiltSensorAngle, TiltSensor.TiltSensorAngle) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didUpdateBatteryLevel(LegoDevice, int) - Method in interface dk.lego.devicesdk.device.DeviceCallbackListener
Invoked when a device sends an updated battery level.
didUpdateBatteryLevel(LegoDevice, int) - Method in class dk.lego.devicesdk.unity.LegoDeviceWrapperImpl
 
didUpdateCount(MotionSensor, int) - Method in interface dk.lego.devicesdk.services.MotionSensorCallbackListener
Invoked when the motion sensor has an updated count value
didUpdateCount(MotionSensor, int) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didUpdateCrash(TiltSensor, TiltSensor.TiltSensorCrash, TiltSensor.TiltSensorCrash) - Method in interface dk.lego.devicesdk.services.TiltSensorCallbackListener
Invoked when the tilt sensor has an updated value for crash readings.
didUpdateCrash(TiltSensor, TiltSensor.TiltSensorCrash, TiltSensor.TiltSensorCrash) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didUpdateDeviceInfo(LegoDevice, DeviceInfo, LDSDKError) - Method in interface dk.lego.devicesdk.device.DeviceCallbackListener
Invoked when a new DeviceInfo with info about the software and firmware revision is received from the device.
didUpdateDeviceInfo(LegoDevice, DeviceInfo, LDSDKError) - Method in class dk.lego.devicesdk.unity.LegoDeviceWrapperImpl
 
didUpdateDirection(TiltSensor, TiltSensor.TiltSensorDirection, TiltSensor.TiltSensorDirection) - Method in interface dk.lego.devicesdk.services.TiltSensorCallbackListener
Invoked when the tilt sensor has an updated value for direction.
didUpdateDirection(TiltSensor, TiltSensor.TiltSensorDirection, TiltSensor.TiltSensorDirection) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didUpdateDistance(MotionSensor, float, float) - Method in interface dk.lego.devicesdk.services.MotionSensorCallbackListener
Invoked when the motion sensor has an updated distance value
didUpdateDistance(MotionSensor, float, float) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didUpdateInputFormat(LegoService, InputFormat, InputFormat) - Method in interface dk.lego.devicesdk.services.ServiceCallbackListener
Invoked when a service receives an updated InputFormat
didUpdateInputFormat(LegoService, InputFormat, InputFormat) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didUpdateLowVoltageState(LegoDevice, boolean) - Method in interface dk.lego.devicesdk.device.DeviceCallbackListener
Invoked when a device sends a low voltage notification.
didUpdateLowVoltageState(LegoDevice, boolean) - Method in class dk.lego.devicesdk.unity.LegoDeviceWrapperImpl
 
didUpdateMilliAmps(CurrentSensor, float) - Method in interface dk.lego.devicesdk.services.CurrentSensorCallbackListener
Invoked when the CurrentSensor receives an updated value
didUpdateMilliAmps(CurrentSensor, float) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didUpdateMilliVolts(VoltageSensor, float) - Method in interface dk.lego.devicesdk.services.VoltageSensorCallbackListener
Invoked when the VoltageSensor receives an updated value
didUpdateMilliVolts(VoltageSensor, float) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didUpdateRGBColorIndex(RGBLight, int, int) - Method in interface dk.lego.devicesdk.services.RGBLightCallbackListener
Invoked when the RGBLight service receives an updated color index Will only be invoked when the RGB light is in the discrete mode
didUpdateRGBColorIndex(RGBLight, int, int) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didUpdateRGBValue(RGBLight, Integer, Integer) - Method in interface dk.lego.devicesdk.services.RGBLightCallbackListener
Invoked when the RGBLight service receives an updated value Will only be invoked when the RGB light is in the absolute mode
didUpdateRGBValue(RGBLight, Integer, Integer) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
didUpdateValueData(LegoService, byte[], byte[]) - Method in interface dk.lego.devicesdk.services.ServiceCallbackListener
Invoked when a service receives an updated value.
didUpdateValueData(LegoService, byte[], byte[]) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
disconnectAndCloseGatt() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
disconnectDevice(String) - Method in interface dk.lego.devicesdk.unity.LegoDeviceManagerWrapper
 
disconnectDevice(String) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
dk.lego.devicesdk - package dk.lego.devicesdk
 
dk.lego.devicesdk.android.bluetooth - package dk.lego.devicesdk.android.bluetooth
 
dk.lego.devicesdk.android.bluetooth.le - package dk.lego.devicesdk.android.bluetooth.le
 
dk.lego.devicesdk.bluetooth - package dk.lego.devicesdk.bluetooth
 
dk.lego.devicesdk.bluetooth.service_definitions - package dk.lego.devicesdk.bluetooth.service_definitions
 
dk.lego.devicesdk.bluetooth.wrappers - package dk.lego.devicesdk.bluetooth.wrappers
 
dk.lego.devicesdk.device - package dk.lego.devicesdk.device
 
dk.lego.devicesdk.input_output - package dk.lego.devicesdk.input_output
 
dk.lego.devicesdk.logging - package dk.lego.devicesdk.logging
 
dk.lego.devicesdk.services - package dk.lego.devicesdk.services
 
dk.lego.devicesdk.unity - package dk.lego.devicesdk.unity
 
dk.lego.devicesdk.utils - package dk.lego.devicesdk.utils
 
drift() - Method in class dk.lego.devicesdk.services.Motor
Send a command to stop (drift/float) the motor
drift(String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
drift(String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 

E

e(String) - Static method in class dk.lego.devicesdk.logging.LDSDKLogger
 
e(Exception) - Static method in class dk.lego.devicesdk.logging.LDSDKLogger
 
equals(Object) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
equals(Object) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BatteryServiceDefinition
 
equals(Object) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
equals(Object) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
equals(Object) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceInfoServiceDefinition
 
equals(Object) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceServiceDefinition
 
equals(Object) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.IOServiceDefinition
 
equals(Object) - Method in class dk.lego.devicesdk.device.ConnectInfo
 
equals(Object) - Method in class dk.lego.devicesdk.device.DeviceInfo
 
equals(Object) - Method in class dk.lego.devicesdk.device.Revision
 
equals(Object) - Method in class dk.lego.devicesdk.input_output.DataFormat
 
equals(Object) - Method in class dk.lego.devicesdk.input_output.InputFormat
 
equals(Object) - Method in class dk.lego.devicesdk.services.LegoService
 
equals(Object) - Method in class dk.lego.devicesdk.services.MotionSensor
 
equals(Object) - Method in class dk.lego.devicesdk.services.Motor
 
equals(Object) - Method in class dk.lego.devicesdk.services.RGBLight
 
equals(Object) - Method in class dk.lego.devicesdk.services.TiltSensor
 
error(String) - Method in interface dk.lego.devicesdk.logging.CustomLogger
Used to log runtime errors or unexpected conditions.
error(Exception) - Method in interface dk.lego.devicesdk.logging.CustomLogger
Used to log runtime errors or unexpected conditions.
error(String) - Method in class dk.lego.devicesdk.logging.DefaultAndroidCustomLogger
 
error(Exception) - Method in class dk.lego.devicesdk.logging.DefaultAndroidCustomLogger
 
error(String) - Method in class dk.lego.devicesdk.logging.DefaultSilentCustomLogger
 
error(Exception) - Method in class dk.lego.devicesdk.logging.DefaultSilentCustomLogger
 

F

finalize() - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
findDevice(String) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
findService(String, String) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
FLAVOR - Static variable in class dk.lego.devicesdk.BuildConfig
 
fromHexString(String) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.device.ConnectInfo.IOType
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.device.LegoDevice.DeviceCategory
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.device.LegoDevice.DeviceFunction
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.input_output.InputFormat.InputFormatUnit
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.logging.LDSDKLogger.LoggerLevel
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.services.MotionSensor.MotionSensorMode
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.services.Motor.MotorDirection
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.services.PiezoTonePlayer.PiezoTonePlayerNote
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.services.RGBLight.RGBLightMode
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.services.TiltSensor.TiltSensorDirection
 
fromInteger(int) - Static method in enum dk.lego.devicesdk.services.TiltSensor.TiltSensorMode
 

G

GenericService - Class in dk.lego.devicesdk.services
The SDK will create instances of this class for IOs with an unknown IOType.
getAddress() - Method in interface dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothDeviceWrapper
Adress wrapper
getAddress() - Method in class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothDeviceWrapperImpl
 
getAdvertiseFlags() - Method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
Returns the advertising flags indicating the discoverable mode and capability of the device.
getAdvertisingDevicesInterval() - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
 
getAdvertisingDevicesInterval() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
getAllDevices() - Method in interface dk.lego.devicesdk.unity.LegoDeviceManagerWrapper
 
getAllDevices() - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
getAndroidBluetoothDevice() - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDevice
 
getAndroidBluetoothDevice() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
getAngle() - Method in class dk.lego.devicesdk.services.TiltSensor
 
getAttachedIO() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceServiceDefinition
 
getBatteryLevel() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BatteryServiceDefinition
 
getBatteryLevel() - Method in interface dk.lego.devicesdk.device.LegoDevice
The battery level of the device in percentage If no battery level has been received from the Device, the value is null
getBatteryLevel() - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
getBugFixVersion() - Method in class dk.lego.devicesdk.device.Revision
 
getBuildNumber() - Method in class dk.lego.devicesdk.device.Revision
 
getBytes() - Method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
Returns raw bytes of scan record.
getCategory() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
getCategory() - Method in interface dk.lego.devicesdk.device.LegoDevice
The System Category of the connected Device
getColor() - Method in class dk.lego.devicesdk.services.RGBLight
 
getColorIndex() - Method in class dk.lego.devicesdk.services.RGBLight
 
getConnectId() - Method in class dk.lego.devicesdk.device.ConnectInfo
 
getConnectId() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
getConnectInfo() - Method in class dk.lego.devicesdk.services.LegoService
 
getConnectRequestTimeoutInterval() - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
 
getConnectRequestTimeoutInterval() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
getConnectRequestTimeoutInterval() - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
 
getConnectRequestTimeoutInterval() - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
getConnectState() - Method in interface dk.lego.devicesdk.device.LegoDevice
Returns the current state of the connection.
getConnectState() - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
getContext() - Method in interface dk.lego.devicesdk.unity.LegoDeviceManagerWrapper
 
getContext() - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
getCount() - Method in class dk.lego.devicesdk.services.MotionSensor
 
getCrash() - Method in class dk.lego.devicesdk.services.TiltSensor
 
getData() - Method in class dk.lego.devicesdk.input_output.InputCommand
 
getData() - Method in class dk.lego.devicesdk.input_output.OutputCommand
 
getDataSetCount() - Method in class dk.lego.devicesdk.input_output.DataFormat
 
getDataSetSize() - Method in class dk.lego.devicesdk.input_output.DataFormat
 
getDefaultColor() - Method in class dk.lego.devicesdk.services.RGBLight
 
getDefaultColorIndex() - Method in class dk.lego.devicesdk.services.RGBLight
 
getDefaultInputFormat() - Method in class dk.lego.devicesdk.services.CurrentSensor
 
getDefaultInputFormat() - Method in class dk.lego.devicesdk.services.GenericService
 
getDefaultInputFormat() - Method in class dk.lego.devicesdk.services.LegoService
The default input format that will be uploaded to the device for this service upon discovery of the service.
getDefaultInputFormat() - Method in class dk.lego.devicesdk.services.MotionSensor
 
getDefaultInputFormat() - Method in class dk.lego.devicesdk.services.RGBLight
 
getDefaultInputFormat() - Method in class dk.lego.devicesdk.services.TiltSensor
 
getDefaultInputFormat() - Method in class dk.lego.devicesdk.services.VoltageSensor
 
getDeltaInterval() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
getDevice() - Method in interface dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothDeviceWrapper
 
getDevice() - Method in class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothDeviceWrapperImpl
 
getDevice() - Method in class dk.lego.devicesdk.services.LegoService
 
getDeviceButton() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceServiceDefinition
 
getDeviceId() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
getDeviceId() - Method in interface dk.lego.devicesdk.device.LegoDevice
A unique identifier for the device
getDeviceId() - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
getDeviceInfo() - Method in interface dk.lego.devicesdk.device.LegoDevice
Info about the device hardware, firmware, and software revision
getDeviceInfo() - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
getDeviceName() - Method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
Returns the local name of the BLE device.
getDeviceName() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceServiceDefinition
 
getDirection() - Method in class dk.lego.devicesdk.services.Motor
The current running direction of the motor
getDirection() - Method in class dk.lego.devicesdk.services.TiltSensor
 
getDistance() - Method in class dk.lego.devicesdk.services.MotionSensor
 
getErrorCode() - Method in exception dk.lego.devicesdk.LDSDKError
 
getExternalServices() - Method in interface dk.lego.devicesdk.device.LegoDevice
An external service is a service that represent and IO that can be attached to the device Hub.
getExternalServices() - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
getFirmwareRevision() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceInfoServiceDefinition
 
getFirmwareRevision() - Method in class dk.lego.devicesdk.device.DeviceInfo
 
getFirmwareVersion() - Method in class dk.lego.devicesdk.device.ConnectInfo
 
getFloatFromData(byte[]) - Method in class dk.lego.devicesdk.services.LegoService
The value data representation from the service as a floating-point number.
getHardwareRevision() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceInfoServiceDefinition
 
getHardwareRevision() - Method in class dk.lego.devicesdk.device.DeviceInfo
 
getHardwareVersion() - Method in class dk.lego.devicesdk.device.ConnectInfo
 
getHubIndex() - Method in class dk.lego.devicesdk.device.ConnectInfo
 
getInputCommand() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.IOServiceDefinition
 
getInputFormat() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.IOServiceDefinition
 
getInputFormat() - Method in class dk.lego.devicesdk.services.LegoService
The current input format for this service.
getInputFormatMode() - Method in class dk.lego.devicesdk.services.LegoService
Convenience method that will return the mode of the current inputFormat.
getInputValue() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.IOServiceDefinition
 
getInstance() - Static method in class dk.lego.devicesdk.bluetooth.service_definitions.BatteryServiceDefinition
 
getInstance() - Static method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceInfoServiceDefinition
 
getInstance() - Static method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceServiceDefinition
 
getInstance() - Static method in class dk.lego.devicesdk.bluetooth.service_definitions.IOServiceDefinition
 
getInstance() - Static method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
getInstance() - Static method in class dk.lego.devicesdk.logging.LDSDKLogger
 
getInstance() - Static method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
getInstance() - Static method in class dk.lego.devicesdk.unity.LegoDeviceWrapperImpl
 
getInstance() - Static method in class dk.lego.devicesdk.unity.LegoLoggerWrapperImpl
 
getInstance() - Static method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
getInstance() - Static method in class dk.lego.devicesdk.utils.HandlerHelper
 
getIntegerFromData(byte[]) - Method in class dk.lego.devicesdk.services.LegoService
The value data representation from the service as an integer.
getInternalServices() - Method in interface dk.lego.devicesdk.device.LegoDevice
An internal service is a service that is inherent to the Device - something that can never be 'detached'.
getInternalServices() - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
getIo() - Method in class dk.lego.devicesdk.services.LegoService
 
getLastConnectedNetworkId() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
getLastConnectedNetworkId() - Method in interface dk.lego.devicesdk.device.LegoDevice
The ID of the network this Device was connected to last
getLoggerLevel() - Method in class dk.lego.devicesdk.logging.LDSDKLogger
 
getLowVoltageAlert() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceServiceDefinition
 
getMajorVersion() - Method in class dk.lego.devicesdk.device.Revision
 
getMandatoryProperties() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
getManufacturerName() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceInfoServiceDefinition
 
getManufacturerName() - Method in class dk.lego.devicesdk.device.DeviceInfo
 
getManufacturerSpecificData() - Method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
Returns a sparse array of manufacturer identifier and its corresponding manufacturer specific data.
getManufacturerSpecificData(int) - Method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
Returns the manufacturer specific data associated with the manufacturer id.
getMinorVersion() - Method in class dk.lego.devicesdk.device.Revision
 
getMode() - Method in class dk.lego.devicesdk.input_output.DataFormat
 
getMode() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
getModeName() - Method in class dk.lego.devicesdk.input_output.DataFormat
 
getMotionSensorMode() - Method in class dk.lego.devicesdk.services.MotionSensor
 
getName() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
getName() - Method in interface dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothDeviceWrapper
Name wrapper
getName() - Method in class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothDeviceWrapperImpl
 
getName() - Method in interface dk.lego.devicesdk.device.LegoDevice
The most recent value of the name property read from the Hub.
getName() - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
getNumberFromValueData() - Method in class dk.lego.devicesdk.services.LegoService
The latest received value from the service as a Number.
getNumberFromValueData(byte[]) - Method in class dk.lego.devicesdk.services.LegoService
The value representation of data from the service as an Number.
getNumberOfBytes() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
getNumbersFromValueDataSet() - Method in class dk.lego.devicesdk.services.LegoService
The latest received value from the service as an array of Number.
getNumbersFromValueDataSet(byte[]) - Method in class dk.lego.devicesdk.services.LegoService
The value data representation from the service as an array of Number.
getOutputCommand() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.IOServiceDefinition
 
getPermissions() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
getPower() - Method in class dk.lego.devicesdk.services.Motor
The power the motor is currently running with (0 if braking or drifting).
getRecommendedProperties() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
getRevision() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
getRGBMode() - Method in class dk.lego.devicesdk.services.RGBLight
The current mode of the RGB
getRSSIValue() - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDevice
 
getRSSIValue() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
getScanRecord() - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDevice
 
getScanRecord() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
getSDKVersion() - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
 
getSDKVersion() - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
getServiceData() - Method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
Returns a map of service UUID and its corresponding service data.
getServiceData(ParcelUuid) - Method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
Returns the service data byte array associated with the serviceUuid.
getServiceDefinition() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
getServiceIdentifierFromParcelUuid(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
Extract the Service Identifier or the actual uuid from the Parcel Uuid.
getServiceName() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
getServiceName() - Method in class dk.lego.devicesdk.services.CurrentSensor
 
getServiceName() - Method in class dk.lego.devicesdk.services.GenericService
 
getServiceName() - Method in class dk.lego.devicesdk.services.LegoService
 
getServiceName() - Method in class dk.lego.devicesdk.services.MotionSensor
 
getServiceName() - Method in class dk.lego.devicesdk.services.Motor
 
getServiceName() - Method in class dk.lego.devicesdk.services.PiezoTonePlayer
 
getServiceName() - Method in class dk.lego.devicesdk.services.RGBLight
 
getServiceName() - Method in class dk.lego.devicesdk.services.TiltSensor
 
getServiceName() - Method in class dk.lego.devicesdk.services.VoltageSensor
 
getServices() - Method in interface dk.lego.devicesdk.device.LegoDevice
The currently available inputs and outputs
getServices() - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
getServiceUUID() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
getServiceUuids() - Method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
Returns a list of service UUIDs within the advertisement that are used to identify the bluetooth GATT services.
getShortServiceUUID() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceServiceDefinition
 
getSoftwareRevision() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceInfoServiceDefinition
 
getSoftwareRevision() - Method in class dk.lego.devicesdk.device.DeviceInfo
 
getSupportedFunctions() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
getSupportedFunctions() - Method in interface dk.lego.devicesdk.device.LegoDevice
The Fuction(s) supported by the connected Device
getTiltSensorMode() - Method in class dk.lego.devicesdk.services.TiltSensor
 
getTxPowerLevel() - Method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
Returns the transmission power level of the packet in dBm.
getType() - Method in class dk.lego.devicesdk.device.ConnectInfo
 
getType() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
getTypeEnum() - Method in class dk.lego.devicesdk.device.ConnectInfo
 
getTypeString() - Method in class dk.lego.devicesdk.device.ConnectInfo
 
getUnit() - Method in class dk.lego.devicesdk.input_output.DataFormat
 
getUnit() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
getUnsignedByte(ByteBuffer) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
getUnsignedByte(ByteBuffer, int) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
getUnsignedInt(ByteBuffer) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
getUnsignedInt(ByteBuffer, int) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
getUnsignedShort(ByteBuffer) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
getUnsignedShort(ByteBuffer, int) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
getUuid() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
getValidDataFormats() - Method in class dk.lego.devicesdk.services.LegoService
The data formats that this service may use to parse received data.
getValue() - Method in enum dk.lego.devicesdk.device.ConnectInfo.IOType
 
getValue() - Method in enum dk.lego.devicesdk.device.LegoDevice.DeviceCategory
 
getValue() - Method in enum dk.lego.devicesdk.device.LegoDevice.DeviceFunction
 
getValue() - Method in enum dk.lego.devicesdk.input_output.InputFormat.InputFormatUnit
 
getValue() - Method in enum dk.lego.devicesdk.logging.LDSDKLogger.LoggerLevel
 
getValue() - Method in enum dk.lego.devicesdk.services.MotionSensor.MotionSensorMode
 
getValue() - Method in enum dk.lego.devicesdk.services.Motor.MotorDirection
 
getValue() - Method in enum dk.lego.devicesdk.services.PiezoTonePlayer.PiezoTonePlayerNote
 
getValue() - Method in enum dk.lego.devicesdk.services.RGBLight.RGBLightMode
 
getValue() - Method in enum dk.lego.devicesdk.services.TiltSensor.TiltSensorDirection
 
getValue() - Method in enum dk.lego.devicesdk.services.TiltSensor.TiltSensorMode
 
getValueAsFloat() - Method in class dk.lego.devicesdk.services.LegoService
The latest received value from the service as an integer.
getValueAsInteger() - Method in class dk.lego.devicesdk.services.LegoService
The latest received value from the service as an integer.
getValueAsMilliAmps() - Method in class dk.lego.devicesdk.services.CurrentSensor
 
getValueAsMilliVolts() - Method in class dk.lego.devicesdk.services.VoltageSensor
 
getValueData() - Method in class dk.lego.devicesdk.services.LegoService
The latest received value from the service as raw data

H

handleReadOrUpdatedCharacteristic(BluetoothGattCharacteristic) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
HandlerHelper - Class in dk.lego.devicesdk.utils
 
handleUpdatedInputFormat(InputFormat) - Method in class dk.lego.devicesdk.services.LegoService
 
handleUpdatedInputFormat(InputFormat) - Method in class dk.lego.devicesdk.services.TiltSensor
 
handleUpdatedInputServiceCharacteristic(BluetoothGattCharacteristic) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
handleUpdatedValueData(byte[]) - Method in class dk.lego.devicesdk.services.CurrentSensor
 
handleUpdatedValueData(byte[]) - Method in class dk.lego.devicesdk.services.LegoService
Handle new value data from device (may be overwritten in sub-classes)
handleUpdatedValueData(byte[]) - Method in class dk.lego.devicesdk.services.MotionSensor
 
handleUpdatedValueData(byte[]) - Method in class dk.lego.devicesdk.services.RGBLight
 
handleUpdatedValueData(byte[]) - Method in class dk.lego.devicesdk.services.TiltSensor
 
handleUpdatedValueData(byte[]) - Method in class dk.lego.devicesdk.services.VoltageSensor
 
handleWriteResponseFromIOServiceWithCharacteristic(BluetoothGattCharacteristic, LDSDKError) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
Handsfree - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
Handsfree_AG - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
hashCode() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
hashCode() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BatteryServiceDefinition
 
hashCode() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
hashCode() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
hashCode() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceInfoServiceDefinition
 
hashCode() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.DeviceServiceDefinition
 
hashCode() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.IOServiceDefinition
 
hashCode() - Method in class dk.lego.devicesdk.device.ConnectInfo
 
hashCode() - Method in class dk.lego.devicesdk.device.DeviceInfo
 
hashCode() - Method in class dk.lego.devicesdk.device.Revision
 
hashCode() - Method in class dk.lego.devicesdk.input_output.DataFormat
 
hashCode() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
hashCode() - Method in class dk.lego.devicesdk.services.LegoService
 
hashCode() - Method in class dk.lego.devicesdk.services.MotionSensor
 
hashCode() - Method in class dk.lego.devicesdk.services.Motor
 
hashCode() - Method in class dk.lego.devicesdk.services.RGBLight
 
hashCode() - Method in class dk.lego.devicesdk.services.TiltSensor
 
Hid - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
Hogp - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
HSP - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
HSP_AG - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 

I

i(String) - Static method in class dk.lego.devicesdk.logging.LDSDKLogger
 
info(String) - Method in interface dk.lego.devicesdk.logging.CustomLogger
Used to log information on the flow through the system and other interesting events.
info(String) - Method in class dk.lego.devicesdk.logging.DefaultAndroidCustomLogger
 
info(String) - Method in class dk.lego.devicesdk.logging.DefaultSilentCustomLogger
 
INPUT_FORMAT_PACKAGE_SIZE - Static variable in class dk.lego.devicesdk.input_output.InputFormat
 
InputCommand - Class in dk.lego.devicesdk.input_output
 
InputFormat - Class in dk.lego.devicesdk.input_output
This class represent a configuration of a Input (sensor).
inputFormat(byte[]) - Static method in class dk.lego.devicesdk.input_output.InputFormat
 
inputFormat(int, ConnectInfo.IOType, int, int, InputFormat.InputFormatUnit, boolean) - Static method in class dk.lego.devicesdk.input_output.InputFormat
Create a new instance of an InputFormat.
inputFormat - Variable in class dk.lego.devicesdk.services.LegoService
 
InputFormat.InputFormatUnit - Enum in dk.lego.devicesdk.input_output
The input format unit
inputFormatBySettingDeltaInterval(byte) - Method in class dk.lego.devicesdk.input_output.InputFormat
Creates a copy of this input format with a new delta interval
inputFormatBySettingMode(int) - Method in class dk.lego.devicesdk.input_output.InputFormat
Creates a copy of this input format with a new mode
inputFormatBySettingModeAndUnit(int, InputFormat.InputFormatUnit) - Method in class dk.lego.devicesdk.input_output.InputFormat
Creates a copy of this input format with a new mode and unit
inputFormatBySettingNotificationsEnabled(boolean) - Method in class dk.lego.devicesdk.input_output.InputFormat
Creates a copy of this input format with a new value for notifications enabled
invokeMethod(String, Map<String, Object>) - Method in class dk.lego.devicesdk.unity.UnityInvoker
 
IO - Class in dk.lego.devicesdk.input_output
 
IO() - Constructor for class dk.lego.devicesdk.input_output.IO
 
io - Variable in class dk.lego.devicesdk.services.LegoService
 
IoCallbackHelper - Class in dk.lego.devicesdk.bluetooth
 
IoCallbackHelper() - Constructor for class dk.lego.devicesdk.bluetooth.IoCallbackHelper
 
IOCallbackListener - Interface in dk.lego.devicesdk.input_output
 
ioServiceDefinition() - Static method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
IOServiceDefinition - Class in dk.lego.devicesdk.bluetooth.service_definitions
 
is16BitUuid(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
Check whether the given parcelUuid can be converted to 16 bit bluetooth uuid.
is32BitUuid(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
Check whether the given parcelUuid can be converted to 32 bit bluetooth uuid.
isAdvAudioDist(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isAdvertising() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
isAudioSink(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isAudioSource(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isAutomaticReconnectOnConnectionLostEnabled() - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
 
isAutomaticReconnectOnConnectionLostEnabled() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
isAutomaticReconnectOnConnectionLostEnabled() - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
 
isAutomaticReconnectOnConnectionLostEnabled() - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
isAvrcpController(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isAvrcpTarget(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isBluetoothAvailable() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
isBluetoothAvailable() - Method in interface dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapper
Is Bluetooth available on device
isBluetoothAvailable() - Method in class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapperImpl
 
isBluetoothEnabled() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
isBluetoothEnabledOnDevice() - Method in interface dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapper
Is Bluetooth enabled on device
isBluetoothEnabledOnDevice() - Method in class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapperImpl
 
isBnep(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isBraking() - Method in class dk.lego.devicesdk.services.Motor
true if the motor is currently braking (not running)
isButtonPressed() - Method in interface dk.lego.devicesdk.device.LegoDevice
The most recent button pressed state read from the Device.
isButtonPressed() - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
isComplete() - Method in class dk.lego.devicesdk.device.DeviceInfo
 
isDrifting() - Method in class dk.lego.devicesdk.services.Motor
true if the motor is currently drifting / floating.
isEqualToDefinition(BluetoothServiceDefinition) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
isHandsfree(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isHeadset(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isInputDevice(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isInternalService() - Method in class dk.lego.devicesdk.services.LegoService
 
isLowVoltage() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
isLowVoltage() - Method in interface dk.lego.devicesdk.device.LegoDevice
True if the a low voltage alert has been received from the Device, indicating that batteries should be changed/charged
isMandatory() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
isMap(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isMas(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isMns(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isNap(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isNotificationsEnabled() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
isPanu(ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
isUuidPresent(ParcelUuid[], ParcelUuid) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
Returns true if ParcelUuid is present in uuidArray

L

lastConnectedNetworkId - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
LDSDKError - Exception in dk.lego.devicesdk
 
LDSDKError.ErrorCode - Enum in dk.lego.devicesdk
 
LDSDKLogger - Class in dk.lego.devicesdk.logging
Use this class to configure the log level that you want the LEGO Device SDK to use.
LDSDKLogger() - Constructor for class dk.lego.devicesdk.logging.LDSDKLogger
 
LDSDKLogger.LoggerLevel - Enum in dk.lego.devicesdk.logging
Log level
LegoBluetoothDevice - Interface in dk.lego.devicesdk.bluetooth
This class represents a LEGO Bluetooth device
LegoBluetoothDeviceImpl - Class in dk.lego.devicesdk.bluetooth
 
LegoBluetoothDeviceManager - Interface in dk.lego.devicesdk.bluetooth
This class handles the responsibility of scanning for LEGO specific Bluetooth devices
LegoBluetoothDeviceManagerCallbackListener - Interface in dk.lego.devicesdk.bluetooth
Callback used to signal whenever a LEGO Bluetooth device has appeared or disappeared.
LegoBluetoothDeviceManagerImpl - Class in dk.lego.devicesdk.bluetooth
 
LegoBluetoothDeviceManagerImpl(AndroidBluetoothAdapterWrapper) - Constructor for class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
LegoDevice - Interface in dk.lego.devicesdk.device
A device represents the physical device / Hub.
LegoDevice.DeviceCategory - Enum in dk.lego.devicesdk.device
The Category of the Device
LegoDevice.DeviceFunction - Enum in dk.lego.devicesdk.device
The Function a Device will support
LegoDevice.DeviceState - Enum in dk.lego.devicesdk.device
The connect state of the Device
LegoDeviceImpl - Class in dk.lego.devicesdk.device
 
LegoDeviceImpl() - Constructor for class dk.lego.devicesdk.device.LegoDeviceImpl
 
LegoDeviceManager - Interface in dk.lego.devicesdk.device
This class is the main entry point for connecting and communicating with a LEGO Device.
LegoDeviceManagerImpl - Class in dk.lego.devicesdk.device
 
LegoDeviceManagerWrapper - Interface in dk.lego.devicesdk.unity
 
LegoDeviceManagerWrapperImpl - Class in dk.lego.devicesdk.unity
 
LegoDeviceWrapper - Interface in dk.lego.devicesdk.unity
 
LegoDeviceWrapperImpl - Class in dk.lego.devicesdk.unity
 
LegoLoggerWrapper - Interface in dk.lego.devicesdk.unity
 
LegoLoggerWrapperImpl - Class in dk.lego.devicesdk.unity
 
LegoService - Class in dk.lego.devicesdk.services
A LegoService represent an IO of some kind, for example a motor or sensor.
LegoService(ConnectInfo, IO) - Constructor for class dk.lego.devicesdk.services.LegoService
 
LegoServiceFactory - Class in dk.lego.devicesdk.services
 
LegoServiceFactory() - Constructor for class dk.lego.devicesdk.services.LegoServiceFactory
 
LegoServiceWrapper - Interface in dk.lego.devicesdk.unity
 
LegoServiceWrapperImpl - Class in dk.lego.devicesdk.unity
 
lowVoltage - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 

M

MAP - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
mapToJSONString(Map<String, Object>) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
mapToJSONString(List<Map<String, Object>>) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
MAS - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
matchesCharacteristic(BluetoothGattCharacteristic) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
matchesService(BluetoothGattService) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
MAX_DISTANCE - Static variable in class dk.lego.devicesdk.services.MotionSensor
 
MIN_DISTANCE - Static variable in class dk.lego.devicesdk.services.MotionSensor
 
MNS - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
MotionSensor - Class in dk.lego.devicesdk.services
This service provides readings from an motion sensor (aka.
MotionSensor.MotionSensorMode - Enum in dk.lego.devicesdk.services
Supported modes for the motion sensor
MotionSensorCallbackListener - Interface in dk.lego.devicesdk.services
Implement this protocol to be notified when the MotionSensor updates its value
Motor - Class in dk.lego.devicesdk.services
 
Motor(ConnectInfo, IO) - Constructor for class dk.lego.devicesdk.services.Motor
 
Motor.MotorDirection - Enum in dk.lego.devicesdk.services
The direction of a motor
MOTOR_MAX_SPEED - Static variable in class dk.lego.devicesdk.services.Motor
 
MOTOR_MIN_SPEED - Static variable in class dk.lego.devicesdk.services.Motor
 
MOTOR_POWER_BRAKE - Static variable in class dk.lego.devicesdk.services.Motor
 
MOTOR_POWER_DRIFT - Static variable in class dk.lego.devicesdk.services.Motor
 
MOTOR_POWER_OFFSET - Static variable in class dk.lego.devicesdk.services.Motor
 

N

name - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
NAP - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
NUMBER_OF_RSSI_VALUES_TO_AVERAGE - Static variable in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 

O

ObexObjectPush - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
onCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic) - Method in class dk.lego.devicesdk.bluetooth.BaseBluetoothGattCallback
 
onCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, int) - Method in class dk.lego.devicesdk.bluetooth.BaseBluetoothGattCallback
 
onCharacteristicWrite(BluetoothGatt, BluetoothGattCharacteristic, int) - Method in class dk.lego.devicesdk.bluetooth.BaseBluetoothGattCallback
 
onConnectionStateChange(BluetoothGatt, int, int) - Method in class dk.lego.devicesdk.bluetooth.BaseBluetoothGattCallback
 
onDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, int) - Method in class dk.lego.devicesdk.bluetooth.BaseBluetoothGattCallback
 
onDescriptorWrite(BluetoothGatt, BluetoothGattDescriptor, int) - Method in class dk.lego.devicesdk.bluetooth.BaseBluetoothGattCallback
 
onDeviceAppeared(LegoDevice) - Method in interface dk.lego.devicesdk.device.DeviceManagerCallbackListener
Invoked when a device advertising a LEGO Device service UUID is discovered.
onDeviceAppeared(LegoDevice) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
onDeviceDidAppear(LegoBluetoothDevice) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerCallbackListener
Invoked when a Bluetooth device advertising a LEGO Device service UUID is discovered.
onDeviceDidAppear(LegoBluetoothDevice) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
onDeviceDidDisappear(LegoBluetoothDevice) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerCallbackListener
Invoked when a Bluetooth device stops advertising a LEGO Device service.
onDeviceDidDisappear(LegoBluetoothDevice) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
onDeviceDisappeared(LegoDevice) - Method in interface dk.lego.devicesdk.device.DeviceManagerCallbackListener
Invoked when a device stops advertising a LEGO Device service.
onDeviceDisappeared(LegoDevice) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
onDidDisconnectFromDevice(LegoBluetoothDevice, boolean, LDSDKError) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerCallbackListener
Invoked when a device is disconnected.
onDidDisconnectFromDevice(LegoDevice, boolean, LDSDKError) - Method in interface dk.lego.devicesdk.device.DeviceManagerCallbackListener
Invoked when a device is disconnected.
onDidDisconnectFromDevice(LegoBluetoothDevice, boolean, LDSDKError) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
onDidDisconnectFromDevice(LegoDevice, boolean, LDSDKError) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
onDidFailToConnectToDevice(LegoBluetoothDevice, boolean, LDSDKError) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerCallbackListener
Invoked when a device fails to connect, of if a connection request times out.
onDidFailToConnectToDevice(LegoDevice, boolean, LDSDKError) - Method in interface dk.lego.devicesdk.device.DeviceManagerCallbackListener
Invoked when a device fails to connect, of if a connection request times out.
onDidFailToConnectToDevice(LegoBluetoothDevice, boolean, LDSDKError) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
onDidFailToConnectToDevice(LegoDevice, boolean, LDSDKError) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
onDidFinishInterrogatingDevice(LegoBluetoothDevice) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerCallbackListener
Invoked when a connection to a device is established and all required services has been discovered.
onDidFinishInterrogatingDevice(LegoDevice) - Method in interface dk.lego.devicesdk.device.DeviceManagerCallbackListener
Invoked when a connection to a device is established and all required services has been discovered.
onDidFinishInterrogatingDevice(LegoBluetoothDevice) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
onDidFinishInterrogatingDevice(LegoDevice) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
onDidStartInterrogatingDevice(LegoBluetoothDevice) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerCallbackListener
Invoked when a connection to a device is established, and the interrogation of the device for required services begins.
onDidStartInterrogatingDevice(LegoDevice) - Method in interface dk.lego.devicesdk.device.DeviceManagerCallbackListener
Invoked when a connection to a device is established, and the interrogation of the device for required services begins.
onDidStartInterrogatingDevice(LegoBluetoothDevice) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
onDidStartInterrogatingDevice(LegoDevice) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
onLeScan(AndroidBluetoothDeviceWrapper, int, byte[]) - Method in interface dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothScanCallbackListener
Invoked whenever an scan result is available
onReadRemoteRssi(BluetoothGatt, int, int) - Method in class dk.lego.devicesdk.bluetooth.BaseBluetoothGattCallback
 
onReliableWriteCompleted(BluetoothGatt, int) - Method in class dk.lego.devicesdk.bluetooth.BaseBluetoothGattCallback
 
onServicesDiscovered(BluetoothGatt, int) - Method in class dk.lego.devicesdk.bluetooth.BaseBluetoothGattCallback
 
onWillStartConnectingToDevice(LegoBluetoothDevice) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerCallbackListener
Invoked when starting a device connect attempt.
onWillStartConnectingToDevice(LegoDevice) - Method in interface dk.lego.devicesdk.device.DeviceManagerCallbackListener
Invoked when starting a device connect attempt.
onWillStartConnectingToDevice(LegoBluetoothDevice) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
onWillStartConnectingToDevice(LegoDevice) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
OutputCommand - Class in dk.lego.devicesdk.input_output
 

P

PANU - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
parseFromBytes(byte[]) - Static method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
Parse scan record bytes to ScanRecord.
parseJSONObject(String) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
parseUuidFrom(byte[]) - Static method in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
Parse UUID from bytes.
PBAP_PSE - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
performDidAddServiceCallback(LegoDevice, LegoService) - Method in class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
performDidChangeButtonStateCallback(LegoDevice, boolean) - Method in class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
performDidChangeNameCallback(LegoDevice, String, String) - Method in class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
performDidFailToAddServiceWithErrorCallback(LegoDevice, LDSDKError) - Method in class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
performDidReceiveInputFormatCallback(IO, InputFormat) - Method in class dk.lego.devicesdk.bluetooth.IoCallbackHelper
 
performDidReceiveValueDataCallback(IO, SparseArray<byte[]>) - Method in class dk.lego.devicesdk.bluetooth.IoCallbackHelper
 
performDidRemoveServiceCallback(LegoDevice, LegoService) - Method in class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
performDidRequestConnectInfo(IO) - Method in class dk.lego.devicesdk.bluetooth.IoCallbackHelper
 
performDidUpdateBatteryLevelCallback(LegoDevice, int) - Method in class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
performDidUpdateDeviceInfoCallack(LegoDevice, DeviceInfo, LDSDKError) - Method in class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
performDidUpdateLowVoltageStateCallback(LegoDevice, boolean) - Method in class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
PIEZO_TONE_MAX_DURATION - Static variable in class dk.lego.devicesdk.services.PiezoTonePlayer
 
PIEZO_TONE_MAX_FREQUENCY - Static variable in class dk.lego.devicesdk.services.PiezoTonePlayer
 
PiezoTonePlayer - Class in dk.lego.devicesdk.services
 
PiezoTonePlayer(ConnectInfo, IO) - Constructor for class dk.lego.devicesdk.services.PiezoTonePlayer
 
PiezoTonePlayer.PiezoTonePlayerNote - Enum in dk.lego.devicesdk.services
Tones that can be played using the PiezoTonePlayer
playFrequency(int, int) - Method in class dk.lego.devicesdk.services.PiezoTonePlayer
Play a frequency for the given duration in ms
playFrequency(String, String, String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
playFrequency(String, String, String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
playNote(PiezoTonePlayer.PiezoTonePlayerNote, int, int) - Method in class dk.lego.devicesdk.services.PiezoTonePlayer
Play a note.
playNote(String, String, String, String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
playNote(String, String, String, String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
post(Runnable) - Method in class dk.lego.devicesdk.utils.HandlerHelper
 
postDelayed(Runnable, long) - Method in class dk.lego.devicesdk.utils.HandlerHelper
 
putUnsignedByte(ByteBuffer, int) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
putUnsignedByte(ByteBuffer, int, int) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
putUnsignedInt(ByteBuffer, long) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
putUnsignedInt(ByteBuffer, int, long) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
putUnsignedShort(ByteBuffer, int) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
putUnsignedShort(ByteBuffer, int, int) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 

R

readInputFormatForConnectId(int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
readInputFormatForConnectId(int) - Method in class dk.lego.devicesdk.input_output.IO
 
readValueForConnectId(int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
readValueForConnectId(int) - Method in class dk.lego.devicesdk.input_output.IO
 
registerCallbackListener(DeviceCallbackListener) - Method in class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
registerCallbackListener(IOCallbackListener) - Method in class dk.lego.devicesdk.bluetooth.IoCallbackHelper
 
registerCallbackListener(LegoBluetoothDeviceManagerCallbackListener) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
Add a listener to receive device discovery and connection events.
registerCallbackListener(LegoBluetoothDeviceManagerCallbackListener) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
registerCallbackListener(DeviceCallbackListener) - Method in interface dk.lego.devicesdk.device.LegoDevice
If a callback listener is registered it receives callbacks on changes to offered services, as well as properties of the device like name and color.
registerCallbackListener(DeviceCallbackListener) - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
registerCallbackListener(DeviceManagerCallbackListener) - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
Add a listener to receive device discovery and connection events Note, that callbacks are not guaranteed to be delivered in the same order as the listeners are added.
registerCallbackListener(DeviceManagerCallbackListener) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
registerCallbackListener(IOCallbackListener) - Method in class dk.lego.devicesdk.input_output.IO
 
registerCallbackListener(ServiceCallbackListener) - Method in class dk.lego.devicesdk.services.LegoService
Add a callback listener to receive service updates.
removeCallbacks(Runnable) - Method in class dk.lego.devicesdk.utils.HandlerHelper
 
removeConnectTimeoutTimerForDevice(LegoBluetoothDevice) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
removeValidDataFormat(DataFormat) - Method in class dk.lego.devicesdk.services.LegoService
Remove a valid data format
RESERVED_UUIDS - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
 
resetStateForConnectId(int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
resetStateForConnectId(int) - Method in class dk.lego.devicesdk.input_output.IO
 
Revision - Class in dk.lego.devicesdk.device
Holds revision info to represent for example the hardware and firmware revisions of a device and attached IOs (services).
RGBLight - Class in dk.lego.devicesdk.services
This service allows for setting the colour of the RGB light on the device
RGBLight(ConnectInfo, IO) - Constructor for class dk.lego.devicesdk.services.RGBLight
 
RGBLight.RGBLightMode - Enum in dk.lego.devicesdk.services
 
RGBLightCallbackListener - Interface in dk.lego.devicesdk.services
Implement this listener to be notified when the RGBLight updates its value
run(Motor.MotorDirection, int) - Method in class dk.lego.devicesdk.services.Motor
Send a command to run the motor at a given power in a given direction.
run(String, String, String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
run(String, String, String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 

S

scan(Context) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
Start scanning for LEGO BLE devices
scan(Context) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
scan(Context) - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
Start scanning for LEGO devices
scan(Context) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
scan() - Method in interface dk.lego.devicesdk.unity.LegoDeviceManagerWrapper
 
scan() - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
ScanRecord - Class in dk.lego.devicesdk.android.bluetooth.le
Imported from Android to support simple parsing of raw scanRecord from device.
sendReadValueRequest() - Method in class dk.lego.devicesdk.services.LegoService
If the notifications is disabled for the service in the inputFormat through InputFormat.notificationsEnabled you will have to use this method to request an updated value for the service.
sendResetStateRequest() - Method in class dk.lego.devicesdk.services.LegoService
This will send a reset command to the Device for this service.
serializeColor(int) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeDevice(LegoDevice) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeDeviceBatteryLevel(LegoDevice, int) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeDeviceButtonStateChange(LegoDevice, boolean) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeDeviceError(LegoDevice, LDSDKError) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeDeviceLowVoltage(LegoDevice, boolean) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeDeviceNameChange(LegoDevice, String, String) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeDevices(List<? extends LegoDevice>) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeInputFormat(InputFormat) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeService(LegoService) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeService(LegoService, boolean) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceAngleChange(TiltSensor, TiltSensor.TiltSensorAngle, TiltSensor.TiltSensorAngle) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceColorChange(RGBLight, Integer, Integer) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceColorIndexChange(RGBLight, int, int) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceCountChange(MotionSensor, int) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceCrashChange(TiltSensor, TiltSensor.TiltSensorCrash, TiltSensor.TiltSensorCrash) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceCurrentChange(CurrentSensor, float) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceData(LegoService) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceData(Motor) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceData(RGBLight) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceData(MotionSensor) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceData(TiltSensor) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceData(VoltageSensor) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceData(CurrentSensor) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceData(PiezoTonePlayer) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceDirectionChange(TiltSensor, TiltSensor.TiltSensorDirection, TiltSensor.TiltSensorDirection) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceDistanceChange(MotionSensor, float, float) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceInputFormatChange(LegoService, InputFormat, InputFormat) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceValueDataChange(LegoService, byte[], byte[]) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceVoltageChange(VoltageSensor, float) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
serializeServiceWithData(LegoService) - Method in class dk.lego.devicesdk.unity.WrapperSerialization
 
SERVICE_RGB_LIGHT_NAME - Static variable in class dk.lego.devicesdk.services.RGBLight
 
ServiceCallbackListener - Interface in dk.lego.devicesdk.services
Implement this listener to be notified when a service (typically a sensor of some kind) sends an updated value.
serviceDefinitionWithUUID(UUID) - Static method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
serviceName - Variable in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
services - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
serviceUUID - Variable in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
setAdvertising(boolean) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
setAutomaticReconnectOnConnectionLostEnabled(boolean) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
 
setAutomaticReconnectOnConnectionLostEnabled(boolean) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
setAutomaticReconnectOnConnectionLostEnabled(boolean) - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
If enabled, the LegoDeviceManager will attempt to reconnect in case of a connection loss, but only if the connection was not closed by the user, the default value is false.
setAutomaticReconnectOnConnectionLostEnabled(boolean) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
setCharacteristicNotification(BluetoothGattCharacteristic, boolean) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDevice
Wrapper for BluetoothGatt.setCharacteristicNotification(android.bluetooth.BluetoothGattCharacteristic, boolean)
setCharacteristicNotification(BluetoothGattCharacteristic, boolean) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
setColor(int) - Method in class dk.lego.devicesdk.services.RGBLight
 
setColorIndex(int) - Method in class dk.lego.devicesdk.services.RGBLight
 
setConnectRequestTimeoutInterval(long) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
 
setConnectRequestTimeoutInterval(long) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
setConnectRequestTimeoutInterval(long) - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
If a connect request is not successful within this time interval the connection attempt is cancelled and the DeviceManagerCallbackListener.onDidFailToConnectToDevice(LegoDevice, boolean, dk.lego.devicesdk.LDSDKError) is invoked.
setConnectRequestTimeoutInterval(long) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
setContext(Context) - Method in interface dk.lego.devicesdk.unity.LegoDeviceManagerWrapper
 
setContext(Context) - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
setCustomLogger(CustomLogger) - Method in class dk.lego.devicesdk.logging.LDSDKLogger
You may set a custom log writer that all log from the library will be written to.
setDevice(LegoDevice) - Method in class dk.lego.devicesdk.services.LegoService
 
setFirmwareRevisionString(String) - Method in class dk.lego.devicesdk.device.DeviceInfo
 
setHardwareRevisionString(String) - Method in class dk.lego.devicesdk.device.DeviceInfo
 
setLogLevel(LDSDKLogger.LoggerLevel) - Method in class dk.lego.devicesdk.logging.LDSDKLogger
 
setLogLevel(int) - Method in interface dk.lego.devicesdk.unity.LegoLoggerWrapper
 
setLogLevel(int) - Method in class dk.lego.devicesdk.unity.LegoLoggerWrapperImpl
 
setMainHandler(Handler) - Method in class dk.lego.devicesdk.utils.HandlerHelper
 
setManufacturerName(String) - Method in class dk.lego.devicesdk.device.DeviceInfo
 
setMotionSensorMode(MotionSensor.MotionSensorMode) - Method in class dk.lego.devicesdk.services.MotionSensor
 
setMotionSensorMode(String, String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
setMotionSensorMode(String, String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
setName(String) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
setName(String) - Method in interface dk.lego.devicesdk.device.LegoDevice
Writing a new name will immediately update the property value, even though the actual write to the hardware is asynchronously, and may potentially fail.
setRGBLightMode(String, String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
setRGBLightMode(String, String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
setRGBMode(RGBLight.RGBLightMode) - Method in class dk.lego.devicesdk.services.RGBLight
Sets the current mode of the RGB
setSoftwareRevisionString(String) - Method in class dk.lego.devicesdk.device.DeviceInfo
 
setTiltSensorMode(TiltSensor.TiltSensorMode) - Method in class dk.lego.devicesdk.services.TiltSensor
 
setTiltSensorMode(String, String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
setTiltSensorMode(String, String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
startLeScan() - Method in interface dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapper
Start Bluetooth LE scan
startLeScan() - Method in class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapperImpl
 
stopLeScan() - Method in interface dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapper
Stop Bluetooth LE scan
stopLeScan() - Method in class dk.lego.devicesdk.bluetooth.wrappers.AndroidBluetoothAdapterWrapperImpl
 
stopPlaying() - Method in class dk.lego.devicesdk.services.PiezoTonePlayer
Stop playing any currently playing tone.
stopPlaying(String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
stopPlaying(String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
stopScanning() - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
Stop scanning for LEGO BLE devices
stopScanning() - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
stopScanning() - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
Stop scanning for LEGO BLE devices
stopScanning() - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
stopScanning() - Method in interface dk.lego.devicesdk.unity.LegoDeviceManagerWrapper
 
stopScanning() - Method in class dk.lego.devicesdk.unity.LegoDeviceManagerWrapperImpl
 
supportedFunctions - Variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
switchOff() - Method in class dk.lego.devicesdk.services.RGBLight
Switch off the RGB light on the device
switchOff(String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
switchOff(String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
switchToDefaultColor() - Method in class dk.lego.devicesdk.services.RGBLight
Switch to the default Color (i.e.

T

TiltSensor - Class in dk.lego.devicesdk.services
This service provides readings from a tilt sensor.
TiltSensor(ConnectInfo, IO) - Constructor for class dk.lego.devicesdk.services.TiltSensor
 
TiltSensor.TiltSensorAngle - Class in dk.lego.devicesdk.services
 
TiltSensor.TiltSensorAngle() - Constructor for class dk.lego.devicesdk.services.TiltSensor.TiltSensorAngle
 
TiltSensor.TiltSensorCrash - Class in dk.lego.devicesdk.services
 
TiltSensor.TiltSensorCrash() - Constructor for class dk.lego.devicesdk.services.TiltSensor.TiltSensorCrash
 
TiltSensor.TiltSensorDirection - Enum in dk.lego.devicesdk.services
Direction of tilt sensor
TiltSensor.TiltSensorMode - Enum in dk.lego.devicesdk.services
Tilt sensor mode
tiltSensorAngleEqualToAngle(TiltSensor.TiltSensorAngle, TiltSensor.TiltSensorAngle) - Static method in class dk.lego.devicesdk.services.TiltSensor
 
tiltSensorAngleMake(float, float) - Static method in class dk.lego.devicesdk.services.TiltSensor
 
TiltSensorCallbackListener - Interface in dk.lego.devicesdk.services
Implement this listener to be notified when the TiltSensor updates its value
tiltSensorCrashEqualToCrash(TiltSensor.TiltSensorCrash, TiltSensor.TiltSensorCrash) - Static method in class dk.lego.devicesdk.services.TiltSensor
 
tiltSensorCrashMake(int, int, int) - Static method in class dk.lego.devicesdk.services.TiltSensor
 
toHexString(byte[]) - Static method in class dk.lego.devicesdk.utils.ByteUtils
 
toString() - Method in class dk.lego.devicesdk.android.bluetooth.le.ScanRecord
 
toString() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.BluetoothServiceDefinition
 
toString() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
toString() - Method in class dk.lego.devicesdk.device.ConnectInfo
 
toString() - Method in class dk.lego.devicesdk.device.Revision
 
toString() - Method in class dk.lego.devicesdk.input_output.DataFormat
 
toString() - Method in enum dk.lego.devicesdk.input_output.InputFormat.InputFormatUnit
 
toString() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
toString() - Method in class dk.lego.devicesdk.services.TiltSensor.TiltSensorAngle
 
toString() - Method in class dk.lego.devicesdk.services.TiltSensor.TiltSensorCrash
 
toString() - Method in enum dk.lego.devicesdk.services.TiltSensor.TiltSensorDirection
 
toStringShort() - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 

U

UNDEFINED_DEVICE_ID - Static variable in class dk.lego.devicesdk.device.LegoDeviceImpl
 
UnityInvoker - Class in dk.lego.devicesdk.unity
 
UnityInvoker() - Constructor for class dk.lego.devicesdk.unity.UnityInvoker
 
unregisterCallbackListener(DeviceCallbackListener) - Method in class dk.lego.devicesdk.bluetooth.DeviceCallbackHelper
 
unregisterCallbackListener(IOCallbackListener) - Method in class dk.lego.devicesdk.bluetooth.IoCallbackHelper
 
unregisterCallbackListener(LegoBluetoothDeviceManagerCallbackListener) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
Remove a listener
unregisterCallbackListener(LegoBluetoothDeviceManagerCallbackListener) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
unregisterCallbackListener(DeviceCallbackListener) - Method in interface dk.lego.devicesdk.device.LegoDevice
Remove callback listener from this device
unregisterCallbackListener(DeviceCallbackListener) - Method in class dk.lego.devicesdk.device.LegoDeviceImpl
 
unregisterCallbackListener(DeviceManagerCallbackListener) - Method in interface dk.lego.devicesdk.device.LegoDeviceManager
Remove a listener
unregisterCallbackListener(DeviceManagerCallbackListener) - Method in class dk.lego.devicesdk.device.LegoDeviceManagerImpl
 
unregisterCallbackListener(IOCallbackListener) - Method in class dk.lego.devicesdk.input_output.IO
 
unregisterCallbackListener(ServiceCallbackListener) - Method in class dk.lego.devicesdk.services.LegoService
Remove a callback listener
updateAdvertisingDevicesInterval(long) - Method in interface dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManager
Update the Advertising interval - determines the interval in milliseconds within which devices should advertise before being ruled out
updateAdvertisingDevicesInterval(long) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceManagerImpl
 
updateConnectionStateUponConnectionStateChange(int, int) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
updateCurrentInputFormatWithNewMode(int) - Method in class dk.lego.devicesdk.services.LegoService
Sends and updates input format with newMode for this service to the device.
updateDeviceState(LegoDevice.DeviceState) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
updateInputFormat(InputFormat) - Method in class dk.lego.devicesdk.services.LegoService
Send an updated input format for this service to the device.
updateInputFormat(String, String, String, String, String, boolean) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
updateInputFormat(String, String, String, String, String, boolean) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
updateServiceData(String, String) - Method in interface dk.lego.devicesdk.unity.LegoServiceWrapper
 
updateServiceData(String, String) - Method in class dk.lego.devicesdk.unity.LegoServiceWrapperImpl
 
updateWithAdvertisementDataAndRSSI(byte[], int) - Method in class dk.lego.devicesdk.bluetooth.LegoBluetoothDeviceImpl
 
UUID_BYTES_128_BIT - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
Length of bytes for 128 bit UUID
UUID_BYTES_16_BIT - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
Length of bytes for 16 bit UUID
UUID_BYTES_32_BIT - Static variable in class dk.lego.devicesdk.android.bluetooth.BluetoothUuid
Length of bytes for 32 bit UUID
UUID_STANDARD_BASE - Static variable in class dk.lego.devicesdk.bluetooth.BluetoothHelper
 
UUIDWithPrefixCustomBase(String) - Static method in class dk.lego.devicesdk.bluetooth.BluetoothHelper
 
UUIDWithPrefixStandardBase(String) - Static method in class dk.lego.devicesdk.bluetooth.BluetoothHelper
 

V

v(String) - Static method in class dk.lego.devicesdk.logging.LDSDKLogger
 
validateDefinitionIsSatisfiedByCharacteristic(BluetoothGattCharacteristic) - Method in class dk.lego.devicesdk.bluetooth.service_definitions.CharacteristicDefinition
 
valueOf(String) - Static method in enum dk.lego.devicesdk.bluetooth.BluetoothHelper.Permissions
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.bluetooth.BluetoothHelper.Properties
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.device.ConnectInfo.IOType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.device.LegoDevice.DeviceCategory
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.device.LegoDevice.DeviceFunction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.device.LegoDevice.DeviceState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.input_output.InputFormat.InputFormatUnit
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.LDSDKError.ErrorCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.logging.LDSDKLogger.LoggerLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.services.MotionSensor.MotionSensorMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.services.Motor.MotorDirection
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.services.PiezoTonePlayer.PiezoTonePlayerNote
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.services.RGBLight.RGBLightMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.services.TiltSensor.TiltSensorDirection
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dk.lego.devicesdk.services.TiltSensor.TiltSensorMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum dk.lego.devicesdk.bluetooth.BluetoothHelper.Permissions
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.bluetooth.BluetoothHelper.Properties
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.device.ConnectInfo.IOType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.device.LegoDevice.DeviceCategory
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.device.LegoDevice.DeviceFunction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.device.LegoDevice.DeviceState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.input_output.InputFormat.InputFormatUnit
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.LDSDKError.ErrorCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.logging.LDSDKLogger.LoggerLevel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.services.MotionSensor.MotionSensorMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.services.Motor.MotorDirection
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.services.PiezoTonePlayer.PiezoTonePlayerNote
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.services.RGBLight.RGBLightMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.services.TiltSensor.TiltSensorDirection
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dk.lego.devicesdk.services.TiltSensor.TiltSensorMode
Returns an array containing the constants of this enum type, in the order they are declared.
verbose(String) - Method in interface dk.lego.devicesdk.logging.CustomLogger
Used to log detailed information.
verbose(String) - Method in class dk.lego.devicesdk.logging.DefaultAndroidCustomLogger
 
verbose(String) - Method in class dk.lego.devicesdk.logging.DefaultSilentCustomLogger
 
VERSION_CODE - Static variable in class dk.lego.devicesdk.BuildConfig
 
VERSION_NAME - Static variable in class dk.lego.devicesdk.BuildConfig
 
VoltageSensor - Class in dk.lego.devicesdk.services
 
VoltageSensorCallbackListener - Interface in dk.lego.devicesdk.services
Implement this callback listener to be notified when the VoltageSensor updates its value

W

w(String) - Static method in class dk.lego.devicesdk.logging.LDSDKLogger
 
warn(String) - Method in interface dk.lego.devicesdk.logging.CustomLogger
Used in situations like use of deprecated APIs, poor use of API, near errors, other runtime situations that are undesirable or unexpected, but not necessarily "wrong".
warn(String) - Method in class dk.lego.devicesdk.logging.DefaultAndroidCustomLogger
 
warn(String) - Method in class dk.lego.devicesdk.logging.DefaultSilentCustomLogger
 
WrapperSerialization - Class in dk.lego.devicesdk.unity
 
WrapperSerialization() - Constructor for class dk.lego.devicesdk.unity.WrapperSerialization
 
writeColor(int, int, int, int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
writeColor(int, int, int, int) - Method in class dk.lego.devicesdk.input_output.IO
 
writeColorIndex(int, int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
writeColorIndex(int, int) - Method in class dk.lego.devicesdk.input_output.IO
 
writeData(byte[], int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
writeData(byte[], int) - Method in class dk.lego.devicesdk.input_output.IO
 
writeData(byte[]) - Method in class dk.lego.devicesdk.services.LegoService
Will send data to the IO backed by this service.
writeFormatData() - Method in class dk.lego.devicesdk.input_output.InputFormat
 
writeInputCommand(InputCommand) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
writeInputFormat(InputFormat, int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
writeInputFormat(InputFormat, int) - Method in class dk.lego.devicesdk.input_output.IO
 
writeMotorPower(int, int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
writeMotorPower(int, int, int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
writeMotorPower(int, int) - Method in class dk.lego.devicesdk.input_output.IO
 
writeMotorPower(int, int, int) - Method in class dk.lego.devicesdk.input_output.IO
 
writeOutputCommand(OutputCommand) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
writePiezoToneFrequency(int, int, int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
writePiezoToneFrequency(int, int, int) - Method in class dk.lego.devicesdk.input_output.IO
 
writePiezoToneStop(int) - Method in class dk.lego.devicesdk.bluetooth.BluetoothIO
 
writePiezoToneStop(int) - Method in class dk.lego.devicesdk.input_output.IO
 

X

x - Variable in class dk.lego.devicesdk.services.TiltSensor.TiltSensorAngle
 
x - Variable in class dk.lego.devicesdk.services.TiltSensor.TiltSensorCrash
 

Y

y - Variable in class dk.lego.devicesdk.services.TiltSensor.TiltSensorAngle
 
y - Variable in class dk.lego.devicesdk.services.TiltSensor.TiltSensorCrash
 

Z

z - Variable in class dk.lego.devicesdk.services.TiltSensor.TiltSensorCrash
 
A B C D E F G H I L M N O P R S T U V W X Y Z