struct Payload
Payload for the AirQualityEvent
.
-
Represents the notification level. The currently supported value is 0, which indicates that the notification should be spoken aloud.
Declaration
Swift
let priority: Int32?
-
The ID of the device that triggered the event, which may be different than the device transmitting the notification.
Declaration
Swift
let triggeredDeviceId: String?
-
Descriptive air quality level value. Valid qualities are defined in
AirQualityLevel
.Declaration
Swift
let levelValue: Google.ExtendedAirQualityTrait.AirQualityLevel?
-
The location where air quality is measured.
Declaration
Swift
let location: Google.ExtendedAirQualityTrait.MeasurementLocation?
-
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 customdebugDescription
property for types that conform toCustomDebugStringConvertible
: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 tos
uses thePoint
type’sdebugDescription
property.Declaration
Swift
var debugDescription: String { get }