objc2_authentication_services/generated/
ASWebAuthenticationSessionWebBrowserSessionManager.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct ASWebAuthenticationSessionWebBrowserSessionManager;
14);
15
16extern_conformance!(
17 unsafe impl NSObjectProtocol for ASWebAuthenticationSessionWebBrowserSessionManager {}
18);
19
20impl ASWebAuthenticationSessionWebBrowserSessionManager {
21 extern_methods!(
22 #[unsafe(method(sharedManager))]
23 #[unsafe(method_family = none)]
24 pub unsafe fn sharedManager() -> Retained<ASWebAuthenticationSessionWebBrowserSessionManager>;
25
26 #[cfg(feature = "ASWebAuthenticationSessionWebBrowserSessionHandling")]
27 #[unsafe(method(sessionHandler))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn sessionHandler(
30 &self,
31 ) -> Retained<ProtocolObject<dyn ASWebAuthenticationSessionWebBrowserSessionHandling>>;
32
33 #[cfg(feature = "ASWebAuthenticationSessionWebBrowserSessionHandling")]
34 #[unsafe(method(setSessionHandler:))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn setSessionHandler(
38 &self,
39 session_handler: &ProtocolObject<
40 dyn ASWebAuthenticationSessionWebBrowserSessionHandling,
41 >,
42 );
43
44 #[unsafe(method(wasLaunchedByAuthenticationServices))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn wasLaunchedByAuthenticationServices(&self) -> bool;
47 );
48}
49
50impl ASWebAuthenticationSessionWebBrowserSessionManager {
52 extern_methods!(
53 #[unsafe(method(init))]
54 #[unsafe(method_family = init)]
55 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
56
57 #[unsafe(method(new))]
58 #[unsafe(method_family = new)]
59 pub unsafe fn new() -> Retained<Self>;
60 );
61}