Event
public struct Event : Codable
イベントを表現するタイプです。
-
イベント名
イベント名には半角小文字英字 ( a-z )、半角数字 ( 0-9 ) と下線 ( _ ) のみ使用できます。
なお下線 ( _ ) で始まるイベント名はシステム上のイベントと干渉するため使用できません。Declaration
Swift
public var eventName: EventName -
イベントに紐付けるカスタムオブジェクト
フィールド名の制限
- ドット (
.) を含む名称は使用できません。 $で始まる名前は使用できません。- フィールド名として
_sourceanyavgcachecountcount_setsdatef_tfirstkeysl_tlastlrusmaxminoprevsetssizespansumtypevを指定することはできません。
値の制限
送信可能なデータ型は、下記の通りです。
StringIntInt8Int16Int32Int64UIntUInt8UInt16UInt32UInt64DoubleFloatBoolDateArrayDictionary
Declaration
Swift
public var values: [String : JSONValue] - ドット (
-
Declaration
Swift
public init(eventName: EventName, values: [String : JSONConvertible] = [:]) -
Declaration
Swift
public init(_ alias: Alias) -
Declaration
Swift
public mutating func merge(_ other: [String : JSONConvertible]) -
各イベントのエイリアスを定義した列挙型です。
See moreDeclaration
Swift
enum Alias -
message_xxx イベントのタイプを定義した列挙型です。
See moreDeclaration
Swift
enum MessageType
View on GitHub
Install in Dash
Event Structure Reference