UIKit.UIApplication.EndBackgroundTask Method
Indicates to the system that background processing has ended for the taskId.

Syntax

[Foundation.Export("endBackgroundTask:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_4_0)]
[ObjCRuntime.ThreadSafe]
public virtual void EndBackgroundTask (nint taskId)

Parameters

taskId
The value returned by the matching UIApplication.BeginBackgroundTask method.

Remarks

This method, with UIApplication.BeginBackgroundTask, bookends code that should be allowed to run in the background. It does not affect the actual state of any threads. (See UIApplication.BeginBackgroundTask for discussion.)

This can be used from a background thread.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0