Share via


UIApplication.BeginBackgroundTask Method

Definition

Overloads

BeginBackgroundTask(Action)

[Foundation.Advice("Overriding this method requires a call to the overriden method.")]
[Foundation.Export("beginBackgroundTaskWithExpirationHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.RequiresSuper]
[ObjCRuntime.ThreadSafe]
public virtual IntPtr BeginBackgroundTask(Action? backgroundTimeExpired);
[<Foundation.Advice("Overriding this method requires a call to the overriden method.")>]
[<Foundation.Export("beginBackgroundTaskWithExpirationHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.RequiresSuper>]
[<ObjCRuntime.ThreadSafe>]
abstract member BeginBackgroundTask : Action -> nativeint
override this.BeginBackgroundTask : Action -> nativeint

Parameters

backgroundTimeExpired
Action

Returns

IntPtr

nativeint

Attributes

Applies to

BeginBackgroundTask(String, Action)

[Foundation.Advice("Overriding this method requires a call to the overriden method.")]
[Foundation.Export("beginBackgroundTaskWithName:expirationHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.RequiresSuper]
[ObjCRuntime.ThreadSafe]
public virtual IntPtr BeginBackgroundTask(string? taskName, Action? expirationHandler);
[<Foundation.Advice("Overriding this method requires a call to the overriden method.")>]
[<Foundation.Export("beginBackgroundTaskWithName:expirationHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.RequiresSuper>]
[<ObjCRuntime.ThreadSafe>]
abstract member BeginBackgroundTask : string * Action -> nativeint
override this.BeginBackgroundTask : string * Action -> nativeint

Parameters

taskName
String
expirationHandler
Action

Returns

IntPtr

nativeint

Attributes

Applies to