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
var notifyEventStart
)var notifyStepStart
)var notifyStepEnd
)Node | Description |
---|
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 |
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. |
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 |
Returns true if the interaction detection was enabled explicitly, or implicitly along with fesr.
Param | Type | DefaultValue | Description |
---|
Gets all interaction measurements.
Param | Type | DefaultValue | Description |
---|---|---|---|
bFinalize | boolean |
finalize the current pending interaction so that it is contained in the returned array |
Enables the interaction tracking.
Param | Type | DefaultValue | Description |
---|---|---|---|
bActive | boolean |
State of the interaction detection |