Class AppJankEvent

  • All Implemented Interfaces:
    io.opentelemetry.android.semconv.events.OpenTelemetryEvent

    
    public final class AppJankEvent
     implements OpenTelemetryEvent
                        
    <p>This event indicates that the application has detected substandard UI rendering performance.</p> <p>Notes:</p> <p>Jank happens when the UI is rendered slowly enough for the user to experience some disruption or sluggishness.</p>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Long getAppJankFrameCount() <p>A number of frame renders that experienced jank.</p> <p>Notes:</p> <p>Depending on platform limitations, the value provided MAY be approximation.</p>
      final Double getAppJankPeriod() <p>The time period, in seconds, for which this jank is being reported.</p>
      final Double getAppJankThreshold() <p>The minimum rendering threshold for this jank, in seconds.</p>
      Unit emit(Logger logger, Attributes additionalAttributes) Emits this event through logger, including any additionalAttributes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AppJankEvent

        AppJankEvent(Long appJankFrameCount, Double appJankPeriod, Double appJankThreshold)
    • Method Detail

      • getAppJankFrameCount

         final Long getAppJankFrameCount()
        <p>A number of frame renders that experienced jank.</p> <p>Notes:</p> <p>Depending on platform limitations, the value provided MAY be approximation.</p>
      • getAppJankPeriod

         final Double getAppJankPeriod()
        <p>The time period, in seconds, for which this jank is being reported.</p>