objc2-local-authentication 0.3.2

Bindings to the LocalAuthentication framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

/// [Apple's documentation](https://developer.apple.com/documentation/localauthentication/labiometrytype?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct LABiometryType(pub NSInteger);
impl LABiometryType {
    /// The device does not support biometry.
    #[doc(alias = "LABiometryTypeNone")]
    pub const None: Self = Self(0);
    /// The device does not support biometry.
    #[deprecated]
    pub const LABiometryNone: Self = Self(LABiometryType::None.0);
    /// The device supports Touch ID.
    #[doc(alias = "LABiometryTypeTouchID")]
    pub const TouchID: Self = Self(1);
    /// The device supports Face ID.
    #[doc(alias = "LABiometryTypeFaceID")]
    pub const FaceID: Self = Self(2);
    /// The device supports Optic ID
    #[doc(alias = "LABiometryTypeOpticID")]
    pub const OpticID: Self = Self(4);
}

unsafe impl Encode for LABiometryType {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for LABiometryType {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}