Skip to main content

ASAuthorizationControllerPresentationContextProviding

Trait ASAuthorizationControllerPresentationContextProviding 

Source
pub unsafe trait ASAuthorizationControllerPresentationContextProviding: NSObjectProtocol + MainThreadOnly {
    // Provided method
    unsafe fn presentationAnchorForAuthorizationController(
        &self,
        controller: &ASAuthorizationController,
    ) -> Retained<ASPresentationAnchor>
       where Self: Sized + Message { ... }
}
Available on crate feature ASAuthorizationController only.
Expand description

Provided Methods§

Source

unsafe fn presentationAnchorForAuthorizationController( &self, controller: &ASAuthorizationController, ) -> Retained<ASPresentationAnchor>
where Self: Sized + Message,

Available on macOS and crate feature ASFoundation only.

Return a view anchor that is most appropriate for athorization UI to be presented over. This view will be used as a hint if a credential provider requires user interaction.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn ASAuthorizationControllerPresentationContextProviding

Source§

impl ProtocolType for dyn ASAuthorizationControllerPresentationContextProviding

Source§

const NAME: &'static str = "ASAuthorizationControllerPresentationContextProviding"

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> ASAuthorizationControllerPresentationContextProviding for ProtocolObject<T>

Implementors§