CustomerCustomFieldsProvider
public protocol CustomerCustomFieldsProvider
The provider for customer chat fields related properties and methods.
-
Custom fields for all chat threads.
Declaration
Swift
func get() -> [String : String]Return Value
Array of ustom fields for a customer.
-
Sets custom fields to be saved for a customer (persists across all threads involving the customer).
Throws
notConnectedif an attempt was made to use a method without connecting first. Make sure you call theconnectmethod first.Throws
customerAssociationFailureif the SDK could not get customer identity and it may not have been set.Throws
invalidDatawhen the Data object cannot be successfully converted to a valid UTF-8 stringThrows
EncodingError.invalidValue(_:_:)if the given value is invalid in the current context for this format.Declaration
Swift
func set(_ customFields: [String : String]) throwsParameters
customFieldsThe custom fields to be saved.
View on GitHub