platform Capabilities
Actual for Android: thread identity and system-trace integration are true; TraceCapabilities.counters is true on API 29+; flows are not supported.
The tracing capabilities of the current target. Truthful, never throws; all flags are false on targets without a backend.
Example:
val canShowThreads = platformCapabilities.threadIdentityRequires opting in to ExperimentalStructuredCoroutines.
Platform availability (expect/actual): declared for every target. Values: Android reports thread identity, system-trace integration, and counters from API 29; JVM reports thread identity only; JS, Native and Wasm targets report no capability.
See also
Actual for JS: no capability is available, every flag is false.
Actual for the JVM: only TraceCapabilities.threadIdentity is true. The Perfetto sink lives in the separate :runtime-tracing artifact.
Actual for Native: no capability is available, every flag is false.
Actual for Wasm (JS): no capability is available, every flag is false.
Actual for Wasm (WASI): no capability is available, every flag is false.