Sdílet prostřednictvím


UIApplicationDelegate.PerformFetch Method

Definition

Indicates that the application can begin a fetch operation if it has data to download.

[Foundation.Export("application:performFetchWithCompletionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void PerformFetch(UIKit.UIApplication application, Action<UIKit.UIBackgroundFetchResult> completionHandler);
[<Foundation.Export("application:performFetchWithCompletionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member PerformFetch : UIKit.UIApplication * Action<UIKit.UIBackgroundFetchResult> -> unit
override this.PerformFetch : UIKit.UIApplication * Action<UIKit.UIBackgroundFetchResult> -> unit

Parameters

application
UIApplication

Handle to the UIApplication.

completionHandler
Action<UIBackgroundFetchResult>

Callback to invoke to notify the operating system of the result of the background fetch operation.

Implements

Attributes

Applies to