icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::AuthenticationServices::*;
use crate::Foundation::*;

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

    #[cfg(feature = "AuthenticationServices_ASAccountAuthenticationModificationExtensionContext")]
    unsafe impl ClassType for ASAccountAuthenticationModificationExtensionContext {
        #[inherits(NSObject)]
        type Super = NSExtensionContext;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "AuthenticationServices_ASAccountAuthenticationModificationExtensionContext")]
unsafe impl NSObjectProtocol for ASAccountAuthenticationModificationExtensionContext {}

extern_methods!(
    #[cfg(feature = "AuthenticationServices_ASAccountAuthenticationModificationExtensionContext")]
    unsafe impl ASAccountAuthenticationModificationExtensionContext {
        #[cfg(all(
            feature = "AuthenticationServices_ASAuthorizationAppleIDCredential",
            feature = "Foundation_NSError",
            feature = "Foundation_NSString"
        ))]
        #[method(getSignInWithAppleUpgradeAuthorizationWithState:nonce:completionHandler:)]
        pub unsafe fn getSignInWithAppleUpgradeAuthorizationWithState_nonce_completionHandler(
            &self,
            state: Option<&NSString>,
            nonce: Option<&NSString>,
            completion_handler: &Block<(*mut ASAuthorizationAppleIDCredential, *mut NSError), ()>,
        );

        #[cfg(feature = "Foundation_NSDictionary")]
        #[method(completeUpgradeToSignInWithAppleWithUserInfo:)]
        pub unsafe fn completeUpgradeToSignInWithAppleWithUserInfo(
            &self,
            user_info: Option<&NSDictionary>,
        );

        #[cfg(all(
            feature = "AuthenticationServices_ASPasswordCredential",
            feature = "Foundation_NSDictionary"
        ))]
        #[method(completeChangePasswordRequestWithUpdatedCredential:userInfo:)]
        pub unsafe fn completeChangePasswordRequestWithUpdatedCredential_userInfo(
            &self,
            updated_credential: &ASPasswordCredential,
            user_info: Option<&NSDictionary>,
        );

        #[cfg(feature = "Foundation_NSError")]
        #[method(cancelRequestWithError:)]
        pub unsafe fn cancelRequestWithError(&self, error: &NSError);
    }
);

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

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