Stay organized with collections
Save and categorize content based on your preferences.
object DevicePerformance
Entry point for the Device Performance API client.
Summary
Public methods
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThe Device Performance API enables access to device performance data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDevicePerformance\u003c/code\u003e object serves as the entry point for using the API.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can create a \u003ccode\u003eDevicePerformanceClient\u003c/code\u003e using either an \u003ccode\u003eActivity\u003c/code\u003e or a \u003ccode\u003eContext\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUsing an \u003ccode\u003eActivity\u003c/code\u003e to create the client may trigger a dialog for updates if necessary.\u003c/p\u003e\n"]]],["The `DevicePerformance` class serves as the entry point for the Device Performance API. It offers methods to obtain a `DevicePerformanceClient` instance. Specifically, `getClient` can be called with either a `Context` or an `Activity`. Using an `Activity` might trigger a dialog if the client needs updates while the activity is in the foreground, this method will create a new instance of `DevicePerformanceClient`.\n"],null,[]]