SBSDKUIViewControllerDelegate
@protocol SBSDKUIViewControllerDelegate <NSObject>
General delegate protocol for SBSDKUViewController-based classes.
-
Informs the delegate, that viewController wants to cancel. If you implement this method and return NO, you are responsible for dismissing the view controller.
Declaration
Objective-C
- (BOOL)viewControllerShouldCancel: (SBSDKUIViewController *_Nonnull)viewController;
Swift
optional func viewControllerShouldCancel(_ viewController: SBSDKUIViewController) -> Bool
Parameters
viewController
The SBSDKUIViewController instance that wants to cancel.
Return Value
YES, if you want to automatically dismiss the view controller. Other delegate methods are called. If you return NO, you are responsible for dismissing the view controller and specific delegate calls.
-
Informs the delegate, that viewController wants to finish. If you implement this method and return NO, you are responsible for dismissing the view controller.
Declaration
Objective-C
- (BOOL)viewControllerShouldFinish: (SBSDKUIViewController *_Nonnull)viewController;
Swift
optional func viewControllerShouldFinish(_ viewController: SBSDKUIViewController) -> Bool
Parameters
viewController
The SBSDKUIViewController instance that wants to finish.
Return Value
YES, if you want to automatically dismiss the view controller. Other delegate methods are called. If you return NO, you are responsible for dismissing the view controller and specific delegate calls.