Package com. hypertrack. sdk. config
Types
Link copied to clipboard
Created by ravi on 6/28/18.
Link copied to clipboard
data class HTConfig( val json: JsonObject, val locationConfig: LocationConfig, val syncConfig: SyncConfig, val baseApiUrl: String = BuildConfig.DEFAULT_API, val authenticationUrl: String = String.format(Locale.US, "%sauthenticate", baseApiUrl), val deviceSettingsUrl: String = String.format(Locale.US, "%sdevice-settings", baseApiUrl), val deviceInfoUrlBase: String = String.format(Locale.US, "%sdevice-info/", baseApiUrl), val transmissionConfig: TransmissionConfig = TransmissionConfig(
String.format(Locale.US, "%sevents", baseApiUrl),
String.format(Locale.US, "%scustom-events", baseApiUrl)
), val maxFetchConfigRetryAttempts: Int = 2) : Serializable
Content copied to clipboard
Link copied to clipboard
data class LocationConfig( val trackingStartTimeout: Int = getInteger(R.integer.hypertrack_tracking_start_timeout), val gpsWaitingTimeout: Int = getInteger(R.integer.hypertrack_gps_waiting_timeout), val intervalLocationUnavailable: Int = getInteger(R.integer.hypertrack_tracking_interval_location_unavailable), val intervalActivityRun: Int = getInteger(R.integer.hypertrack_tracking_interval_activity_run), val intervalActivityCycle: Int = getInteger(R.integer.hypertrack_tracking_interval_activity_cycle), val intervalActivityWalk: Int = getInteger(R.integer.hypertrack_tracking_interval_activity_walk), val intervalActivityDrive: Int = getInteger(R.integer.hypertrack_tracking_interval_activity_drive), val intervalActivityMoving: Int = getInteger(R.integer.hypertrack_tracking_interval_activity_moving), val intervalActivityStop: Int = getInteger(R.integer.hypertrack_tracking_interval_activity_stop), val intervalActivityStopBackoff: List<Int> = HyperTrackInitProvider.applicationContext.resources.getIntArray(
R.array.hypertrack_tracking_interval_activity_stop
).asList())
Content copied to clipboard
Link copied to clipboard
Set of constants that could be adjusted to modify frequency and triggers, for the API calls to "/device-settings" endpoint.
Link copied to clipboard
data class TransmissionConfig(val eventApiUrl: String, val geotagApiUrl: String)
Content copied to clipboard