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 returnsNO
then the SOS backend will directly proceed to the connection phase.Return
NO
if you do not wish to display a pre-connection onboarding screen for SOS sessions. If this method returnsNO
your class will not receive a-[SOSOnboardingViewController connectionPromptRequested]
call.Declaration
Objective-C
- (BOOL)willHandleConnectionPrompt;
Swift
func willHandleConnectionPrompt() -> Bool
Return Value
Whether this view controller will handle a connection prompt.
-
This method will be executed on the
SOSOnboardingViewController
when 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()