ESTTelemetryInfoMotion

@interface ESTTelemetryInfoMotion : ESTTelemetryInfo

This class contains data read from telemetry packet from beacon device.

  • Accelerometer data related to X axis.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSNumber *_Nonnull accelerationX;

    Swift

    var accelerationX: NSNumber { get }
  • Accelerometer data related to Y axis.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSNumber *_Nonnull accelerationY;

    Swift

    var accelerationY: NSNumber { get }
  • Accelerometer data related to Z axis.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSNumber *_Nonnull accelerationZ;

    Swift

    var accelerationZ: NSNumber { get }
  • Duration of previous motion state.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        NSNumber *_Nonnull previousMotionStateDurationInSeconds;

    Swift

    var previousMotionStateDurationInSeconds: NSNumber { get }
  • Duration of current motion state.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        NSNumber *_Nonnull currentMotionStateDurationInSeconds;

    Swift

    var currentMotionStateDurationInSeconds: NSNumber { get }
  • Motion state of device. 0 means not moving, 1 means moving.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSNumber *_Nonnull motionState;

    Swift

    var motionState: NSNumber { get }
  • Designated initializer of this class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAccelerationX:(nonnull NSNumber *)accelerationX
                                    accelerationY:(nonnull NSNumber *)accelerationY
                                    accelerationZ:(nonnull NSNumber *)accelerationZ
             previousMotionStateDurationInSeconds:
                 (nonnull NSNumber *)previousMotionStateDurationInSeconds
              currentMotionStateDurationInSeconds:
                  (nonnull NSNumber *)currentMotionStateDurationInSeconds
                                      motionState:(nonnull NSNumber *)motionState
                                  shortIdentifier:
                                      (nonnull NSString *)shortIdentifier;

    Swift

    init(accelerationX: NSNumber, accelerationY: NSNumber, accelerationZ: NSNumber, previousMotionStateDurationInSeconds: NSNumber, currentMotionStateDurationInSeconds: NSNumber, motionState: NSNumber, shortIdentifier: String)

    Parameters

    accelerationX

    Data from beacons X axis, read from telemetry packet.

    accelerationY

    Data from beacons Y axis, read from telemetry packet.

    accelerationZ

    Data from beacons Z axis, read from telemetry packet.

    previousMotionStateDurationInSeconds

    Duration of previous motion state, read from telemetry packet.

    currentMotionStateDurationInSeconds

    Duration of current motion, read from telemetry packet.

    motionState

    Current motion state, read from telemetry packet.

    shortIdentifier

    Short identifier of device that sent telemetry packet

    Return Value

    Instance of this class.