FrameMetrics.GetMetric(Int32) Method
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.
Retrieves the value associated with Metric identifier id
for this frame.
[Android.Runtime.Register("getMetric", "(I)J", "", ApiSince=24)]
public long GetMetric (int id);
[<Android.Runtime.Register("getMetric", "(I)J", "", ApiSince=24)>]
member this.GetMetric : int -> int64
Parameters
- id
- Int32
the metric to retrieve
Returns
the value of the metric or -1 if it is not available.
- Attributes
Remarks
Retrieves the value associated with Metric identifier id
for this frame.
Boolean metrics are represented in [0,1], with 0 corresponding to false, and 1 corresponding to true.
Java documentation for android.view.FrameMetrics.getMetric(int)
.
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.