reportFullyDrawn
Tells the phone that the app's first screen is complete: its data has loaded and is on screen. Android and Xcode's startup tools measure time to full display from it. import { reportFullyDrawn } from '@blotch/angular-lynx';
Usage
Call it once the screen the app opens on is complete, such as when its list has drawn the first page from the network:
pokedex.ts
The phone already knows when the app draws its first frame. That frame is often a splash screen or a spinner. reportFullyDrawn() marks the moment the person can use the screen.
- It waits for the screen. The report goes after the next batch of changes reaches native, so it marks what Angular has just rendered being drawn, not the data arriving.
- Only the first call counts, for the life of the app.
Where it shows up
To see it on iOS, open Instruments' App Launch template, add the Points of Interest instrument, and record the app's launch. Fully Drawn is the point after the launch phases.
API
Related
- Profiling
LynxSplashScreen: keeps the launch screen up until the first screen is ready- Benchmarks, which use it to time AngularLynx's launch
