HMService.UpdateAssociatedServiceType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UpdateAssociatedServiceType(HMServiceType, Action<NSError>) |
Specifies that the device attached to a switch or outlet is of type |
UpdateAssociatedServiceType(String, Action<NSError>) |
Updates the associated service type to |
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
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
- Attributes