![]() Scanned data will be received from the native (Kotlin) layer over an EventChannel as a stringified JSON object. ![]() User Interface (Dart) code to receive data (e.g. GET_VERSION.Īs can be seen from the picture, the last scanned barcode is displayed and a scan can be initiated with the blue SCAN button. This demo only receives scans but this channel could also be used to parse return values from the asynchronous DataWedge APIs, e.g. An EventChannel is used to receive data back from DataWedge.Only a couple of methods are used by this demo app but there are about 30 APIs available in DataWedge. A MethodChannel is used to invoke the DataWedge API to instruct DataWedge to do things, e.g.Because the native code is written in Kotlin I also re-used a lot of the code I previously wrote for my DataWedge Kotlin sample. The sample application, available from, draws heavily on the official Flutter sample for " platform_channel" as well as the approach followed by the previously mentioned 3rd party Flutter EMDK sample. ![]() Optionally: Configure the Flutter SDK in Android Studio and run your application from there The process is fairly straight forward and there are abundant resources out there to help you get Flutter configured on your system Install flutter You need to have Flutter installed in order to run the sample. The sample does not demonstrate the full capabilities of DataWedge through Flutter, see 'not covered by the sample', below. The sample project will use DataWedge to capture data as well as the DataWedge API to configure a profile and control the scanner with a button on the UI. For an overview of DataWedge, please refer to the DataWedge Techdocs page. This article describes how to interface to Zebra's DataWedge service from a Flutter application.įor expediency, familiarity with Zebra's DataWedge tool as well as the DataWedge profile mechanism is assumed. ![]() Global Solution Centers - Testing Services. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |