Payload

struct Payload

Payload for the HistoryItemEvent.

  • The ID of the session.

    Declaration

    Swift

    let sessionId: String?
  • The start time of the session in milliseconds since the Unix epoch.

    Declaration

    Swift

    let startTimestampMillis: UInt64?
  • The end time of the session in milliseconds since the Unix epoch.

    Declaration

    Swift

    let endTimestampMillis: UInt64?
  • Specific events detected within the session, (such as motion, person, or face detection), including their timestamps and associated zone, where the values come from EventTrack.

    Declaration

    Swift

    let eventTracks: [Google.CameraHistoryTrait.EventTrack]?
  • Various URLs for accessing media related to the session (preview, thumbnail, MP4 download, DASH/HLS manifests), where the values come from MediaUrl.

    Declaration

    Swift

    let mediaUrl: Google.CameraHistoryTrait.MediaUrl?
  • Captions for the session, where the values come from Caption.

    Declaration

    Swift

    let captions: [Google.CameraHistoryTrait.Caption]?
  • A textual representation of this instance, suitable for debugging.

    Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the String(reflecting:) initializer. This initializer works with any type, and uses the custom debugDescription property for types that conform to CustomDebugStringConvertible:

    struct Point: CustomDebugStringConvertible {
        let x: Int, y: Int
    
        var debugDescription: String {
            return "(\(x), \(y))"
        }
    }
    
    let p = Point(x: 21, y: 30)
    let s = String(reflecting: p)
    print(s)
    // Prints "(21, 30)"
    

    The conversion of p to a string in the assignment to s uses the Point type’s debugDescription property.

    Declaration

    Swift

    var debugDescription: String { get }