Trait ASWebAuthenticationPresentationContextProviding

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

Provides context to target where in an application’s UI the authorization view should be shown.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn presentationAnchorForWebAuthenticationSession( &self, session: &ASWebAuthenticationSession, ) -> Retained<ASPresentationAnchor>
where Self: Sized + Message,

Available on crate feature ASFoundation and macOS only.

Return the ASPresentationAnchor in the closest proximity to where a user interacted with your app to trigger authentication. If starting an ASWebAuthenticationSession on first launch, use the application’s main window.

Parameter session: The session requesting a presentation anchor.

Returns: The ASPresentationAnchor most closely associated with the UI used to trigger authentication.

Trait Implementations§

Source§

impl ProtocolType for dyn ASWebAuthenticationPresentationContextProviding

Source§

const NAME: &'static str = "ASWebAuthenticationPresentationContextProviding"

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 ASWebAuthenticationPresentationContextProviding

Implementations on Foreign Types§

Source§

impl<T> ASWebAuthenticationPresentationContextProviding for ProtocolObject<T>

Implementors§