From 49b8839fda3439edc31581527e84036e58f55f0f Mon Sep 17 00:00:00 2001 From: lpw <pengwei.li@gamehollywood.com> Date: Tue, 26 Jan 2021 09:43:00 +0800 Subject: [PATCH] 3.9.2 --- frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h | 44 +++++++++++++++++++++++++------------------- 1 files changed, 25 insertions(+), 19 deletions(-) diff --git a/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h b/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h index 5f99484..4905ca7 100644 --- a/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h +++ b/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h @@ -16,6 +16,10 @@ // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#import "TargetConditionals.h" + +#if !TARGET_OS_TV + #import <Foundation/Foundation.h> #import "FBSDKAppLink.h" @@ -23,15 +27,15 @@ NS_ASSUME_NONNULL_BEGIN -/*! +/** The result of calling navigate on a FBSDKAppLinkNavigation */ typedef NS_ENUM(NSInteger, FBSDKAppLinkNavigationType) { - /*! Indicates that the navigation failed and no app was opened */ + /** Indicates that the navigation failed and no app was opened */ FBSDKAppLinkNavigationTypeFailure, - /*! Indicates that the navigation succeeded by opening the URL in the browser */ + /** Indicates that the navigation succeeded by opening the URL in the browser */ FBSDKAppLinkNavigationTypeBrowser, - /*! Indicates that the navigation succeeded by opening the URL in an app on the device */ + /** Indicates that the navigation succeeded by opening the URL in an app on the device */ FBSDKAppLinkNavigationTypeApp } NS_SWIFT_NAME(AppLinkNavigation.Type); @@ -44,7 +48,7 @@ typedef void (^FBSDKAppLinkNavigationBlock)(FBSDKAppLinkNavigationType navType, NSError * _Nullable error) NS_SWIFT_NAME(AppLinkNavigationBlock); -/*! +/** Represents a pending request to navigate to an App Link. Most developers will simply use navigateToURLInBackground: to open a URL, but developers can build custom requests with additional navigation and app data attached to them by @@ -57,43 +61,43 @@ - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; -/*! +/** The default resolver to be used for App Link resolution. If the developer has not set one explicitly, a basic, built-in FBSDKWebViewAppLinkResolver will be used. */ @property (class, nonatomic, strong) id<FBSDKAppLinkResolving> defaultResolver NS_SWIFT_NAME(default); -/*! +/** The extras for the AppLinkNavigation. This will generally contain application-specific data that should be passed along with the request, such as advertiser or affiliate IDs or other such metadata relevant on this device. */ @property (nonatomic, copy, readonly) NSDictionary<NSString *, id> *extras; -/*! +/** The al_applink_data for the AppLinkNavigation. This will generally contain data common to navigation attempts such as back-links, user agents, and other information that may be used in routing and handling an App Link request. */ @property (nonatomic, copy, readonly) NSDictionary<NSString *, id> *appLinkData; -/*! The AppLink to navigate to */ +/** The AppLink to navigate to */ @property (nonatomic, strong, readonly) FBSDKAppLink *appLink; -/*! +/** Return navigation type for current instance. No-side-effect version of navigate: */ @property (nonatomic, readonly) FBSDKAppLinkNavigationType navigationType; -/*! Creates an AppLinkNavigation with the given link, extras, and App Link data */ +/** Creates an AppLinkNavigation with the given link, extras, and App Link data */ + (instancetype)navigationWithAppLink:(FBSDKAppLink *)appLink extras:(NSDictionary<NSString *, id> *)extras appLinkData:(NSDictionary<NSString *, id> *)appLinkData NS_SWIFT_NAME(init(appLink:extras:appLinkData:)); -/*! +/** Creates an NSDictionary with the correct format for iOS callback URLs, to be used as 'appLinkData' argument in the call to navigationWithAppLink:extras:appLinkData: */ @@ -101,23 +105,23 @@ url:(NSString *)url NS_SWIFT_NAME(callbackAppLinkData(forApp:url:)); -/*! Performs the navigation */ +/** Performs the navigation */ - (FBSDKAppLinkNavigationType)navigate:(NSError **)error __attribute__((swift_error(nonnull_error))); -/*! Returns a FBSDKAppLink for the given URL */ +/** Returns a FBSDKAppLink for the given URL */ + (void)resolveAppLink:(NSURL *)destination handler:(FBSDKAppLinkBlock)handler; -/*! Returns a FBSDKAppLink for the given URL using the given App Link resolution strategy */ +/** Returns a FBSDKAppLink for the given URL using the given App Link resolution strategy */ + (void)resolveAppLink:(NSURL *)destination resolver:(id<FBSDKAppLinkResolving>)resolver handler:(FBSDKAppLinkBlock)handler; -/*! Navigates to a FBSDKAppLink and returns whether it opened in-app or in-browser */ +/** Navigates to a FBSDKAppLink and returns whether it opened in-app or in-browser */ + (FBSDKAppLinkNavigationType)navigateToAppLink:(FBSDKAppLink *)link error:(NSError **)error __attribute__((swift_error(nonnull_error))); -/*! +/** Returns a FBSDKAppLinkNavigationType based on a FBSDKAppLink. It's essentially a no-side-effect version of navigateToAppLink:error:, allowing apps to determine flow based on the link type (e.g. open an @@ -125,10 +129,10 @@ */ + (FBSDKAppLinkNavigationType)navigationTypeForLink:(FBSDKAppLink *)link; -/*! Navigates to a URL (an asynchronous action) and returns a FBSDKNavigationType */ +/** Navigates to a URL (an asynchronous action) and returns a FBSDKNavigationType */ + (void)navigateToURL:(NSURL *)destination handler:(FBSDKAppLinkNavigationBlock)handler; -/*! +/** Navigates to a URL (an asynchronous action) using the given App Link resolution strategy and returns a FBSDKNavigationType */ @@ -139,3 +143,5 @@ @end NS_ASSUME_NONNULL_END + +#endif -- Gitblit v1.8.0