onyx_plugin 0.0.3 copy "onyx_plugin: ^0.0.3" to clipboard
onyx_plugin: ^0.0.3 copied to clipboard

outdated

This plugin integrates the onyx fingerprint camera api with flutter..

DFT-onyx-flutter-package #

This is not free software. This plugin uses the Onyx software development kits (SDKs) for Android and iOS. It requires a license agreement with:Diamond Fortress Technologies, Inc.

Plugin Requirements #

Sample Project #

To run the sample project, run the Example/lib/main.dart.

The sample app load to a screen that shows all of the onyx camera settings, and provides the ability to start the onyx camera with any of the settings on the initial screen.

Android Plugin #

Minimum android version supported is 21.

Getting started #

https://pub.dev/packages/onyx_plugin/install

Add the Onyx native package's repository and dependency references below to your app's android/app/build.gradle file.

android {
    ...
    lintOptions {
        disable 'InvalidPackage'
    }
    ...
}
repositories {
    maven {
        url 'http://nexus.diamondfortress.com/nexus/content/repositories/releases/'
    }

    maven {
        url 'http://nexus.diamondfortress.com/nexus/content/repositories/snapshots/'
    }

}

dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.google.android.gms:play-services-base:17.6.0'
implementation 'com.dft.android:onyx-camera:7.0.0'
}

The plugin also needs permission to write to external storage, so in the app's AndroidManifest.xml, make sure to add the line below.

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Onyx controls #

The OnyxCamera class's options contains all of onyx camera options, including the license key. please see the documentation for all of the configuration options.

once the settings are configured, simply call OnyxCamera.configureOnyx to set the onyx configurations. and OnyxCamera.StartOnyx() to start the camera.

listen for changes to the OnyxCamera state to determine when the onyx plugin is configured (state=configured), is returning results(state = success), or has an error (state=error).

    OnyxCamera.state.addListener(() async {
      setState(() {});
      if (OnyxCamera.state.status == OnyxStatuses.configured) {
        await OnyxCamera.startOnyx();
      }
    });
4
likes
0
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

This plugin integrates the onyx fingerprint camera api with flutter..

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on onyx_plugin

Packages that implement onyx_plugin