TNGravityItem
@objc
public class TNGravityItem : NSObject, TNAxisSensorItem, Codable, LogInitiator
Force of gravity from device sensor. Use TNGravityItemBuilder to create item
-
Measures the force of gravity that is applied to a device on the X axis
Declaration
Swift
public private(set) var x: Double { get } -
Measures the force of gravity that is applied to a device on the Y axis
Declaration
Swift
public private(set) var y: Double { get } -
Measures the force of gravity that is applied to a device on the Z axis
Declaration
Swift
public private(set) var z: Double { get } -
UTC timestamp
Declaration
Swift
public private(set) var timestamp: Int64 { get } -
Undocumented
Declaration
Swift
required public init(x: Double, y: Double, z: Double, timestamp: TimeInterval) -
Builder in order to create a valid item
Declaration
Swift
public static func builder() -> TNGravityItemBuilder
TNGravityItem Class Reference