Language

Metadata.Builder.SetId(String) Method

Definition

Sets the record identifier stored by this metadata builder.

[Android.Runtime.Register("setId", "(Ljava/lang/String;)Landroid/health/connect/datatypes/Metadata$Builder;", "", ApiSince=34)]
public Android.Health.Connect.DataTypes.Metadata.Builder SetId(string id);
[<Android.Runtime.Register("setId", "(Ljava/lang/String;)Landroid/health/connect/datatypes/Metadata$Builder;", "", ApiSince=34)>]
member this.SetId : string -> Android.Health.Connect.DataTypes.Metadata.Builder

Parameters

id
String

The record identifier to store in the metadata builder.

Returns

This metadata builder with the record identifier set.

Attributes

Remarks

Sets the identifier of this data. The builder retains the supplied value. When a record is inserted, the platform ignores this value and assigns an identifier.

Android reference for android.health.connect.datatypes.Metadata.Builder.setId.

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