BackgroundTransferCompletionGroupTriggerDetails
BackgroundTransferCompletionGroupTriggerDetails
BackgroundTransferCompletionGroupTriggerDetails
BackgroundTransferCompletionGroupTriggerDetails
Class
Definition
Contains information about a BackgroundTransferCompletionGroup that can be only accessed from the Run method on the IBackgroundTask.
public : sealed class BackgroundTransferCompletionGroupTriggerDetails : IBackgroundTransferCompletionGroupTriggerDetailspublic sealed class BackgroundTransferCompletionGroupTriggerDetails : IBackgroundTransferCompletionGroupTriggerDetailsPublic NotInheritable Class BackgroundTransferCompletionGroupTriggerDetails Implements IBackgroundTransferCompletionGroupTriggerDetails// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
The BackgroundTransferCompletionGroup class allows an app to register to receive immediate notification after background transfer operations are complete even if the app is not in the foreground. The app registers a background task to receive notification that occurs if the background transfers completed successfully or if an error occurred. This allows the app to be immediately notified at the time of completion, instead of requiring that the app wait until the next time the app is restarted or moved to the foreground to query for completions.
The app must implement the IBackgroundTask to run that receives the completion notifications. The IBackgroundTask must be registered using the BackgroundTaskBuilder class. The background task must be declared in the app manifest. The app does not require lock screen access to use a BackgroundTransferCompletionGroup.
A BackgroundTransferCompletionGroupTriggerDetails instance is created when the background task for a BackgroundTransferCompletionGroup has received a notification after background transfer operations are complete.
Properties
Downloads Downloads Downloads Downloads
Gets the list of DownloadOperation objects associated with the BackgroundTransferCompletionGroup.
public : IVectorView<DownloadOperation> Downloads { get; }public IReadOnlyList<DownloadOperation> Downloads { get; }Public ReadOnly Property Downloads As IReadOnlyList<DownloadOperation>// You can use this property in JavaScript.
- Value
- IVectorView<DownloadOperation> IReadOnlyList<DownloadOperation> IReadOnlyList<DownloadOperation> IReadOnlyList<DownloadOperation>
The list of DownloadOperation objects associated with the BackgroundTransferCompletionGroup
Uploads Uploads Uploads Uploads
Gets the list of UploadOperation objects associated with the BackgroundTransferCompletionGroup.
public : IVectorView<UploadOperation> Uploads { get; }public IReadOnlyList<UploadOperation> Uploads { get; }Public ReadOnly Property Uploads As IReadOnlyList<UploadOperation>// You can use this property in JavaScript.
- Value
- IVectorView<UploadOperation> IReadOnlyList<UploadOperation> IReadOnlyList<UploadOperation> IReadOnlyList<UploadOperation>
The list of UploadOperation objects associated with the BackgroundTransferCompletionGroup.