Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

MDK 3.7.3

@Serializable
class Options(val address: String, val apiKey: String? = null, val secret: String? = null, val policy: PacketPolicy = PacketPolicy.ALWAYS, val beginDay: Int = 0, val endDay: Int = Int.MAX_VALUE, val maxSpace: Int = 64, val minDist: Float = 0.2f, val minInterval: Int = 500, val chunkMaxTime: Int = 300, val chunkMaxSize: Int = 1024, val geofencing: Boolean = false, val sendOnlyExisting: Boolean = false, val filterByBuildings: List<String>? = null, val filterInsidePolygons: List<DoubleArray>? = null, val filterOutsidePolygons: List<DoubleArray>? = null)

Options for configuring the tracking process.

Constructors

constructor(address: String, apiKey: String? = null, secret: String? = null, policy: PacketPolicy = PacketPolicy.ALWAYS, beginDay: Int = 0, endDay: Int = Int.MAX_VALUE, maxSpace: Int = 64, minDist: Float = 0.2f, minInterval: Int = 500, chunkMaxTime: Int = 300, chunkMaxSize: Int = 1024, geofencing: Boolean = false, sendOnlyExisting: Boolean = false, filterByBuildings: List<String>? = null, filterInsidePolygons: List<DoubleArray>? = null, filterOutsidePolygons: List<DoubleArray>? = null)

Properties

The address of the server to which the data will be sent.

The API key to use to authenticate the packets.

Days since Unix epoch.

The maximum size in KiloBytes of a single chunk.

The maximum time in seconds of a single chunk.

val endDay: Int

Days since Unix epoch.

Filters localization by building identifiers.

Filters localization to areas inside the specified geographic polygons.

Filters out localization results inside the specified geographic polygons.

If true, geofencing events will be sent.

The maximum number of memory space (in MegaBytes) to use.

The minimum distance in meters between two consecutive positions.

The minimum time in milliseconds between two consecutive positions.

Packet sending policy.

The secret key used to sign the packets.

If true, only pre-existing chunks will be sent; no new chunks will be generated.