共用方式為


HMAccessoryDelegate_Extensions.DidAddProfile 方法

定義

加入 accessory 至 時 profile 所呼叫的方法。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void DidAddProfile (this HomeKit.IHMAccessoryDelegate This, HomeKit.HMAccessory accessory, HomeKit.HMAccessoryProfile profile);
static member DidAddProfile : HomeKit.IHMAccessoryDelegate * HomeKit.HMAccessory * HomeKit.HMAccessoryProfile -> unit

參數

This
IHMAccessoryDelegate

這個擴充方法運作所在的實例。

accessory
HMAccessory

已新增設定檔的附加專案。

profile
HMAccessoryProfile

已新增的設定檔。

屬性

適用於