HMHome.AddAndSetupAccessoriesAsync Method

Definition

Overloads

AddAndSetupAccessoriesAsync(HMAccessorySetupPayload)

Displays a device selection user interface that allows the user to choose which devices to add and set up, and returning a task that represents the asynchronous AddAndSetupAccessories operation.

AddAndSetupAccessoriesAsync()

Displays a device selection user interface that allows the user to choose which devices to add and set up, and returning a task that represents the asynchronous AddAndSetupAccessories operation.

AddAndSetupAccessoriesAsync(HMAccessorySetupPayload)

Displays a device selection user interface that allows the user to choose which devices to add and set up, and returning a task that represents the asynchronous AddAndSetupAccessories operation.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 3, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<HomeKit.HMAccessory[]> AddAndSetupAccessoriesAsync (HomeKit.HMAccessorySetupPayload payload);
abstract member AddAndSetupAccessoriesAsync : HomeKit.HMAccessorySetupPayload -> System.Threading.Tasks.Task<HomeKit.HMAccessory[]>
override this.AddAndSetupAccessoriesAsync : HomeKit.HMAccessorySetupPayload -> System.Threading.Tasks.Task<HomeKit.HMAccessory[]>

Parameters

payload
HMAccessorySetupPayload

The setup payload.

Returns

A task that represents the asynchronous AddAndSetupAccessories operation.

Attributes

AddAndSetupAccessoriesAsync()

Displays a device selection user interface that allows the user to choose which devices to add and set up, and returning a task that represents the asynchronous AddAndSetupAccessories operation.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task AddAndSetupAccessoriesAsync ();
abstract member AddAndSetupAccessoriesAsync : unit -> System.Threading.Tasks.Task
override this.AddAndSetupAccessoriesAsync : unit -> System.Threading.Tasks.Task

Returns

A task that represents the asynchronous AddAndSetupAccessories operation.

Attributes

Applies to