SOSOnboardingViewController
@protocol SOSOnboardingViewController <NSObject>
Protocol which defines properties and methods which are required for all view controllers which will accommodate the role for onboarding in SOS.
-
This method determines whether this view controller will handle a connection request prompt. Default is
YES. If this method returnsNOthen the SOS backend will directly proceed to the connection phase.Return
NOif you do not wish to display a pre-connection onboarding screen for SOS sessions. If this method returnsNOyour class will not receive a-[SOSOnboardingViewController connectionPromptRequested]call.Declaration
Objective-C
- (BOOL)willHandleConnectionPrompt;Swift
func willHandleConnectionPrompt() -> BoolReturn Value
Whether this view controller will handle a connection prompt.
-
This method will be executed on the
SOSOnboardingViewControllerwhen the SOS backend has requested a user response. At this point it is appropriate to display a UI element which will allow a user to confirm or cancel.The SOS backend will wait until it receives an appropriate response. Your UI element must trigger either:
-[SOSOnboardingBaseViewController handleStartSession:]or-[SOSOnboardingBaseViewController handleCancel:].Declaration
Objective-C
- (void)connectionPromptRequested;Swift
func connectionPromptRequested()
Install in Dash
SOSOnboardingViewController Protocol Reference