Package com.medm.devicekit
MedM DeviceKit library.
MedM DeviceKit is a library that allows simple and flexible integration of Bluetooth-enabled medical devices into your application.
Usage examples can be found on the MedMDeviceKit
class.
There is a key design principle that should be noted: any DeviceKit operation stops any other operation. It's done to increase the general stability of Bluetooth communication.
-
Interface Summary Interface Description IAddDeviceCallback Callback to notify that add operation was finishedIDataCallback Callback which receives data from a deviceIDeviceDescription Device descriptionIDeviceStatusCallback Device status callback to get notifications on managed device status change:IDeviceStatusCallback.onConnected(IDeviceDescription)
connection to the device was established.IDeviceStatusWithAddResultCallback Deprecated. IErrorCallback IScannerCallback Callback for receiving info about scan -
Class Summary Class Description CollectorStopToken Collector stop token -- could be used to stop collect data.DeviceAddingCancellationToken Cancellation token -- could be used to cancel asynchronous add operation.DeviceSetting Represents setting as its kind and fixed array of possible string values.MedMCollector MedM Collector is where you receive data from controlled devices.MedMDeviceKit Main MedM DeviceKit entry point.MedMDeviceKitConfig MedMDeviceKitConfig represents configuration for DeviceKitMedMDeviceManager MedM Device Manager is where you can control devices list: add devices found in scanner, remove devices, list devices, etc.MedMScanner MedM Scanner is where you search Bluetooth environment for new devices.PostponedAddFilter Describes filters for postponed adding.ScannerStopToken Scanner stop token -- could be used to stop scan. -
Enum Summary Enum Description DeviceSetting.Kind MeasurementType MedMDeviceKitConfig.GlucoseUnits MedMDeviceKitConfig.Sex MedMDeviceKitConfig.Units Imperial means pounds and miles, Metric - kilograms and kilometersOperationStatus PermissionType -
Exception Summary Exception Description BuildExpiredException Indicates that provided MedM Device Kit distribution is time-limited and expired.FailedToAddPostponedDeviceException Indicates that this device can't be added for postponed adding.FeatureUnsupportedException Indicates that provided MedM Device Kit license doesn't support this feature.InitializationFailedException Indicates that MedM Device Kit failed to initialize.InvalidLicenseKeyException Indicates that provided MedM Device Kit license key is incorrect.LicenseExpiredException Indicates that provided MedM Device Kit license is time-limited and expired.MedMDeviceKitNotInitializedException Indicates that MedM Device Kit was used without a proper initialization.NotEnoughPermissionsException Indicates that there are not enough permissions to run current operation.UnsupportedPackageException Indicates that provided MedM Device Kit distribution doesn't support this app.