startEvent

public void startEvent(@NonNull() String name)

Starts an event or 'moment'. Events are used for encapsulating particular activities within the app, such as a user adding an item to their shopping cart.

The length of time an event takes to execute is recorded, and a screenshot can be taken if an event is 'late'.

Parameters

name

a name identifying the event


public void startEvent(@NonNull() String name, @Nullable() String identifier)

Starts an event or 'moment'. Events are used for encapsulating particular activities within the app, such as a user adding an item to their shopping cart.

The length of time an event takes to execute is recorded, and a screenshot can be taken if an event is 'late'.

Parameters

name

a name identifying the event

identifier

an identifier distinguishing between multiple events with the same name


public void startEvent(    @NonNull() String name,     @Nullable() String identifier,     boolean allowScreenshot)

Starts an event or 'moment'. Events are used for encapsulating particular activities within the app, such as a user adding an item to their shopping cart.

The length of time an event takes to execute is recorded, and a screenshot can be taken if an event is 'late'.

Parameters

name

a name identifying the event

identifier

an identifier distinguishing between multiple events with the same name

allowScreenshot

true if a screenshot should be taken for a late event, false otherwise


public void startEvent(    @NonNull() String name,     @Nullable() String identifier,     @Nullable() Map<String, Object> properties)

Starts an event or 'moment'. Events are used for encapsulating particular activities within the app, such as a user adding an item to their shopping cart.

The length of time an event takes to execute is recorded, and a screenshot can be taken if an event is 'late'.

Parameters

name

a name identifying the event

identifier

an identifier distinguishing between multiple events with the same name

properties

custom key-value pairs to provide with the event


public void startEvent(    @NonNull() String name,     @Nullable() String identifier,     boolean allowScreenshot,     @Nullable() Map<String, Object> properties)

Starts an event or 'moment'. Events are used for encapsulating particular activities within the app, such as a user adding an item to their shopping cart.

The length of time an event takes to execute is recorded, and a screenshot can be taken if an event is 'late'.

Parameters

name

a name identifying the event

identifier

an identifier distinguishing between multiple events with the same name

allowScreenshot

true if a screenshot should be taken for a late event, false otherwise

properties

custom key-value pairs to provide with the event