UIApplication.BeginBackgroundTask Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| BeginBackgroundTask(Action) | |
| BeginBackgroundTask(String, Action) |
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