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 crate feature ASFoundation and macOS 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 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
Source§

impl<T> ImplementedBy<T> for dyn ASAuthorizationControllerPresentationContextProviding

Implementations on Foreign Types§

Source§

impl<T> ASAuthorizationControllerPresentationContextProviding for ProtocolObject<T>

Implementors§