namespace sap/ui/performance/trace/Interaction

Visiblity: public
Available since: N/A
Module: sap/ui/performance/trace/Interaction
Application Component:

Provides base functionality for interaction detection heuristics & API. Interaction detection works through the detection of relevant events and tracking of rendering activities.
An example:
The user clicks on a button

All measurement takes place in module:sap/ui/performance/Measurement.


Nodes Overview

Node Description

Methods Overview

Method Description
module:sap/ui/performance/trace/Interaction.filter

Gets all interaction measurements for which a provided filter function returns a truthy value.

To filter for certain categories of measurements a fnFilter can be implemented like this function(InteractionMeasurement) { return InteractionMeasurement.duration > 0 }

module:sap/ui/performance/trace/Interaction.getActive

Returns true if the interaction detection was enabled explicitly, or implicitly along with fesr.

module:sap/ui/performance/trace/Interaction.getAll

Gets all interaction measurements.

module:sap/ui/performance/trace/Interaction.setActive

Enables the interaction tracking.

module:sap/ui/performance/trace/Interaction.filter

Gets all interaction measurements for which a provided filter function returns a truthy value.

To filter for certain categories of measurements a fnFilter can be implemented like this function(InteractionMeasurement) { return InteractionMeasurement.duration > 0 }

Param Type DefaultValue Description
fnFilter function

a filter function that returns true if the passed measurement should be added to the result

module:sap/ui/performance/trace/Interaction.getActive

Returns true if the interaction detection was enabled explicitly, or implicitly along with fesr.

Param Type DefaultValue Description

module:sap/ui/performance/trace/Interaction.getAll

Gets all interaction measurements.

Param Type DefaultValue Description
bFinalize boolean

finalize the current pending interaction so that it is contained in the returned array

module:sap/ui/performance/trace/Interaction.setActive

Enables the interaction tracking.

Param Type DefaultValue Description
bActive boolean

State of the interaction detection