TNDriveMotionSettings

@objcMembers
public class TNDriveMotionSettings : NSObject

Setting information for Drive Motion SDK

  • Connection mode

    Declaration

    Swift

    public let connectionMode: TNConnectionMode
  • Drive detection mode enum, see{@link TNDriveDetectionMode}

    Declaration

    Swift

    public let driveDetectionMode: TNDriveDetectionMode
  • Delegate of DriveMotion, see{@link TNDriveMotionDelegate}

    Declaration

    Swift

    public let delegate: TNDriveMotionDelegate?
  • Delegate of DriveMotion alert, see{@link TNDriveMotionAlertDelegate}

    Declaration

    Swift

    public let alertDetegate: TNDriveMotionAlertDelegate?
  • Set logger settings if you want use your custom path and prefixes for *.log files from SDK see{@link TNLoggerSettings}

    Declaration

    Swift

    public let loggerSettings: TNLoggerSettings?
  • Is enable background mode in DataCollector. Default is true for enabled.

    Declaration

    Swift

    public let runInBackgroundMode: Bool
  • Permission requirements for tracking and collecting trip analytics data. False by default.

    Declaration

    Swift

    public let optInRequired: Bool
  • Interval of cumulative score, DataCollector. Default vaule is MONTH, see{@link TNScoringInterval}

    Declaration

    Swift

    public let scoringInterval: TNCumulativeScoreInterval
  • Undocumented

    Declaration

    Swift

    public let userAlias: String
  • Undocumented

    Declaration

    Swift

    public let userState: String
  • Permissions requirements for exchange used device id to new one generated by SDK. False by default.

    Declaration

    Swift

    public let isDeviceGuidOverrodeByForce: Bool
  • Permissions requirements for using external userId instead of telematicsUseId. False by default.

    Declaration

    Swift

    public let isExternalUserIdUsedByForce: Bool
  • Configures the query type for analytics APIs. Default is “USER_BASED”

    Declaration

    Swift

    public let analyticsQueryMode: AnalyticsQueryMode
  • Undocumented

    Declaration

    Swift

    public static func builder() -> TNDriveMotionSettingsBuilder