//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Foundation::*;
use crate::LocalAuthentication::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "LocalAuthentication_LAAuthenticationRequirement")]
    pub struct LAAuthenticationRequirement;

    #[cfg(feature = "LocalAuthentication_LAAuthenticationRequirement")]
    unsafe impl ClassType for LAAuthenticationRequirement {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "LocalAuthentication_LAAuthenticationRequirement")]
unsafe impl NSObjectProtocol for LAAuthenticationRequirement {}

extern_methods!(
    #[cfg(feature = "LocalAuthentication_LAAuthenticationRequirement")]
    unsafe impl LAAuthenticationRequirement {
        #[method_id(@__retain_semantics Other defaultRequirement)]
        pub unsafe fn defaultRequirement() -> Id<LAAuthenticationRequirement>;

        #[method_id(@__retain_semantics Other biometryRequirement)]
        pub unsafe fn biometryRequirement() -> Id<LAAuthenticationRequirement>;

        #[method_id(@__retain_semantics Other biometryCurrentSetRequirement)]
        pub unsafe fn biometryCurrentSetRequirement() -> Id<LAAuthenticationRequirement>;

        #[cfg(feature = "LocalAuthentication_LABiometryFallbackRequirement")]
        #[method_id(@__retain_semantics Other biometryRequirementWithFallback:)]
        pub unsafe fn biometryRequirementWithFallback(
            fallback: &LABiometryFallbackRequirement,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "LocalAuthentication_LAAuthenticationRequirement")]
    unsafe impl LAAuthenticationRequirement {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "LocalAuthentication_LABiometryFallbackRequirement")]
    pub struct LABiometryFallbackRequirement;

    #[cfg(feature = "LocalAuthentication_LABiometryFallbackRequirement")]
    unsafe impl ClassType for LABiometryFallbackRequirement {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "LocalAuthentication_LABiometryFallbackRequirement")]
unsafe impl NSObjectProtocol for LABiometryFallbackRequirement {}

extern_methods!(
    #[cfg(feature = "LocalAuthentication_LABiometryFallbackRequirement")]
    unsafe impl LABiometryFallbackRequirement {
        #[method_id(@__retain_semantics Other defaultRequirement)]
        pub unsafe fn defaultRequirement() -> Id<LABiometryFallbackRequirement>;

        #[method_id(@__retain_semantics Other devicePasscodeRequirement)]
        pub unsafe fn devicePasscodeRequirement() -> Id<LABiometryFallbackRequirement>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "LocalAuthentication_LABiometryFallbackRequirement")]
    unsafe impl LABiometryFallbackRequirement {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);
