DeviceProfileCollector

A comprehensive device collector that orchestrates the collection of device profile data.

This collector serves as the main coordinator for gathering complete device profile information including device identification, metadata, and location data based on the provided configuration. It manages the collection process by:

  • Setting up loggers for all configured collectors

  • Invoking the device identifier to get a unique device ID

  • Conditionally collecting metadata and location based on configuration flags

Constructors

Link copied to clipboard
constructor(config: DeviceProfileConfig)

Properties

Link copied to clipboard
open override val key: String

The key identifier for this collector. Empty string as this is the root collector.

Link copied to clipboard
open override val serializer: KSerializer<DeviceProfileResult>

The serializer used to convert the collected data to JSON format.

Functions

Link copied to clipboard
open suspend override fun collect(): DeviceProfileResult

Collects comprehensive device profile data based on the configuration.