use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(ASAuthorizationOpenIDRequest, ASAuthorizationRequest, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(
feature = "ASAuthorizationOpenIDRequest",
feature = "ASAuthorizationRequest"
))]
pub struct ASAuthorizationSingleSignOnRequest;
);
#[cfg(all(
feature = "ASAuthorizationOpenIDRequest",
feature = "ASAuthorizationRequest"
))]
extern_conformance!(
unsafe impl NSCoding for ASAuthorizationSingleSignOnRequest {}
);
#[cfg(all(
feature = "ASAuthorizationOpenIDRequest",
feature = "ASAuthorizationRequest"
))]
extern_conformance!(
unsafe impl NSCopying for ASAuthorizationSingleSignOnRequest {}
);
#[cfg(all(
feature = "ASAuthorizationOpenIDRequest",
feature = "ASAuthorizationRequest"
))]
unsafe impl CopyingHelper for ASAuthorizationSingleSignOnRequest {
type Result = Self;
}
#[cfg(all(
feature = "ASAuthorizationOpenIDRequest",
feature = "ASAuthorizationRequest"
))]
extern_conformance!(
unsafe impl NSObjectProtocol for ASAuthorizationSingleSignOnRequest {}
);
#[cfg(all(
feature = "ASAuthorizationOpenIDRequest",
feature = "ASAuthorizationRequest"
))]
extern_conformance!(
unsafe impl NSSecureCoding for ASAuthorizationSingleSignOnRequest {}
);
#[cfg(all(
feature = "ASAuthorizationOpenIDRequest",
feature = "ASAuthorizationRequest"
))]
impl ASAuthorizationSingleSignOnRequest {
extern_methods!(
#[unsafe(method(authorizationOptions))]
#[unsafe(method_family = none)]
pub unsafe fn authorizationOptions(&self) -> Retained<NSArray<NSURLQueryItem>>;
#[unsafe(method(setAuthorizationOptions:))]
#[unsafe(method_family = none)]
pub unsafe fn setAuthorizationOptions(
&self,
authorization_options: &NSArray<NSURLQueryItem>,
);
#[unsafe(method(isUserInterfaceEnabled))]
#[unsafe(method_family = none)]
pub unsafe fn isUserInterfaceEnabled(&self) -> bool;
#[unsafe(method(setUserInterfaceEnabled:))]
#[unsafe(method_family = none)]
pub unsafe fn setUserInterfaceEnabled(&self, user_interface_enabled: bool);
);
}
#[cfg(all(
feature = "ASAuthorizationOpenIDRequest",
feature = "ASAuthorizationRequest"
))]
impl ASAuthorizationSingleSignOnRequest {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}