Contents

LaunchTaskID

An identifier for a task measured as part of an extended app launch.

Declaration

struct LaunchTaskID

Discussion

LaunchTaskID is RawRepresentable and ExpressibleByStringLiteral. You can pass a string literal directly as the id argument to trackLaunchTask(id:onTrackingError:_:) or trackLaunchTask(id:onTrackingError:_:):

await manager.trackLaunchTask(id: "initial-data-load") {
    await loadInitialData()
}

Choose unique, descriptive names for each task you track. The system uses the ID to associate measurements with the specific work you perform during launch.

See Also

App state reporting