CPApplicationDelegate.PerformActionForShortcutItem 方法

定义

用户启动主屏幕快速操作时由系统调用,除非交互是在 或 M:UIKit.UIApplicationDelegate.DidFinishLaunching*WillFinishLaunching(UIApplication, NSDictionary)处理的。

[Foundation.Export("application:performActionForShortcutItem:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PerformActionForShortcutItem (UIKit.UIApplication application, UIKit.UIApplicationShortcutItem shortcutItem, UIKit.UIOperationHandler completionHandler);
abstract member PerformActionForShortcutItem : UIKit.UIApplication * UIKit.UIApplicationShortcutItem * UIKit.UIOperationHandler -> unit
override this.PerformActionForShortcutItem : UIKit.UIApplication * UIKit.UIApplicationShortcutItem * UIKit.UIOperationHandler -> unit

参数

application
UIApplication

对调用此委托方法的 UIApplication 的引用。

completionHandler
UIOperationHandler
属性

适用于