AppAuth
OIDExternalUserAgentIOSCustomBrowser.h
Go to the documentation of this file.
1 
19 #import <Foundation/Foundation.h>
20 
21 #import "OIDExternalUserAgent.h"
22 
23 NS_ASSUME_NONNULL_BEGIN
24 
30 typedef NSURL *_Nullable (^OIDCustomBrowserURLTransformation)(NSURL *_Nullable requestURL);
31 
39 
43 
46 @property(nonatomic, readonly, nullable) NSString *canOpenURLScheme;
47 
50 @property(nonatomic, readonly, nullable) NSURL *appStoreURL;
51 
54 + (instancetype)CustomBrowserChrome;
55 
58 + (instancetype)CustomBrowserFirefox;
59 
62 + (instancetype)CustomBrowserOpera;
63 
66 + (instancetype)CustomBrowserSafari;
67 
72  URLTransformationSchemeSubstitutionHTTPS:(NSString *)browserSchemeHTTPS
73  HTTP:(nullable NSString *)browserSchemeHTTP;
74 
78 + (OIDCustomBrowserURLTransformation) URLTransformationSchemeConcatPrefix:(NSString*)URLprefix;
79 
83 - (nonnull instancetype)init NS_UNAVAILABLE;
84 
88 - (nullable instancetype)initWithURLTransformation:(OIDCustomBrowserURLTransformation)URLTransformation;
89 
99 - (nullable instancetype)initWithURLTransformation:(OIDCustomBrowserURLTransformation)URLTransformation
100  canOpenURLScheme:(nullable NSString *)canOpenURLScheme
101  appStoreURL:(nullable NSURL *)appStoreURL
102  NS_DESIGNATED_INITIALIZER;
103 
104 @end
105 
106 NS_ASSUME_NONNULL_END
OIDExternalUserAgent.h
AppAuth iOS SDK.
OIDExternalUserAgentIOSCustomBrowser
An implementation of the OIDExternalUserAgent protocol for iOS that uses a custom browser (i....
Definition: OIDExternalUserAgentIOSCustomBrowser.h:38
OIDExternalUserAgentIOSCustomBrowser::URLTransformation
OIDCustomBrowserURLTransformation URLTransformation
URL transformation block for the browser.
Definition: OIDExternalUserAgentIOSCustomBrowser.h:42
+[OIDExternalUserAgentIOSCustomBrowser CustomBrowserOpera]
instancetype CustomBrowserOpera()
An instance of OIDExternalUserAgentIOSCustomBrowser for Opera.
OIDExternalUserAgentIOSCustomBrowser::appStoreURL
NSURL * appStoreURL
URL of the browser's App Store listing.
Definition: OIDExternalUserAgentIOSCustomBrowser.h:50
+[OIDExternalUserAgentIOSCustomBrowser CustomBrowserChrome]
instancetype CustomBrowserChrome()
An instance of OIDExternalUserAgentIOSCustomBrowser for Chrome.
OIDCustomBrowserURLTransformation
NSURL *_Nullable(^ OIDCustomBrowserURLTransformation)(NSURL *_Nullable requestURL)
A block that transforms a regular http/https URL into one that will open in an alternative browser.
Definition: OIDExternalUserAgentIOSCustomBrowser.h:30
OIDExternalUserAgentIOSCustomBrowser::canOpenURLScheme
NSString * canOpenURLScheme
URL Scheme used to test for whether the browser is installed.
Definition: OIDExternalUserAgentIOSCustomBrowser.h:46
+[OIDExternalUserAgentIOSCustomBrowser CustomBrowserSafari]
instancetype CustomBrowserSafari()
An instance of OIDExternalUserAgentIOSCustomBrowser for Safari.
+[OIDExternalUserAgentIOSCustomBrowser CustomBrowserFirefox]
instancetype CustomBrowserFirefox()
An instance of OIDExternalUserAgentIOSCustomBrowser for Firefox.
OIDExternalUserAgent-p
An external user-agent UI that presents displays the request to the user. Clients may provide custom ...
Definition: OIDExternalUserAgent.h:31