SITMotionMode

Objective-C

enum SITMotionMode : NSInteger {}

Swift

enum SITMotionMode : Int, @unchecked Sendable

Allows to indicate how the user that carries the smartphone moves: by foot (default), using ar data, etc.

Knowing how the user moves is important since Situm adapts to each movement type.

  • (DEFAULT) User moves on foot (walking), Situm estimates the displacement using inertial sensors (accelerometer, gyroscope, magnetometer). This is the most common configuration for wayfinding and tracking apps.

    Declaration

    Objective-C

    kSITByFoot = 1

    Swift

    case byFoot = 1
  • User moves on foot (walking), Situm estimates the displacement using inertial sensors (accelerometer, gyroscope, magnetometer) and the camera. The camera data is not collected by the Situm SDK, it only works if you add it externally. This mode shouldn’t be used

    Declaration

    Objective-C

    kSITByFootVisualOdometry

    Swift

    case byFootVisualOdometry = 2