Power.FromWatts(Double) Method

Definition

Creates a Power object with the specified value in Watts.

[Android.Runtime.Register("fromWatts", "(D)Landroid/health/connect/datatypes/units/Power;", "", ApiSince=34)]
public static Android.Health.Connect.DataTypes.Units.Power FromWatts (double value);
[<Android.Runtime.Register("fromWatts", "(D)Landroid/health/connect/datatypes/units/Power;", "", ApiSince=34)>]
static member FromWatts : double -> Android.Health.Connect.DataTypes.Units.Power

Parameters

value
Double

value to be set as watts.

Returns

Attributes

Remarks

Creates a Power object with the specified value in Watts.

Java documentation for android.health.connect.datatypes.units.Power.fromWatts(double).

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.

Applies to