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
notConnected
if an attempt was made to use a method without connecting first. Make sure you call theconnect
method first.Throws
customerAssociationFailure
if the SDK could not get customer identity and it may not have been set.Throws
invalidData
when 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]) throws
Parameters
customFields
The custom fields to be saved.