SOSOnboardingBaseViewController
@interface SOSOnboardingBaseViewController
: UIViewController <SOSOnboardingViewController>
The SOSOnboardingBaseViewController
serves as the base controller which manages interactions between the UI and SOS backend
for the onboarding phase of SOS.
If you wish to replace the onboarding UI, your class must implement this base class.
All method overrides require a call back to super for SOS to function properly.
-
Action performed when confirming a start session.
Warning
This method is used to communicate between the UI API and the SOS backend. If you wish to override this method you can do so safely; however you must call this method on
super
. Failure to do so will result in undefined and likely broken behavior from SOS.Declaration
Objective-C
- (void)handleStartSession:(nonnull id)sender;
Swift
@IBAction func handleStartSession(_ sender: Any)
Parameters
sender
The object which triggered the action.
-
Action performed when cancelling a session.
Warning
This method is used to communicate between the UI API and the SOS backend. If you wish to override this method you can do so safely; however you must call this method on
super
. Failure to do so will result in undefined and likely broken behavior from SOS.Declaration
Objective-C
- (void)handleCancel:(nonnull id)sender;
Swift
@IBAction func handleCancel(_ sender: Any)
Parameters
sender
The object which triggered the action.