TNAmbientMagneticItem

@objc
public class TNAmbientMagneticItem : NSObject, Codable, LogInitiator, TNAxisSensorItem

Magnetic field from magnetometr. Use TNAmbientMagneticItemBuilder to create item

  • x

    the magnetic field along the X axis (in micro-Tesla - uT)

    Declaration

    Swift

    public private(set) var x: Double { get }
  • y

    the magnetic field along the Y axis (in micro-Tesla - uT)

    Declaration

    Swift

    public private(set) var y: Double { get }
  • z

    the magnetic field along the X axis (in micro-Tesla - uT)

    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() -> TNAmbientMagneticItemBuilder