objc2_authentication_services/generated/
ASCredentialIdentityStoreState.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/authenticationservices/ascredentialidentitystorestate?language=objc)
10    #[unsafe(super(NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    pub struct ASCredentialIdentityStoreState;
13);
14
15extern_conformance!(
16    unsafe impl NSObjectProtocol for ASCredentialIdentityStoreState {}
17);
18
19impl ASCredentialIdentityStoreState {
20    extern_methods!(
21        /// Get the enabled state of the credential identity store.
22        ///
23        /// Returns: YES if the credential identity store is enabled.
24        ///
25        /// You can only modify the credential identity store when it is enabled.
26        #[unsafe(method(isEnabled))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn isEnabled(&self) -> bool;
29
30        /// Get whether the credential identity store supports incremental updates.
31        ///
32        /// Returns: YES if the credential identity store supports incremental updates.
33        ///
34        /// You should examine the value returned by this property to find out if
35        /// the credential identity store can accept incremental updates. If incremental updates
36        /// are supported, you can update the credential identity store with only the new changes
37        /// since the last time it was updated. Otherwise, you should update the credential identity
38        /// store by adding all credential identities.
39        #[unsafe(method(supportsIncrementalUpdates))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn supportsIncrementalUpdates(&self) -> bool;
42    );
43}
44
45/// Methods declared on superclass `NSObject`.
46impl ASCredentialIdentityStoreState {
47    extern_methods!(
48        #[unsafe(method(init))]
49        #[unsafe(method_family = init)]
50        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
51
52        #[unsafe(method(new))]
53        #[unsafe(method_family = new)]
54        pub unsafe fn new() -> Retained<Self>;
55    );
56}