HMHome.AddAccessory(HMAccessory, Action<NSError>) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
accessory
Menambahkan ke beranda dan berjalan completion
setelah ditambahkan.
[Foundation.Export("addAccessory:completionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddAccessory (HomeKit.HMAccessory accessory, Action<Foundation.NSError> completion);
abstract member AddAccessory : HomeKit.HMAccessory * Action<Foundation.NSError> -> unit
override this.AddAccessory : HomeKit.HMAccessory * Action<Foundation.NSError> -> unit
Parameter
- accessory
- HMAccessory
- Atribut