device_unlock 0.1.0 copy "device_unlock: ^0.1.0" to clipboard
device_unlock: ^0.1.0 copied to clipboard

outdated

A Flutter plugin to request the device unlock screen..

device_unlock #

A Flutter plugin to request the device unlock screen.

Sample code #

try {
    if (await DeviceUnlock.request()) {
        // Unlocked successfully.
    } else {
        // Did not pass face, touch or pin validation.
    }
} on DeviceUnlockUnavailable catch (_) {
    // Device does not have face, touch or pin security available.
}

How does it work #

The following attempts and fallbacks should be made:

  1. Is face unlock available? Request and return true if user passed validation or false otherwise.
  2. Is touch unlock available? Request and return true if user passed validation or false otherwise.
  3. Is pin unlock available? Request and return true if user passed validation or false otherwise.
  4. If the device does not have face, touch or pin security, throw an exception and let the dev decide what to do.
14
likes
20
pub points
38%
popularity

Publisher

unverified uploader

A Flutter plugin to request the device unlock screen..

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on device_unlock