AppJankStats Class
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.
This class stores detailed jank statistics for an individual UI widget.
[Android.Runtime.Register("android/app/jank/AppJankStats", ApiSince=36, DoNotGenerateAcw=true)]
public sealed class AppJankStats : Java.Lang.Object
[<Android.Runtime.Register("android/app/jank/AppJankStats", ApiSince=36, DoNotGenerateAcw=true)>]
type AppJankStats = class
inherit Object
- Inheritance
- Attributes
Remarks
This class stores detailed jank statistics for an individual UI widget. These statistics provide performance insights for specific UI widget states by correlating the number of "Janky frames" with the total frames rendered while the widget is in that state. This class can be used by library widgets to provide the system with more detailed information about where jank is happening for diagnostic purposes.
Java documentation for android.app.jank.AppJankStats
.
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.
Constructors
AppJankStats(Int32, String, String, String, String, Int64, Int64, RelativeFrameTimeHistogram) |
Creates a new AppJankStats object. |
Fields
WidgetCategoryAnimation |
UI elements that facilitate playing animations. |
WidgetCategoryKeyboard |
UI elements that facilitate displaying, hiding or interacting with keyboard. |
WidgetCategoryMedia |
UI elements that facilitate media playback. |
WidgetCategoryNavigation |
UI elements that facilitate in-app navigation. |
WidgetCategoryOther |
UI elements that don't fall in one or any of the other categories. |
WidgetCategoryScroll |
UI elements that facilitate scrolling. |
WidgetCategoryUnspecified |
Used to indicate no widget category has been set. |
WidgetStateAnimating |
Used to indicate the UI element is currently animating. |
WidgetStateDragging |
Used to indicate the UI element is currently being dragged. |
WidgetStateFlinging |
Used to indicate the UI element is currently being flung. |
WidgetStateNone |
Used to indicate the UI element currently has no state and is idle. |
WidgetStatePlayback |
Used to indicate the UI element is currently playing media. |
WidgetStatePredictiveBack |
Used to indicate predictive back navigation is currently being used |
WidgetStateScrolling |
Used to indicate the UI element is currently scrolling. |
WidgetStateSwiping |
Used to indicate the UI element is currently being swiped. |
WidgetStateTapping |
Used to indicate the UI element is currently being tapped on, for example on a keyboard. |
WidgetStateUnspecified |
Used to indicate no widget state has been set. |
WidgetStateZooming |
Used to indicate the UI element is currently zooming. |
Properties
Class |
Returns the runtime class of this |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
JankyFrameCount |
Returns the number of frames that were determined to be janky for this stat. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
NavigationComponent |
Returns the navigation component if it exists that this stat applies to. |
PeerReference | (Inherited from Object) |
RelativeFrameTimeHistogram |
Returns a Histogram containing relative frame times in millis grouped into predefined buckets. |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Object) |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Object) |
TotalFrameCount |
Returns the total number of frames counted for this stat. |
Uid |
Returns the app uid. |
WidgetCategory |
Returns the category that the widget's functionality generally falls into, or
|
WidgetId |
Returns the id of the widget that reported state changes. |
WidgetState |
Returns the widget's state that was reported for this stat, or
|
Methods
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |