SOSSessionManager

@interface SOSSessionManager : NSObject

The SOSSessionManager class is the main interface to the SOS framework.

This object manages the flow of SOS sessions throughout the lifetime of the app. Configuration and customization of the SOS framework is handled through the public properties on the SOSSessionManager instance.

SOSSessionManager conforms to a multicast delegate model for messaging. Any class which implements the SOSDelegate protocol can be added to a list of delegates to receive messages asynchronously.

To get an instance of this class, use the SCServiceCloud.sos property on +[SCServiceCloud sharedInstance].

  • Adds an instance of an NSObject implementing the SOSDelegate protocol to the list of delegates to notify.

    Declaration

    Objective-C

    - (void)addDelegate:(id<SOSDelegate>)delegate;

    Swift

    func add(_ delegate: SOSDelegate!)

    Parameters

    delegate

    NSObject instance to add.

  • Removes an instance of an NSObject implementing the SOSDelegate protocol to the list of delegates to notify.

    Declaration

    Objective-C

    - (void)removeDelegate:(id<SOSDelegate>)delegate;

    Swift

    func remove(_ delegate: SOSDelegate!)

    Parameters

    delegate

    NSObject instance to remove.

  • Returns the NSString containing the current version of the framework.

    Declaration

    Objective-C

    + (NSString *)frameworkVersion;

    Swift

    class func frameworkVersion() -> String!

    Return Value

    An NSString containing the framework version.