다음을 통해 공유


HMHome.AddTrigger(HMTrigger, Action<NSError>) 메서드

정의

홈에 를 추가하고 trigger 추가한 후 실행됩니다 completion .

[Foundation.Export("addTrigger:completionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddTrigger (HomeKit.HMTrigger trigger, Action<Foundation.NSError> completion);
abstract member AddTrigger : HomeKit.HMTrigger * Action<Foundation.NSError> -> unit
override this.AddTrigger : HomeKit.HMTrigger * Action<Foundation.NSError> -> unit

매개 변수

trigger
HMTrigger
completion
Action<NSError>

작업이 완료되면 실행할 처리기입니다.

특성

적용 대상