VisitorInfo

@objc(ZDKVisitorInfo)
public final class VisitorInfo : NSObject, InitialStateProtocol, DataConvertible, ReflectedStringConvertible

Visitor information that can be seen in the Chat dashboard Contains name, email, and phoneNumber

Note

email is parsed and should be in correct email format. phoneNumber is not parsed.
  • Empty chat state

    Declaration

    Swift

    @objc
    public static let initial: VisitorInfo
  • Name

    Declaration

    Swift

    @objc
    public let name: String
  • E-mail

    Declaration

    Swift

    @objc
    public let email: String
  • Phone number

    Declaration

    Swift

    @objc
    public let phoneNumber: String
  • Initializer to update the visitor’s information.

    Declaration

    Swift

    @objc
    public convenience init(name: String = "", email: String = "", phoneNumber: String = "")

    Parameters

    name

    Name

    email

    E-mail

    phoneNumber

    Phone number

  • Returns a Boolean value that indicates whether the receiver and a given object are equal.

    Declaration

    Swift

    @objc
    override public func isEqual(_ object: Any?) -> Bool

    Parameters

    object

    the object to compare against