Trait ASAuthorizationProviderExtensionAuthorizationRequestHandler

Source
pub unsafe trait ASAuthorizationProviderExtensionAuthorizationRequestHandler: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn beginAuthorizationWithRequest(
        &self,
        request: &ASAuthorizationProviderExtensionAuthorizationRequest,
    )
       where Self: Sized + Message { ... }
    unsafe fn cancelAuthorizationWithRequest(
        &self,
        request: &ASAuthorizationProviderExtensionAuthorizationRequest,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature ASAuthorizationProviderExtensionAuthorizationRequest only.
Expand description

Provided Methods§

Source

unsafe fn beginAuthorizationWithRequest( &self, request: &ASAuthorizationProviderExtensionAuthorizationRequest, )
where Self: Sized + Message,

Called to begin the authorization. It’s called on the main thread.

Source

unsafe fn cancelAuthorizationWithRequest( &self, request: &ASAuthorizationProviderExtensionAuthorizationRequest, )
where Self: Sized + Message,

Called when the authorization was canceled by authorization service. It’s called on the main thread.

Trait Implementations§

Source§

impl ProtocolType for dyn ASAuthorizationProviderExtensionAuthorizationRequestHandler

Source§

const NAME: &'static str = "ASAuthorizationProviderExtensionAuthorizationRequestHandler"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn ASAuthorizationProviderExtensionAuthorizationRequestHandler

Implementations on Foreign Types§

Source§

impl<T> ASAuthorizationProviderExtensionAuthorizationRequestHandler for ProtocolObject<T>

Implementors§