RawFeedbackEvent

public class RawFeedbackEvent

Raw representation of feedback event. Can be stored and sent later. Full access to the event content via attributes field. Be careful with keys!

  • Event all data.

    Declaration

    Swift

    public var attributes: [String : Any]
  • Feedback reason. Modifies attributes field

    Declaration

    Swift

    public var reason: String? { get set }
  • Feedback text. Modifies attributes field

    Declaration

    Swift

    public var text: String? { get set }
  • Undocumented

    Declaration

    Swift

    public subscript(key: String) -> Any { get set }
  • Build RawFeedbackEvent with provided attributes dictionary. Does not apply any content check.

    Declaration

    Swift

    public init(attributes: [String : Any])

    Parameters

    attributes

    event field

  • Build RawFeedbackEvent with provided attributes dictionary.

    Declaration

    Swift

    public convenience init?(json: Data)

    Parameters

    json

    jsonObject as [String: Any]

  • JSON data build from attributes field.

    Declaration

    Swift

    public func json() -> Data?

    Return Value

    Returns JSON data