CPApplicationDelegate.PerformActionForShortcutItem 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用户启动主屏幕快速操作时由系统调用,除非交互是在 或 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 的引用。
- shortcutItem
- UIApplicationShortcutItem
- completionHandler
- UIOperationHandler
- 属性