HMHomeManager.AddHomeAsync(String) Método

Definición

Agrega un hogar denominado homeName al administrador y se ejecuta completion después de que haya terminado.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<HomeKit.HMHome> AddHomeAsync (string homeName);
abstract member AddHomeAsync : string -> System.Threading.Tasks.Task<HomeKit.HMHome>
override this.AddHomeAsync : string -> System.Threading.Tasks.Task<HomeKit.HMHome>

Parámetros

homeName
String

Devoluciones

Tarea que representa la operación AddHome asincrónica. El valor del parámetro TResult es de tipo System.Action<HomeKit.HMHome,Foundation.NSError>.

Atributos

Se aplica a