CPApplicationDelegate.HandleIntent 方法

定义

系统请求应用程序处理指定的 intent

[Foundation.Export("application:handleIntent:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void HandleIntent (UIKit.UIApplication application, Intents.INIntent intent, Action<Intents.INIntentResponse> completionHandler);
abstract member HandleIntent : UIKit.UIApplication * Intents.INIntent * Action<Intents.INIntentResponse> -> unit
override this.HandleIntent : UIKit.UIApplication * Intents.INIntent * Action<Intents.INIntentResponse> -> unit

参数

application
UIApplication

创建意向的应用程序。

intent
INIntent

意向。

completionHandler
Action<INIntentResponse>

操作完成后要运行的处理程序。

属性

适用于