UIApplication.EndBackgroundTask(nint) 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.
Indicates to the system that background processing has ended for the taskId
.
[Foundation.Advice("Overriding this method requires a call to the overriden method.")]
[Foundation.Export("endBackgroundTask:")]
[ObjCRuntime.RequiresSuper]
[ObjCRuntime.ThreadSafe]
public virtual void EndBackgroundTask (nint taskId);
abstract member EndBackgroundTask : nint -> unit
override this.EndBackgroundTask : nint -> unit
Parameters
- taskId
- System.System.IntPtr System.nativeint
The value returned by the matching BeginBackgroundTask(String, Action) method.
- Attributes
Remarks
This method, with BeginBackgroundTask(String, Action), bookends code that should be allowed to run in the background. It does not affect the actual state of any threads. (See BeginBackgroundTask(String, Action) for discussion.)
This can be used from a background thread.