objc2_local_authentication/generated/
LABiometryType.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// [Apple's documentation](https://developer.apple.com/documentation/localauthentication/labiometrytype?language=objc)
8// NS_ENUM
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct LABiometryType(pub NSInteger);
12impl LABiometryType {
13    /// The device does not support biometry.
14    #[doc(alias = "LABiometryTypeNone")]
15    pub const None: Self = Self(0);
16    /// The device does not support biometry.
17    #[deprecated]
18    pub const LABiometryNone: Self = Self(LABiometryType::None.0);
19    /// The device supports Touch ID.
20    #[doc(alias = "LABiometryTypeTouchID")]
21    pub const TouchID: Self = Self(1);
22    /// The device supports Face ID.
23    #[doc(alias = "LABiometryTypeFaceID")]
24    pub const FaceID: Self = Self(2);
25    /// The device supports Optic ID
26    #[doc(alias = "LABiometryTypeOpticID")]
27    pub const OpticID: Self = Self(4);
28}
29
30unsafe impl Encode for LABiometryType {
31    const ENCODING: Encoding = NSInteger::ENCODING;
32}
33
34unsafe impl RefEncode for LABiometryType {
35    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
36}