Share via


HKWorkoutRouteBuilder.AddMetadataAsync Method

Definition

Overloads

Name Description
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.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> AddMetadataAsync(Foundation.NSDictionary metadata);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> AddMetadataAsync(HealthKit.HKMetadata metadata);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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