Action Button Customization
Customize the action buttons used throughout the interface with these classes.
-
The SCSActionManager class controls the handling and display of the action buttons that are overlaid on the various Snap-ins SDK interface elements to allow the user to initiate various actions, such as:
- Creating a new case.
- Initiating a knowledge article search.
- Starting a Live Agent chat session.
- Initiating an SOS support session.
These built-in actions are managed through the action manager class, and can be customized through the use of it and the associated protocols available. Furthermore, the
SCSActionManagerDelegate
protocol can be used to interact with, and customize, the handling of these actions.Each action button that is displayed is represented by
See moreUIView
instances that conform to theSCSActionItem
protocol. Each of these items are displayed within aUIViewController
instance that conforms to theSCSActionItemController
protocol. Built-in defaults are provided that implement these behaviors, and can be used to extend or customize functionality. Furthermore, the default action button is exposed as theSCSActionButton
class, and can be used to introduce additional actions along side the built-in defaults, while still maintaining the same visual appearance.Declaration
Objective-C
@interface SCSActionManager : NSObject
Swift
class SCSActionManager : NSObject
-
Delegate protocol used by the
See moreSCSActionManager
to customize the appearance and functionality of the action manager.Declaration
Objective-C
@protocol SCSActionManagerDelegate <NSObject>
Swift
protocol SCSActionManagerDelegate : NSObjectProtocol
-
Protocol defining the type of views capable of being added to an
SCSActionItemContainer
object.See
SCSActionManager
Declaration
Objective-C
@protocol SCSActionItem <NSObject>
Swift
protocol SCSActionItem : NSObjectProtocol
-
Default
See moreSCSActionItem
instance that provides the circular button for the default experience.Declaration
Objective-C
@interface SCSActionButton : UIButton <SCSActionItem>
Swift
class SCSActionButton : UIButton, SCSActionItem
-
Protocol defining a type of
UIViewController
that can be used to displaySCSActionItem
objects.See
SCSActionManager
Declaration
Objective-C
@protocol SCSActionItemContainer <NSObject>
Swift
protocol SCSActionItemContainer : NSObjectProtocol
-
Default sort index values for the built-in action items.
See moreDeclaration
Objective-C
enum SCSActionItemDefaultSort : NSUInteger {}
Swift
enum SCSActionItemDefaultSort : UInt
-
Enumerated list of all configurable action types.
Declaration
Objective-C
typedef NSString *SCSAction
Swift
struct SCSAction : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable