HMService.UpdateAssociatedServiceType Method

Definition

Overloads

UpdateAssociatedServiceType(HMServiceType, Action<NSError>)

Specifies that the device attached to a switch or outlet is of type serviceType. After the system sets the association, the system runs completion.

UpdateAssociatedServiceType(String, Action<NSError>)

Updates the associated service type to serviceType and runs completion after it has finished.

UpdateAssociatedServiceType(HMServiceType, Action<NSError>)

Specifies that the device attached to a switch or outlet is of type serviceType. After the system sets the association, the system runs completion.

public void UpdateAssociatedServiceType (HomeKit.HMServiceType serviceType, Action<Foundation.NSError> completion);
member this.UpdateAssociatedServiceType : HomeKit.HMServiceType * Action<Foundation.NSError> -> unit

Parameters

serviceType
HMServiceType
completion
Action<NSError>

Applies to

UpdateAssociatedServiceType(String, Action<NSError>)

Updates the associated service type to serviceType and runs completion after it has finished.

[Foundation.Export("updateAssociatedServiceType:completionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void UpdateAssociatedServiceType (string serviceType, Action<Foundation.NSError> completion);
abstract member UpdateAssociatedServiceType : string * Action<Foundation.NSError> -> unit
override this.UpdateAssociatedServiceType : string * Action<Foundation.NSError> -> unit

Parameters

serviceType
String

To be added.

This parameter can be null.

completion
Action<NSError>

A handler that returns null on success, or an error object on failure.

Attributes

Applies to