Classes

The following classes are available globally.

  • @discussion The SKTConversation class provides an interface to interact with the current user’s conversation.

    To obtain an instance, use [Smooch conversation]. +initWithSettings:completionHandler: must have been called prior to retrieving the shared conversation object.

    To send a message, use -sendMessage: with an SKTMessage object

    Example:

    [[Smooch conversation] sendMessage:[[SKTMessage alloc] initWithText:@"Hello World!"]];

    A notification will be fired indicating the success or failure of the message. To subscribe to these notifications, use NSNotificationCenter.

    Example:

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(messageUploaded:) name:SKTMessageUploadCompletedNotification object:nil];

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(messageFailed:) name:SKTMessageUploadFailedNotification object:nil];

    See

    SKTMessage

    See

    Smooch
    See more

    Declaration

    Objective-C

    @interface SKTConversation : NSObject <NSSecureCoding>

    Swift

    class SKTConversation : NSObject, NSSecureCoding
  • An activity related to a SKTConversation

    See more

    Declaration

    Objective-C

    @interface SKTConversationActivity : NSObject

    Swift

    class SKTConversationActivity : NSObject
  • A class representing a message.

    See more

    Declaration

    Objective-C

    @interface SKTMessage : NSObject <NSSecureCoding>

    Swift

    class SKTMessage : NSObject, NSSecureCoding
  • A class containing coordinate data.

    See more

    Declaration

    Objective-C

    @interface SKTCoordinates : NSObject

    Swift

    class SKTCoordinates : NSObject
  • @abstract Settings to adjust a carousel layout

    See more

    Declaration

    Objective-C

    @interface SKTDisplaySettings : NSObject

    Swift

    class SKTDisplaySettings : NSObject
  • @abstract An action associated to a particular SKTMessage.

    Actions are rendered as buttons in the Smooch conversation screen, and may be of type SKTMessageActionTypeLink, SKTMessageActionTypeBuy or SKTMessageActionTypePostback.

    See

    SKTMessage
    See more

    Declaration

    Objective-C

    @interface SKTMessageAction : NSObject

    Swift

    class SKTMessageAction : NSObject
  • A class representing a message item.

    See more

    Declaration

    Objective-C

    @interface SKTMessageItem : NSObject

    Swift

    class SKTMessageItem : NSObject
  • A class representing a conversation participant.

    See more

    Declaration

    Objective-C

    @interface SKTParticipant : NSObject <NSSecureCoding>

    Swift

    class SKTParticipant : NSObject, NSSecureCoding
  • A class representing a user.

    See more

    Declaration

    Objective-C

    @interface SKTUser : NSObject

    Swift

    class SKTUser : NSObject
  • A class that exposes options to customise the SDK.

    See more

    Declaration

    Objective-C

    @interface SKTSettings : NSObject

    Swift

    class SKTSettings : NSObject
  • @abstract The core class used for interacting with Smooch. Provides methods to initialize, configure, and interact with the library.

    See more

    Declaration

    Objective-C

    @interface Smooch : NSObject

    Swift

    class Smooch : NSObject