Edit

Share via


HMHome.AddUser(Action<HMUser,NSError>) Method

Definition

Developers should not use this deprecated method.

[Foundation.Export("addUserWithCompletionHandler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'ManageUsers' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'ManageUsers' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddUser (Action<HomeKit.HMUser,Foundation.NSError> completion);
abstract member AddUser : Action<HomeKit.HMUser, Foundation.NSError> -> unit
override this.AddUser : Action<HomeKit.HMUser, Foundation.NSError> -> unit

Parameters

completion
Action<HMUser,NSError>

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

Attributes

Applies to