DeviceProfileConfig
class 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())
}
}Content copied to clipboard