Edit

Share via


HKWorkoutRouteBuilder.AddMetadataAsync Method

Definition

Overloads

AddMetadataAsync(NSDictionary)

Adds the provided metadata to the route and returns a task that contains a success code and any errors that occurred.

AddMetadataAsync(HKMetadata)

Adds the provided metadata to the route and returns a task that contains a success code and any errors that occurred.

AddMetadataAsync(NSDictionary)

Adds the provided metadata to the route and returns a task that contains a success code and any errors that occurred.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
protected virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> AddMetadataAsync (Foundation.NSDictionary metadata);
abstract member AddMetadataAsync : Foundation.NSDictionary -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.AddMetadataAsync : Foundation.NSDictionary -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

metadata
NSDictionary

The metadata to add.

Returns

A task that contains a success code and any errors that occurred.

Attributes

Applies to

AddMetadataAsync(HKMetadata)

Adds the provided metadata to the route and returns a task that contains a success code and any errors that occurred.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> AddMetadataAsync (HealthKit.HKMetadata metadata);
member this.AddMetadataAsync : HealthKit.HKMetadata -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

metadata
HKMetadata

The metadata to add.

Returns

A task that contains a success code and any errors that occurred.

Attributes

Applies to