HardwarePropertiesManager.GetDeviceTemperatures 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.
Return an array of device temperatures in Celsius.
[Android.Runtime.Register("getDeviceTemperatures", "(II)[F", "GetGetDeviceTemperatures_IIHandler", ApiSince=24)]
public virtual float[] GetDeviceTemperatures (Android.OS.DeviceTemperatureType type, Android.OS.TemperatureSource source);
[<Android.Runtime.Register("getDeviceTemperatures", "(II)[F", "GetGetDeviceTemperatures_IIHandler", ApiSince=24)>]
abstract member GetDeviceTemperatures : Android.OS.DeviceTemperatureType * Android.OS.TemperatureSource -> single[]
override this.GetDeviceTemperatures : Android.OS.DeviceTemperatureType * Android.OS.TemperatureSource -> single[]
Parameters
type of requested device temperature, one of #DEVICE_TEMPERATURE_CPU
,
#DEVICE_TEMPERATURE_GPU
, #DEVICE_TEMPERATURE_BATTERY
or #DEVICE_TEMPERATURE_SKIN
.
- source
- TemperatureSource
source of requested device temperature, one of #TEMPERATURE_CURRENT
,
#TEMPERATURE_THROTTLING
, #TEMPERATURE_THROTTLING_BELOW_VR_MIN
or
#TEMPERATURE_SHUTDOWN
.
Returns
an array of requested float device temperatures. Temperature equals to
#UNDEFINED_TEMPERATURE
if undefined.
Empty if platform doesn't provide the queried temperature.
- Attributes
Remarks
Return an array of device temperatures in Celsius.
Java documentation for android.os.HardwarePropertiesManager.getDeviceTemperatures(int, 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.