Indicates the inception of a new long-running background task.
Syntax
[Foundation.Export("beginBackgroundTaskWithExpirationHandler:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_4_0)]
[ObjCRuntime.ThreadSafe]
public virtual
nint BeginBackgroundTask ([ObjCRuntime.BlockProxy(typeof(ObjCRuntime.Trampolines/NIDAction))]
Action backgroundTimeExpired)
Parameters
- backgroundTimeExpired
- Action that runs when background time expires.
Returns
An id that, when passed to UIApplication.EndBackgroundTask, indicates that background processing has ended.
Remarks
Requirements
Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0