DeviceProfileConfig

Configuration class for customizing device profile collection behavior using a DSL approach.

This class provides a comprehensive configuration interface for the device profile collection process, allowing fine-grained control over data gathering, logging, device identification, and collector selection.

Configuration Categories:

Collection Flags:

  • Metadata collection enablement

  • Location collection enablement

System Components:

  • Logger configuration for debugging and monitoring

  • Device identifier implementation for unique device tracking

Data Collectors:

  • Extensible list of collectors for gathering specific device information

  • DSL-based collector configuration

Usage Examples:

// Basic configuration
val config = DeviceProfileConfig().apply {
metadata = true
location = false
}

// Advanced configuration with custom collectors
val config = DeviceProfileConfig().apply {
logger = Logger.DEBUG
deviceIdentifier = CustomIdentifier()
collectors {
add(PlatformCollector)
add(HardwareCollector())
add(LocationCollector())
}
}

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Device identifier implementation used to generate unique device fingerprints.

Link copied to clipboard

Indicates whether device location data collection is enabled.

Link copied to clipboard

Logger instance used for monitoring and debugging during device profile collection.

Link copied to clipboard

Indicates whether comprehensive device metadata collection is enabled.

Functions

Link copied to clipboard

DSL function for configuring the list of device collectors to be used during profile collection.