ComposeTracingInitializer

class ComposeTracingInitializer : Initializer


Configures Perfetto SDK tracing in the app allowing for capturing Compose specific information (e.g. Composable function names) in a Perfetto SDK trace

Summary

Public constructors

Public functions

open Unit
create(context: Context)

Initializes a library component within the application Context.

open List<Class<Initializer<*>>>

Gets a list of this initializer's dependencies.

Public constructors

ComposeTracingInitializer

Added in 1.0.0
ComposeTracingInitializer()

Public functions

create

Added in 1.0.0
open fun create(context: Context): Unit

Initializes a library component within the application Context.

Parameters
context: Context

The application context.

dependencies

Added in 1.0.0
open fun dependencies(): List<Class<Initializer<*>>>

Gets a list of this initializer's dependencies. Dependencies are initialized before the dependent initializer. For example, if initializer A defines initializer B as a dependency, B is initialized before A.

Returns
List<Class<Initializer<*>>>

A list of initializer dependencies.