Skip to main content

ASAuthorizationControllerDelegate

Trait ASAuthorizationControllerDelegate 

Source
pub unsafe trait ASAuthorizationControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn authorizationController_didCompleteWithAuthorization(
        &self,
        controller: &ASAuthorizationController,
        authorization: &ASAuthorization,
    )
       where Self: Sized + Message { ... }
    unsafe fn authorizationController_didCompleteWithError(
        &self,
        controller: &ASAuthorizationController,
        error: &NSError,
    )
       where Self: Sized + Message { ... }
    unsafe fn authorizationController_didCompleteWithCustomMethod(
        &self,
        controller: &ASAuthorizationController,
        method: &ASAuthorizationCustomMethod,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature ASAuthorizationController only.
Expand description

Provided Methods§

Source

unsafe fn authorizationController_didCompleteWithAuthorization( &self, controller: &ASAuthorizationController, authorization: &ASAuthorization, )
where Self: Sized + Message,

Available on crate feature ASAuthorization only.
Source

unsafe fn authorizationController_didCompleteWithError( &self, controller: &ASAuthorizationController, error: &NSError, )
where Self: Sized + Message,

Source

unsafe fn authorizationController_didCompleteWithCustomMethod( &self, controller: &ASAuthorizationController, method: &ASAuthorizationCustomMethod, )
where Self: Sized + Message,

Available on crate feature ASAuthorizationCustomMethod only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn ASAuthorizationControllerDelegate

Source§

impl ProtocolType for dyn ASAuthorizationControllerDelegate

Source§

const NAME: &'static str = "ASAuthorizationControllerDelegate"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> ASAuthorizationControllerDelegate for ProtocolObject<T>

Implementors§