EventType

enum EventType

The type of event that the camera recorded.

  • Unknown event.

    Declaration

    Swift

    case unknown
  • Motion detected.

    Declaration

    Swift

    case motion
  • Person detected.

    Declaration

    Swift

    case person
  • Doorbell pressed.

    Declaration

    Swift

    case doorbell
  • Package delivered.

    Declaration

    Swift

    case packageDelivered
  • Package retrieved.

    Declaration

    Swift

    case packageRetrieved
  • Package in transit.

    Declaration

    Swift

    case packageInTransit
  • Animal detected.

    Declaration

    Swift

    case animal
  • Vehicle detected.

    Declaration

    Swift

    case vehicle
  • Smoke alarm detected.

    Declaration

    Swift

    case smokeAlarm
  • CO alarm detected.

    Declaration

    Swift

    case coAlarm
  • Dog bark detected.

    Declaration

    Swift

    case dogBark
  • Person talking detected.

    Declaration

    Swift

    case personTalking
  • Glass break detected.

    Declaration

    Swift

    case glassBreak
  • Garage door opened.

    Declaration

    Swift

    case garageDoorOpened
  • Garage door closed.

    Declaration

    Swift

    case garageDoorClosed
  • Sound detected.

    Declaration

    Swift

    case sound
  • Security alarm detected.

    Declaration

    Swift

    case securityAlarm
  • Recording of a smoke alarm.

    Declaration

    Swift

    case recordingSmokeAlarm
  • Recording of a CO alarm.

    Declaration

    Swift

    case recordingCOAlarm
  • Creates a new instance with the specified raw value.

    If there is no value of the type that corresponds with the specified raw value, this initializer returns nil. For example:

    enum PaperSize: String {
        case A4, A5, Letter, Legal
    }
    
    print(PaperSize(rawValue: "Legal"))
    // Prints "Optional(PaperSize.Legal)"
    
    print(PaperSize(rawValue: "Tabloid"))
    // Prints "nil"
    

    Declaration

    Swift

    init?(rawValue: UInt64)

    Parameters

    rawValue

    The raw value to use for the new instance.