共用方式為


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
屬性

適用於