use crate::common::*;
use crate::AuthenticationServices::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct ASAccountAuthenticationModificationExtensionContext;
unsafe impl ClassType for ASAccountAuthenticationModificationExtensionContext {
#[inherits(NSObject)]
type Super = NSExtensionContext;
}
);
extern_methods!(
unsafe impl ASAccountAuthenticationModificationExtensionContext {
#[method(getSignInWithAppleUpgradeAuthorizationWithState:nonce:completionHandler:)]
pub unsafe fn getSignInWithAppleUpgradeAuthorizationWithState_nonce_completionHandler(
&self,
state: Option<&NSString>,
nonce: Option<&NSString>,
completionHandler: &Block<(*mut ASAuthorizationAppleIDCredential, *mut NSError), ()>,
);
#[method(completeUpgradeToSignInWithAppleWithUserInfo:)]
pub unsafe fn completeUpgradeToSignInWithAppleWithUserInfo(
&self,
userInfo: Option<&NSDictionary>,
);
#[method(completeChangePasswordRequestWithUpdatedCredential:userInfo:)]
pub unsafe fn completeChangePasswordRequestWithUpdatedCredential_userInfo(
&self,
updatedCredential: &ASPasswordCredential,
userInfo: Option<&NSDictionary>,
);
#[method(cancelRequestWithError:)]
pub unsafe fn cancelRequestWithError(&self, error: &NSError);
}
);