infinea_sdk_flutter 0.0.2+1 infinea_sdk_flutter: ^0.0.2+1 copied to clipboard
Flutter Plugin for Infinite Peripherals Infinea SDK. This plugin allows you to connect and use devices compatible with Infinea SDK.
Infinea SDK Plugin #
(https://pub.dev/packages/infinea_sdk_flutter)
Flutter Plugin for Infinite Peripherals Infinea SDK. This plugin allows you to connect and use devices compatible with Infinea SDK.
Usage #
To use this plugin, add infinea_sdk_flutter
as a dependency in your pubspec.yaml file.
You will need a developer key and application id setup in the Infinite Peripherals Developer Portal
Using Infinea SDK #
Example Usage #
final InfineaSdkFlutter infinea = InfineaSdkFlutter();
await infinea.setDeveloperKey(key: 'enteryourdeveloperkeyhere');
await infinea.connect();
Function cancelListener = infinea.startListening((event) {
if (event['event'] == 'barcode') {
print(event['data']);
}
});
await infinea.disconnect();)
cancelListener();