DeviceCollector
inline fun <T : @Serializable Any> DeviceCollector(key: String, noinline collect: suspend () -> T?): DeviceCollector<T>
Creates a DeviceCollector with the specified key and collection logic.
Return
A new instance of DeviceCollector.
Parameters
key
The unique key for the collector.
collect
The suspend function that collects the data.