EnergyUsageTrackingSupported
Returns true if the active provider and device support energy-usage tracking, otherwise returns false.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.AdaptivePerformance
- Assembly: UnityEngine.AdaptivePerformanceModule
bool EnergyUsageTrackingSupported { get; }
Remarks
On some platforms whether the device actually exposes usable energy monitors is resolved asynchronously after IEnergyUsageControl.StartEnergyUsageTracking is called, so this property can start out and later become (for example, when the device turns out to have no usable power monitors). Re-check it after starting rather than only once up front, and treat a transition to as tracking no longer being available.
truefalsefalse