BFURL Class Reference
Inherits from | NSObject |
Declared in | BFURL.h |
Overview
Provides a set of utilities for working with NSURLs, such as parsing of query parameters and handling for App Link requests.
Tasks
-
+ URLWithURL:
-
+ URLWithInboundURL:sourceApplication:
-
targetURL
property -
targetQueryParameters
property -
appLinkData
property -
appLinkExtras
property -
appLinkReferer
property -
inputURL
property -
inputQueryParameters
property
Properties
appLinkData
If this link target is an App Link, this is the data found in al_applink_data. Otherwise, it is nil.
@property (nonatomic, strong, readonly) NSDictionary *appLinkData
Discussion
If this link target is an App Link, this is the data found in al_applink_data. Otherwise, it is nil.
Declared In
BFURL.h
appLinkExtras
If this link target is an App Link, this is the data found in extras.
@property (nonatomic, strong, readonly) NSDictionary *appLinkExtras
Discussion
If this link target is an App Link, this is the data found in extras.
Declared In
BFURL.h
appLinkReferer
The App Link indicating how to navigate back to the referer app, if any.
@property (nonatomic, strong, readonly) BFAppLink *appLinkReferer
Discussion
The App Link indicating how to navigate back to the referer app, if any.
Declared In
BFURL.h
inputQueryParameters
The query parameters of the inputURL, parsed into an NSDictionary.
@property (nonatomic, strong, readonly) NSDictionary *inputQueryParameters
Discussion
The query parameters of the inputURL, parsed into an NSDictionary.
Declared In
BFURL.h
inputURL
The URL that was used to create this BFURL.
@property (nonatomic, strong, readonly) NSURL *inputURL
Discussion
The URL that was used to create this BFURL.
Declared In
BFURL.h
targetQueryParameters
Gets the query parameters for the target, parsed into an NSDictionary.
@property (nonatomic, strong, readonly) NSDictionary *targetQueryParameters
Discussion
Gets the query parameters for the target, parsed into an NSDictionary.
Declared In
BFURL.h
targetURL
Gets the target URL. If the link is an App Link, this is the target of the App Link. Otherwise, it is the url that created the target.
@property (nonatomic, strong, readonly) NSURL *targetURL
Discussion
Gets the target URL. If the link is an App Link, this is the target of the App Link. Otherwise, it is the url that created the target.
Declared In
BFURL.h
Class Methods
URLWithInboundURL:sourceApplication:
Creates a link target from a raw URL received from an external application. This is typically called from the app delegate’s application:openURL:sourceApplication:annotation: and will post the BFAppLinkNavigateInEventName measurement event.
+ (BFURL *)URLWithInboundURL:(id)url sourceApplication:(id)sourceApplication
Parameters
- url
The instance of
NSURL
to create BFURL from.
- sourceApplication
the bundle ID of the app that is requesting your app to open the URL. The same sourceApplication in application:openURL:sourceApplication:annotation:
Discussion
Creates a link target from a raw URL received from an external application. This is typically called from the app delegate’s application:openURL:sourceApplication:annotation: and will post the BFAppLinkNavigateInEventName measurement event.
Declared In
BFURL.h
URLWithURL:
Creates a link target from a raw URL. On success, this posts the BFAppLinkParseEventName measurement event. If you are constructing the BFURL within your application delegate’s application:openURL:sourceApplication:annotation:, you should instead use URLWithInboundURL:sourceApplication: to support better BFMeasurementEvent notifications
+ (BFURL *)URLWithURL:(id)url
Parameters
- url
The instance of
NSURL
to create BFURL from.
Discussion
Creates a link target from a raw URL. On success, this posts the BFAppLinkParseEventName measurement event. If you are constructing the BFURL within your application delegate’s application:openURL:sourceApplication:annotation:, you should instead use URLWithInboundURL:sourceApplication: to support better BFMeasurementEvent notifications
Declared In
BFURL.h