Classes
The following classes are available globally.
-
@interface Vivocha : NSObjectThis is the main class and main entry point of the Vivocha SDK. It lives as a singleton for the entire lifetime of the application.
To start Vivocha, use the
See morestartWithAccountID:andServID:or its variant,startAutomatic:withAccountID:andServID:, with the explicitautomaticparameter. -
@interface VivochaAgent : NSObjectThe VivochaAgent object describes the Agent that accepted the contact.
See more -
@interface VivochaAttachment : VivochaChatObjectThis class represent an attachment sent to/received from the Agent during a contact.
See more -
@interface VivochaCapabilities : NSObjectThis class defines what features the current device supports, defined by the current Vivocha configuration and built-in sensors. It is a container of VivochaCapabilitiesValue objects.
See more -
@interface VivochaCapabilitiesKeyPair : NSObjectRepresents a Capability key pair (key as NSString, value as BOOL)
See more -
@interface VivochaCapabilitiesValue : NSObjectRepresents a Capability value
See more -
@interface VivochaChatAck : NSObject <NSCoding>Represents an ack for a Vivocha message during a chat contact
See more -
@interface VivochaChatObject : NSObject <NSCoding>Vivocha base object for chat contacts. VivochaMessage and VivochaChatPresence are subclasses of this one.
See more -
@interface VivochaChatPresence : VivochaChatObjectThis object represents the join/leave of an Agent during a contact.
See more -
@interface VivochaContact : VivochaContactInfoThis object represent the actual contact.
See more -
@interface VivochaContactTranscript : NSObjectThe object represents the transcript for a contact.
See more -
@interface VivochaConversation : NSObjectThe object represents a conversation. It contains information about the current contact, if available, and the previous contacts included in the same conversation.
See more -
@interface VivochaCustomAction : NSObjectRepresents a custom action that can be implemented by the developer to send/receive events from custom apps in the Agent Desktop.
Usage example:
See more//Send a custom action VivochaCustomAction *userLoggedIn = [VivochaCustomAction actionWithName:@"userLoggedIn" andJSON:@{ @"userID" : [MyApp getUserId], @"eventKind" : @"login", }]; [[Vivocha contact] sendCustomAction:userLoggedIn]; //Receive an action [[Vivocha manager] bindAction:@"balanceUpdated" withBlock:^(VivochaCustomAction *action) { //The balance was updated from the agent, let's refresh the APP UI NSDictionary *payload = [action actionData]; NSString *balanceValue = [payload objectForKey:@"balance"]; [MyViewController updateBalanceUIWithValue:balanceValue]; }]; -
@interface VivochaDataCollectionField : NSObjectRepresents a field in the data collection
See more -
@interface VivochaDataCollectionForm : NSObjectRepresents a form in the data collection
See more -
@interface VivochaDataCollection : NSObjectRepresent the data collection
See more -
@interface VivochaLocalization : NSObjectRepresents a set of translations for a given language
Usage example:
See moreVivochaLocalization *en = [VivochaLocalization localizationWithLanguage:@"en"]; //Changes the "Agent" string to "Representative" [en setTranslation:@"Representative" forKey:VivochaSDK_String_Agent]; [Vivocha addLocalization:en]; -
@interface VivochaMedia : NSObjectDefines the current status of the media during a contact.
See more -
@interface VivochaMediaCallback : NSObjectThis class defines all the callbacks avaible to be notified about media changes
See more -
@interface VivochaMessage : VivochaChatObjectRepresents a Vivocha message during a chat contact
See more -
@interface VivochaNotification : NSObjectPayload for a NSNotification sent by the VivochaSDK
See more -
@interface VivochaPage : NSObjectRepresents an area of the App where the user can access. It is useful to track the user path inside the App before he requests a contact.
See more -
@interface VivochaTheme : NSObjectThe VivochaTheme class defines the colors and options used by the SDK UI.
Usage Example:
See moreVivochaTheme *theme = [VivochaTheme new]; theme.chatBubbleOutgoingColor = [UIColor lightGrayColor]; theme.chatBubbleOutgoingTextColor = [UIColor blackColor]; [Vivocha setTheme:theme];