Class AppScreenClickEvent
-
- All Implemented Interfaces:
-
io.opentelemetry.android.semconv.events.OpenTelemetryEvent
public final class AppScreenClickEvent implements OpenTelemetryEvent
<p>This event represents an instantaneous click on the screen of an application.</p> <p>Notes:</p> <p>The <c>app.screen.click</c> event can be used to indicate that a user has clicked or tapped on the screen portion of an application. Clicks outside of an application's active area SHOULD NOT generate this event. This event does not differentiate between touch/mouse down and touch/mouse up. Implementations SHOULD give preference to generating this event at the time the click is complete, typically on touch release or mouse up. The location of the click event MUST be provided in absolute screen pixels.</p>
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringAPP_SCREEN_CLICK_EVENT_NAMEprivate final LongappScreenCoordinateXprivate final LongappScreenCoordinateYprivate final StringappScreenIdprivate final StringappScreenName
-
Constructor Summary
Constructors Constructor Description AppScreenClickEvent(Long appScreenCoordinateX, Long appScreenCoordinateY, String appScreenId, String appScreenName)
-
Method Summary
Modifier and Type Method Description final LonggetAppScreenCoordinateX()<p>The x (horizontal) coordinate of a screen coordinate, in screen pixels.</p> final LonggetAppScreenCoordinateY()<p>The y (vertical) component of a screen coordinate, in screen pixels.</p> final StringgetAppScreenId()<p>An identifier that uniquely differentiates this screen from other screens in the same application.</p> <p>Notes:</p> <p>A screen represents only the part of the device display drawn by the app. It typically contains multiple widgets or UI components and is larger in scope than individual widgets. Multiple screens can coexist on the same display simultaneously (e.g., split view on tablets).</p> final StringgetAppScreenName()<p>The name of an application screen.</p> <p>Notes:</p> <p>A screen represents only the part of the device display drawn by the app. It typically contains multiple widgets or UI components and is larger in scope than individual widgets. Multiple screens can coexist on the same display simultaneously (e.g., split view on tablets).</p> Unitemit(Logger logger, Attributes additionalAttributes)Emits this event through logger, including any additionalAttributes. -
-
Method Detail
-
getAppScreenCoordinateX
final Long getAppScreenCoordinateX()
<p>The x (horizontal) coordinate of a screen coordinate, in screen pixels.</p>
-
getAppScreenCoordinateY
final Long getAppScreenCoordinateY()
<p>The y (vertical) component of a screen coordinate, in screen pixels.</p>
-
getAppScreenId
final String getAppScreenId()
<p>An identifier that uniquely differentiates this screen from other screens in the same application.</p> <p>Notes:</p> <p>A screen represents only the part of the device display drawn by the app. It typically contains multiple widgets or UI components and is larger in scope than individual widgets. Multiple screens can coexist on the same display simultaneously (e.g., split view on tablets).</p>
-
getAppScreenName
final String getAppScreenName()
<p>The name of an application screen.</p> <p>Notes:</p> <p>A screen represents only the part of the device display drawn by the app. It typically contains multiple widgets or UI components and is larger in scope than individual widgets. Multiple screens can coexist on the same display simultaneously (e.g., split view on tablets).</p>
-
emit
Unit emit(Logger logger, Attributes additionalAttributes)
Emits this event through logger, including any additionalAttributes.
-
-
-
-