UIKit.UIApplication.BeginBackgroundTask Method
Requests that the app be allowed to process in the background.

Syntax

[Foundation.Export("beginBackgroundTaskWithName:expirationHandler:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_7_0)]
[ObjCRuntime.ThreadSafe]
public virtual nint BeginBackgroundTask (string taskName, [ObjCRuntime.BlockProxy(typeof(ObjCRuntime.Trampolines/NIDAction))] Action expirationHandler)

Parameters

taskName
A name for the task (useful for debugging).
expirationHandler
Called shortly before the allowed background time for the app expires.

Returns

An id that, when passed to UIApplication.EndBackgroundTask, indicates that background processing has ended.

Remarks

Documentation for this section has not yet been entered.

Requirements

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