screenContextFromEvent property

bool? screenContextFromEvent
final

Whether events tracked with their own screen entity keep it instead of getting the current screen entity.

Only applies when screenContext is enabled. An event that carries an entity with the iglu:com.snowplowanalytics.mobile/screen/jsonschema/1-x-x schema in its contexts keeps that entity and the tracker doesn't add the current screen. Use it for events tracked after async work, so they describe the screen the user was on when the action started.

Only entities attached to the event are checked, not those added by global contexts or plugins. Screen view and screen end events always get the screen they describe.

Defaults to false on iOS and Android. Not available on Web (ignored).

Implementation

final bool? screenContextFromEvent;