iOS SDK Version

FBSDKAppLinkReturnToRefererController

@interfaceFBSDKAppLinkReturnToRefererController:NSObject<FBSDKAppLinkReturnToRefererViewDelegate>
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.
  • The delegate that will be notified when the user navigates back to the referer.

    Declaration

    Objective-C
    @property(nonatomic,weak,readwrite,nullable)id<FBSDKAppLinkReturnToRefererControllerDelegate>delegate;
    Swift
    weakvardelegate:AppLinkReturnToRefererControllerDelegate?{getset}
  • The FBSDKAppLinkReturnToRefererView this controller is controlling.

    Declaration

    Objective-C
    @property(nonatomic,strong,readwrite)FBSDKAppLinkReturnToRefererView*_Nonnullview;
    Swift
    varview:FBAppLinkReturnToRefererView{getset}
  • 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).

    Declaration

    Objective-C
    -(nonnullinstancetype)init;
    Swift
    init()
  • Initializes a controller suitable for controlling a FBSDKAppLinkReturnToRefererView that is to be displayed displayed above the navigation bar.

    Declaration

    Objective-C
    -(nonnullinstancetype)initForDisplayAboveNavController:(nonnullUINavigationController*)navController;
    Swift
    convenienceinit(navController:UINavigationController)

    Parameters

    navController
    The Navigation Controller for display above
  • Removes the view entirely from the navigation controller it is currently displayed in.

    Declaration

    Objective-C
    -(void)removeFromNavController;
    Swift
    funcremoveFromNavController()
  • Shows the FBSDKAppLinkReturnToRefererView with the specified referer information. If nil or missing data, the view will not be displayed.

    Declaration

    Objective-C
    -(void)showViewForRefererAppLink:(nonnullFBSDKAppLink*)refererAppLink;
    Swift
    funcshowView(forRefererrefererAppLink:AppLink)
  • 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.

    Declaration

    Objective-C
    -(void)showViewForRefererURL:(nonnullNSURL*)url;
    Swift
    funcshowView(forRefererurl:URL)
  • Closes the view, possibly animating it.

    Declaration

    Objective-C
    -(void)closeViewAnimated:(BOOL)animated;
    Swift
    funccloseView(animated:Bool)