| | |
| | | @class FBSDKAppLink; |
| | | @class FBSDKAppLinkReturnToRefererController; |
| | | |
| | | /*! |
| | | /** |
| | | Protocol that a class can implement in order to be notified when the user has navigated back |
| | | to the referer of an App Link. |
| | | */ |
| | |
| | | |
| | | @optional |
| | | |
| | | /*! Called when the user has tapped to navigate, but before the navigation has been performed. */ |
| | | /** Called when the user has tapped to navigate, but before the navigation has been performed. */ |
| | | - (void)returnToRefererController:(FBSDKAppLinkReturnToRefererController *)controller |
| | | willNavigateToAppLink:(FBSDKAppLink *)appLink |
| | | NS_SWIFT_NAME(return(to:willNavigateTo:)); |
| | | |
| | | /*! Called after the navigation has been attempted, with an indication of whether the referer |
| | | /** Called after the navigation has been attempted, with an indication of whether the referer |
| | | app link was successfully opened. */ |
| | | - (void)returnToRefererController:(FBSDKAppLinkReturnToRefererController *)controller |
| | | didNavigateToAppLink:(FBSDKAppLink *)url |
| | |
| | | |
| | | @end |
| | | |
| | | /*! |
| | | /** |
| | | A controller class that implements default behavior for a FBSDKAppLinkReturnToRefererView, including |
| | | the ability to display the view above the navigation bar for navigation-based apps. |
| | | */ |
| | |
| | | NS_SWIFT_NAME(AppLinkReturnToRefererController) |
| | | @interface FBSDKAppLinkReturnToRefererController : NSObject <FBSDKAppLinkReturnToRefererViewDelegate> |
| | | |
| | | /*! |
| | | /** |
| | | The delegate that will be notified when the user navigates back to the referer. |
| | | */ |
| | | @property (nonatomic, weak, nullable) id<FBSDKAppLinkReturnToRefererControllerDelegate> delegate; |
| | | |
| | | /*! |
| | | /** |
| | | The FBSDKAppLinkReturnToRefererView this controller is controlling. |
| | | */ |
| | | @property (nonatomic, strong) FBSDKAppLinkReturnToRefererView *view; |
| | | |
| | | /*! |
| | | /** |
| | | Initializes a controller suitable for controlling a FBSDKAppLinkReturnToRefererView that is to be displayed |
| | | contained within another UIView (i.e., not displayed above the navigation bar). |
| | | */ |
| | | - (instancetype)init NS_DESIGNATED_INITIALIZER; |
| | | |
| | | /*! |
| | | /** |
| | | Initializes a controller suitable for controlling a FBSDKAppLinkReturnToRefererView that is to be displayed |
| | | displayed above the navigation bar. |
| | | |
| | |
| | | - (instancetype)initForDisplayAboveNavController:(UINavigationController *)navController |
| | | NS_SWIFT_NAME(init(navController:)); |
| | | |
| | | /*! |
| | | /** |
| | | Removes the view entirely from the navigation controller it is currently displayed in. |
| | | */ |
| | | - (void)removeFromNavController; |
| | | |
| | | /*! |
| | | /** |
| | | Shows the FBSDKAppLinkReturnToRefererView with the specified referer information. If nil or missing data, |
| | | the view will not be displayed. */ |
| | | - (void)showViewForRefererAppLink:(FBSDKAppLink *)refererAppLink |
| | | NS_SWIFT_NAME(showView(forReferer:)); |
| | | |
| | | /*! |
| | | /** |
| | | Shows the FBSDKAppLinkReturnToRefererView with referer information extracted from the specified URL. |
| | | If nil or missing referer App Link data, the view will not be displayed. */ |
| | | - (void)showViewForRefererURL:(NSURL *)url |
| | | NS_SWIFT_NAME(showView(forReferer:)); |
| | | |
| | | /*! |
| | | /** |
| | | Closes the view, possibly animating it. |
| | | */ |
| | | - (void)closeViewAnimated:(BOOL)animated; |