AppJankStats Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new AppJankStats object.
[Android.Runtime.Register(".ctor", "(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJLandroid/app/jank/RelativeFrameTimeHistogram;)V", "", ApiSince=36)]
public AppJankStats(int appUid, string widgetId, string? navigationComponent, string? widgetCategory, string? widgetState, long totalFrames, long jankyFrames, Android.App.Jank.RelativeFrameTimeHistogram relativeFrameTimeHistogram);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJLandroid/app/jank/RelativeFrameTimeHistogram;)V", "", ApiSince=36)>]
new Android.App.Jank.AppJankStats : int * string * string * string * string * int64 * int64 * Android.App.Jank.RelativeFrameTimeHistogram -> Android.App.Jank.AppJankStats
Parameters
- appUid
- Int32
the Uid of the App that is collecting jank stats.
- widgetId
- String
the widget id that frames will be associated to.
- navigationComponent
- String
the intended navigation target within the activity, this could be a navigation destination, screen and/or pane.
- widgetCategory
- String
a category used to organize widgets in a structured way that indicates they serve a similar purpose or perform related functions. Must be prefixed with WIDGET_CATEGORY_ and have a suffix of one of the following:SCROLL, ANIMATION, MEDIA, NAVIGATION, KEYBOARD, OTHER or will be set to UNSPECIFIED if no value is passed.
- widgetState
- String
the state the widget was in while frames were counted. Must be prefixed with WIDGET_STATE_ and have a suffix of one of the following: NONE, SCROLLING, FLINGING, SWIPING, DRAGGING, ZOOMING, ANIMATING, PLAYBACK, TAPPING, PREDICTIVE_BACK or will be set to WIDGET_STATE_UNSPECIFIED if no value is passed.
- totalFrames
- Int64
the total number of frames that were counted for this stat.
- jankyFrames
- Int64
the total number of janky frames that were counted for this stat.
- relativeFrameTimeHistogram
- RelativeFrameTimeHistogram
the histogram with predefined buckets. See
#getRelativeFrameTimeHistogram()
for details.
- Attributes
Remarks
Creates a new AppJankStats object.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.