PortholeInitializer

Starts the porthole on process start, before the first Activity exists.

Early matters: the snapshot apply observer has to be running before the first state write, or the opening moments of the trace are missing. androidx.startup gives us that without asking anyone to touch their Application class.

To opt out, remove the entry in your debug manifest:

<provider android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
tools:node="merge">
<meta-data android:name="live.gravitylabs.porthole.PortholeInitializer" tools:node="remove" />
</provider>

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun create(context: Context): Porthole

Installs the porthole and hands back the object that owns it.

Link copied to clipboard
open override fun dependencies(): List<Class<out Initializer<*>>>

None. The porthole is the first thing that should run.