NSUrlSession.GetTasks(NSUrlSessionPendingTasks) Method

Definition

Caution

Use GetTasks2 instead. This method may throw spurious InvalidCastExceptions, in particular for backgrounded tasks.

Requests the groups of pending tasks (data, upload and downloads).

[Foundation.Export("getTasksWithCompletionHandler:")]
[System.Obsolete("Use GetTasks2 instead. This method may throw spurious InvalidCastExceptions, in particular for backgrounded tasks.", false)]
public virtual void GetTasks (Foundation.NSUrlSessionPendingTasks completionHandler);

Parameters

completionHandler
NSUrlSessionPendingTasks

Method to invoke when the information about the tasks is ready.

Attributes

Applies to

Product Versions (Obsolete)
Xamarin iOS SDK (12)