语言

PowerManager.IsSustainedPerformanceModeSupported 属性

定义

此函数检查设备是否已实现持续性能模式。

public virtual bool IsSustainedPerformanceModeSupported { [Android.Runtime.Register("isSustainedPerformanceModeSupported", "()Z", "GetIsSustainedPerformanceModeSupportedHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isSustainedPerformanceModeSupported", "()Z", "GetIsSustainedPerformanceModeSupportedHandler", ApiSince=24)>]
member this.IsSustainedPerformanceModeSupported : bool

属性值

如果设备支持,则返回 True,否则返回 false。

特性

注解

此函数检查设备是否已实现持续性能模式。 这只需要检查一次,并且对于特定设备/版本而言是常量。

持续性能模式旨在为长时间提供一致的性能级别。

应用程序应在使用 android.view.Window#setSustainedPerformanceMode之前检查设备是否支持此模式。

Java文档android.os.PowerManager.isSustainedPerformanceModeSupported()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于