Interface ASWebAuthenticationPresentationContextProviding
-
public interface ASWebAuthenticationPresentationContextProvidingProvides context to target where in an application's UI the authorization view should be shown.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UIWindowpresentationAnchorForWebAuthenticationSession(ASWebAuthenticationSession session)Return the ASPresentationAnchor in the closest proximity to where a user interacted with your app to trigger authentication.
-
-
-
Method Detail
-
presentationAnchorForWebAuthenticationSession
UIWindow presentationAnchorForWebAuthenticationSession(ASWebAuthenticationSession session)
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.- Parameters:
session- The session requesting a presentation anchor.- Returns:
- The ASPresentationAnchor most closely associated with the UI used to trigger authentication.
-
-