Edytuj

Udostępnij za pośrednictwem


HKWorkoutRouteBuilder.AddMetadata Method

Definition

Overloads

AddMetadata(NSDictionary, HKWorkoutRouteBuilderAddMetadataHandler)

Adds the provided metadata to the route and runs a handler when the operation completes.

AddMetadata(HKMetadata, HKWorkoutRouteBuilderAddMetadataHandler)

Adds the provided metadata to the route and runs a handler when the operation completes.

AddMetadata(NSDictionary, HKWorkoutRouteBuilderAddMetadataHandler)

Adds the provided metadata to the route and runs a handler when the operation completes.

[Foundation.Export("addMetadata:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
protected virtual void AddMetadata (Foundation.NSDictionary metadata, HealthKit.HKWorkoutRouteBuilderAddMetadataHandler completion);
abstract member AddMetadata : Foundation.NSDictionary * HealthKit.HKWorkoutRouteBuilderAddMetadataHandler -> unit
override this.AddMetadata : Foundation.NSDictionary * HealthKit.HKWorkoutRouteBuilderAddMetadataHandler -> unit

Parameters

metadata
NSDictionary

The metadata to add.

completion
HKWorkoutRouteBuilderAddMetadataHandler

A handler to run when the operation completes.

Attributes

Applies to

AddMetadata(HKMetadata, HKWorkoutRouteBuilderAddMetadataHandler)

Adds the provided metadata to the route and runs a handler when the operation completes.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public void AddMetadata (HealthKit.HKMetadata metadata, HealthKit.HKWorkoutRouteBuilderAddMetadataHandler completion);
member this.AddMetadata : HealthKit.HKMetadata * HealthKit.HKWorkoutRouteBuilderAddMetadataHandler -> unit

Parameters

metadata
HKMetadata

The metadata to add.

completion
HKWorkoutRouteBuilderAddMetadataHandler

A handler to run when the operation completes.

Attributes

Applies to