winrt-Windows.Networking.BackgroundTransfer 3.2.1__cp314-cp314-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt/_winrt_windows_networking_backgroundtransfer.cp314-win32.pyd +0 -0
- winrt/_winrt_windows_networking_backgroundtransfer.pyi +604 -0
- winrt/windows/networking/backgroundtransfer/__init__.py +85 -0
- winrt/windows/networking/backgroundtransfer/py.typed +0 -0
- winrt_windows_networking_backgroundtransfer-3.2.1.dist-info/METADATA +32 -0
- winrt_windows_networking_backgroundtransfer-3.2.1.dist-info/RECORD +8 -0
- winrt_windows_networking_backgroundtransfer-3.2.1.dist-info/WHEEL +5 -0
- winrt_windows_networking_backgroundtransfer-3.2.1.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
from abc import abstractmethod
|
|
10
|
+
|
|
11
|
+
import winrt._winrt
|
|
12
|
+
import winrt.system
|
|
13
|
+
import winrt.windows.applicationmodel.background as windows_applicationmodel_background
|
|
14
|
+
import winrt.windows.foundation as windows_foundation
|
|
15
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
16
|
+
import winrt.windows.security.credentials as windows_security_credentials
|
|
17
|
+
import winrt.windows.storage as windows_storage
|
|
18
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
19
|
+
import winrt.windows.ui.notifications as windows_ui_notifications
|
|
20
|
+
import winrt.windows.web as windows_web
|
|
21
|
+
|
|
22
|
+
from winrt.windows.networking.backgroundtransfer import BackgroundTransferBehavior, BackgroundTransferCostPolicy, BackgroundTransferPriority, BackgroundTransferStatus
|
|
23
|
+
|
|
24
|
+
Self = typing.TypeVar('Self')
|
|
25
|
+
|
|
26
|
+
@typing.final
|
|
27
|
+
class BackgroundDownloadProgress:
|
|
28
|
+
@_property
|
|
29
|
+
def bytes_received(self) -> winrt.system.UInt64: ...
|
|
30
|
+
@_property
|
|
31
|
+
def total_bytes_to_receive(self) -> winrt.system.UInt64: ...
|
|
32
|
+
@_property
|
|
33
|
+
def status(self) -> BackgroundTransferStatus: ...
|
|
34
|
+
@_property
|
|
35
|
+
def has_response_changed(self) -> bool: ...
|
|
36
|
+
@_property
|
|
37
|
+
def has_restarted(self) -> bool: ...
|
|
38
|
+
def __new__(cls, bytes_received: winrt.system.UInt64 = 0, total_bytes_to_receive: winrt.system.UInt64 = 0, status: BackgroundTransferStatus = BackgroundTransferStatus(0), has_response_changed: bool = False, has_restarted: bool = False) -> BackgroundDownloadProgress: ...
|
|
39
|
+
def __replace__(self, /, **changes: typing.Any) -> BackgroundDownloadProgress: ...
|
|
40
|
+
def unpack(self) -> typing.Tuple[winrt.system.UInt64, winrt.system.UInt64, BackgroundTransferStatus, bool, bool]: ...
|
|
41
|
+
|
|
42
|
+
@typing.final
|
|
43
|
+
class BackgroundTransferFileRange:
|
|
44
|
+
@_property
|
|
45
|
+
def offset(self) -> winrt.system.UInt64: ...
|
|
46
|
+
@_property
|
|
47
|
+
def length(self) -> winrt.system.UInt64: ...
|
|
48
|
+
def __new__(cls, offset: winrt.system.UInt64 = 0, length: winrt.system.UInt64 = 0) -> BackgroundTransferFileRange: ...
|
|
49
|
+
def __replace__(self, /, **changes: typing.Any) -> BackgroundTransferFileRange: ...
|
|
50
|
+
def unpack(self) -> typing.Tuple[winrt.system.UInt64, winrt.system.UInt64]: ...
|
|
51
|
+
|
|
52
|
+
@typing.final
|
|
53
|
+
class BackgroundUploadProgress:
|
|
54
|
+
@_property
|
|
55
|
+
def bytes_received(self) -> winrt.system.UInt64: ...
|
|
56
|
+
@_property
|
|
57
|
+
def bytes_sent(self) -> winrt.system.UInt64: ...
|
|
58
|
+
@_property
|
|
59
|
+
def total_bytes_to_receive(self) -> winrt.system.UInt64: ...
|
|
60
|
+
@_property
|
|
61
|
+
def total_bytes_to_send(self) -> winrt.system.UInt64: ...
|
|
62
|
+
@_property
|
|
63
|
+
def status(self) -> BackgroundTransferStatus: ...
|
|
64
|
+
@_property
|
|
65
|
+
def has_response_changed(self) -> bool: ...
|
|
66
|
+
@_property
|
|
67
|
+
def has_restarted(self) -> bool: ...
|
|
68
|
+
def __new__(cls, bytes_received: winrt.system.UInt64 = 0, bytes_sent: winrt.system.UInt64 = 0, total_bytes_to_receive: winrt.system.UInt64 = 0, total_bytes_to_send: winrt.system.UInt64 = 0, status: BackgroundTransferStatus = BackgroundTransferStatus(0), has_response_changed: bool = False, has_restarted: bool = False) -> BackgroundUploadProgress: ...
|
|
69
|
+
def __replace__(self, /, **changes: typing.Any) -> BackgroundUploadProgress: ...
|
|
70
|
+
def unpack(self) -> typing.Tuple[winrt.system.UInt64, winrt.system.UInt64, winrt.system.UInt64, winrt.system.UInt64, BackgroundTransferStatus, bool, bool]: ...
|
|
71
|
+
|
|
72
|
+
@typing.final
|
|
73
|
+
class BackgroundDownloader_Static(winrt._winrt.IInspectable_Static):
|
|
74
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.BackgroundTransfer.DownloadOperation>> Windows.Networking.BackgroundTransfer.BackgroundDownloader::GetCurrentDownloadsAsync()
|
|
75
|
+
def get_current_downloads_async(cls) -> windows_foundation.IAsyncOperation[typing.Sequence[DownloadOperation]]: ...
|
|
76
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.BackgroundTransfer.DownloadOperation>> Windows.Networking.BackgroundTransfer.BackgroundDownloader::GetCurrentDownloadsAsync(System.String)
|
|
77
|
+
# @deprecated("GetCurrentDownloadsAsync(group) may be altered or unavailable for releases after Windows 8.1. Instead, use GetCurrentDownloadsForTransferGroupAsync.")
|
|
78
|
+
def get_current_downloads_for_group_async(cls, group: str, /) -> windows_foundation.IAsyncOperation[typing.Sequence[DownloadOperation]]: ...
|
|
79
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.BackgroundTransfer.DownloadOperation>> Windows.Networking.BackgroundTransfer.BackgroundDownloader::GetCurrentDownloadsForTransferGroupAsync(Windows.Networking.BackgroundTransfer.BackgroundTransferGroup)
|
|
80
|
+
def get_current_downloads_for_transfer_group_async(cls, group: BackgroundTransferGroup, /) -> windows_foundation.IAsyncOperation[typing.Sequence[DownloadOperation]]: ...
|
|
81
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.BackgroundTransfer.UnconstrainedTransferRequestResult> Windows.Networking.BackgroundTransfer.BackgroundDownloader::RequestUnconstrainedDownloadsAsync(Windows.Foundation.Collections.IIterable`1<Windows.Networking.BackgroundTransfer.DownloadOperation>)
|
|
82
|
+
# @deprecated("RequestUnconstrainedDownloadsAsync is deprecated and may not work on all platforms. For more info, see MSDN.")
|
|
83
|
+
def request_unconstrained_downloads_async(cls, operations: typing.Iterable[DownloadOperation], /) -> windows_foundation.IAsyncOperation[UnconstrainedTransferRequestResult]: ...
|
|
84
|
+
|
|
85
|
+
@typing.final
|
|
86
|
+
class BackgroundDownloader(winrt.system.Object, IBackgroundTransferBase, metaclass=BackgroundDownloader_Static):
|
|
87
|
+
@typing.overload
|
|
88
|
+
def __new__(cls: typing.Type[Self], completion_group: BackgroundTransferCompletionGroup) -> Self: ...
|
|
89
|
+
@typing.overload
|
|
90
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
91
|
+
# Windows.Networking.BackgroundTransfer.DownloadOperation Windows.Networking.BackgroundTransfer.BackgroundDownloader::CreateDownload(Windows.Foundation.Uri,Windows.Storage.IStorageFile)
|
|
92
|
+
def create_download(self, uri: windows_foundation.Uri, result_file: windows_storage.IStorageFile, /) -> DownloadOperation: ...
|
|
93
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.BackgroundTransfer.DownloadOperation> Windows.Networking.BackgroundTransfer.BackgroundDownloader::CreateDownloadAsync(Windows.Foundation.Uri,Windows.Storage.IStorageFile,Windows.Storage.Streams.IInputStream)
|
|
94
|
+
def create_download_async(self, uri: windows_foundation.Uri, result_file: windows_storage.IStorageFile, request_body_stream: windows_storage_streams.IInputStream, /) -> windows_foundation.IAsyncOperation[DownloadOperation]: ...
|
|
95
|
+
# Windows.Networking.BackgroundTransfer.DownloadOperation Windows.Networking.BackgroundTransfer.BackgroundDownloader::CreateDownload(Windows.Foundation.Uri,Windows.Storage.IStorageFile,Windows.Storage.IStorageFile)
|
|
96
|
+
def create_download_from_file(self, uri: windows_foundation.Uri, result_file: windows_storage.IStorageFile, request_body_file: windows_storage.IStorageFile, /) -> DownloadOperation: ...
|
|
97
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::SetRequestHeader(System.String,System.String)
|
|
98
|
+
def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
99
|
+
# Windows.UI.Notifications.ToastNotification Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_FailureToastNotification()
|
|
100
|
+
@_property
|
|
101
|
+
def failure_toast_notification(self) -> windows_ui_notifications.ToastNotification: ...
|
|
102
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::put_FailureToastNotification(Windows.UI.Notifications.ToastNotification)
|
|
103
|
+
@failure_toast_notification.setter
|
|
104
|
+
def failure_toast_notification(self, value: windows_ui_notifications.ToastNotification) -> None: ...
|
|
105
|
+
# Windows.UI.Notifications.TileNotification Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_SuccessTileNotification()
|
|
106
|
+
@_property
|
|
107
|
+
def success_tile_notification(self) -> windows_ui_notifications.TileNotification: ...
|
|
108
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::put_SuccessTileNotification(Windows.UI.Notifications.TileNotification)
|
|
109
|
+
@success_tile_notification.setter
|
|
110
|
+
def success_tile_notification(self, value: windows_ui_notifications.TileNotification) -> None: ...
|
|
111
|
+
# Windows.UI.Notifications.ToastNotification Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_SuccessToastNotification()
|
|
112
|
+
@_property
|
|
113
|
+
def success_toast_notification(self) -> windows_ui_notifications.ToastNotification: ...
|
|
114
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::put_SuccessToastNotification(Windows.UI.Notifications.ToastNotification)
|
|
115
|
+
@success_toast_notification.setter
|
|
116
|
+
def success_toast_notification(self, value: windows_ui_notifications.ToastNotification) -> None: ...
|
|
117
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferGroup Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_TransferGroup()
|
|
118
|
+
@_property
|
|
119
|
+
def transfer_group(self) -> BackgroundTransferGroup: ...
|
|
120
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::put_TransferGroup(Windows.Networking.BackgroundTransfer.BackgroundTransferGroup)
|
|
121
|
+
@transfer_group.setter
|
|
122
|
+
def transfer_group(self, value: BackgroundTransferGroup) -> None: ...
|
|
123
|
+
# Windows.UI.Notifications.TileNotification Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_FailureTileNotification()
|
|
124
|
+
@_property
|
|
125
|
+
def failure_tile_notification(self) -> windows_ui_notifications.TileNotification: ...
|
|
126
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::put_FailureTileNotification(Windows.UI.Notifications.TileNotification)
|
|
127
|
+
@failure_tile_notification.setter
|
|
128
|
+
def failure_tile_notification(self, value: windows_ui_notifications.TileNotification) -> None: ...
|
|
129
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferCompletionGroup Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_CompletionGroup()
|
|
130
|
+
@_property
|
|
131
|
+
def completion_group(self) -> BackgroundTransferCompletionGroup: ...
|
|
132
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_CostPolicy()
|
|
133
|
+
@_property
|
|
134
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
135
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::put_CostPolicy(Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy)
|
|
136
|
+
@cost_policy.setter
|
|
137
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
138
|
+
# System.String Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_Group()
|
|
139
|
+
@_property
|
|
140
|
+
def group(self) -> str: ...
|
|
141
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::put_Group(System.String)
|
|
142
|
+
@group.setter
|
|
143
|
+
def group(self, value: str) -> None: ...
|
|
144
|
+
# System.String Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_Method()
|
|
145
|
+
@_property
|
|
146
|
+
def method(self) -> str: ...
|
|
147
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::put_Method(System.String)
|
|
148
|
+
@method.setter
|
|
149
|
+
def method(self, value: str) -> None: ...
|
|
150
|
+
# Windows.Security.Credentials.PasswordCredential Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_ProxyCredential()
|
|
151
|
+
@_property
|
|
152
|
+
def proxy_credential(self) -> windows_security_credentials.PasswordCredential: ...
|
|
153
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::put_ProxyCredential(Windows.Security.Credentials.PasswordCredential)
|
|
154
|
+
@proxy_credential.setter
|
|
155
|
+
def proxy_credential(self, value: windows_security_credentials.PasswordCredential) -> None: ...
|
|
156
|
+
# Windows.Security.Credentials.PasswordCredential Windows.Networking.BackgroundTransfer.BackgroundDownloader::get_ServerCredential()
|
|
157
|
+
@_property
|
|
158
|
+
def server_credential(self) -> windows_security_credentials.PasswordCredential: ...
|
|
159
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundDownloader::put_ServerCredential(Windows.Security.Credentials.PasswordCredential)
|
|
160
|
+
@server_credential.setter
|
|
161
|
+
def server_credential(self, value: windows_security_credentials.PasswordCredential) -> None: ...
|
|
162
|
+
|
|
163
|
+
@typing.final
|
|
164
|
+
class BackgroundTransferCompletionGroup(winrt.system.Object):
|
|
165
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
166
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundTransferCompletionGroup::Enable()
|
|
167
|
+
def enable(self) -> None: ...
|
|
168
|
+
# System.Boolean Windows.Networking.BackgroundTransfer.BackgroundTransferCompletionGroup::get_IsEnabled()
|
|
169
|
+
@_property
|
|
170
|
+
def is_enabled(self) -> bool: ...
|
|
171
|
+
# Windows.ApplicationModel.Background.IBackgroundTrigger Windows.Networking.BackgroundTransfer.BackgroundTransferCompletionGroup::get_Trigger()
|
|
172
|
+
@_property
|
|
173
|
+
def trigger(self) -> windows_applicationmodel_background.IBackgroundTrigger: ...
|
|
174
|
+
|
|
175
|
+
@typing.final
|
|
176
|
+
class BackgroundTransferCompletionGroupTriggerDetails(winrt.system.Object):
|
|
177
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Networking.BackgroundTransfer.DownloadOperation> Windows.Networking.BackgroundTransfer.BackgroundTransferCompletionGroupTriggerDetails::get_Downloads()
|
|
178
|
+
@_property
|
|
179
|
+
def downloads(self) -> typing.Sequence[DownloadOperation]: ...
|
|
180
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Networking.BackgroundTransfer.UploadOperation> Windows.Networking.BackgroundTransfer.BackgroundTransferCompletionGroupTriggerDetails::get_Uploads()
|
|
181
|
+
@_property
|
|
182
|
+
def uploads(self) -> typing.Sequence[UploadOperation]: ...
|
|
183
|
+
|
|
184
|
+
@typing.final
|
|
185
|
+
class BackgroundTransferContentPart(winrt.system.Object):
|
|
186
|
+
@typing.overload
|
|
187
|
+
def __new__(cls: typing.Type[Self], name: str) -> Self: ...
|
|
188
|
+
@typing.overload
|
|
189
|
+
def __new__(cls: typing.Type[Self], name: str, file_name: str) -> Self: ...
|
|
190
|
+
@typing.overload
|
|
191
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
192
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart::SetFile(Windows.Storage.IStorageFile)
|
|
193
|
+
def set_file(self, value: windows_storage.IStorageFile, /) -> None: ...
|
|
194
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart::SetHeader(System.String,System.String)
|
|
195
|
+
def set_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
196
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart::SetText(System.String)
|
|
197
|
+
def set_text(self, value: str, /) -> None: ...
|
|
198
|
+
|
|
199
|
+
@typing.final
|
|
200
|
+
class BackgroundTransferError_Static(winrt._winrt.IInspectable_Static):
|
|
201
|
+
# Windows.Web.WebErrorStatus Windows.Networking.BackgroundTransfer.BackgroundTransferError::GetStatus(System.Int32)
|
|
202
|
+
def get_status(cls, hresult: winrt.system.Int32, /) -> windows_web.WebErrorStatus: ...
|
|
203
|
+
|
|
204
|
+
@typing.final
|
|
205
|
+
class BackgroundTransferError(winrt.system.Object, metaclass=BackgroundTransferError_Static):
|
|
206
|
+
pass
|
|
207
|
+
|
|
208
|
+
@typing.final
|
|
209
|
+
class BackgroundTransferGroup_Static(winrt._winrt.IInspectable_Static):
|
|
210
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferGroup Windows.Networking.BackgroundTransfer.BackgroundTransferGroup::CreateGroup(System.String)
|
|
211
|
+
def create_group(cls, name: str, /) -> BackgroundTransferGroup: ...
|
|
212
|
+
|
|
213
|
+
@typing.final
|
|
214
|
+
class BackgroundTransferGroup(winrt.system.Object, metaclass=BackgroundTransferGroup_Static):
|
|
215
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferBehavior Windows.Networking.BackgroundTransfer.BackgroundTransferGroup::get_TransferBehavior()
|
|
216
|
+
@_property
|
|
217
|
+
def transfer_behavior(self) -> BackgroundTransferBehavior: ...
|
|
218
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundTransferGroup::put_TransferBehavior(Windows.Networking.BackgroundTransfer.BackgroundTransferBehavior)
|
|
219
|
+
@transfer_behavior.setter
|
|
220
|
+
def transfer_behavior(self, value: BackgroundTransferBehavior) -> None: ...
|
|
221
|
+
# System.String Windows.Networking.BackgroundTransfer.BackgroundTransferGroup::get_Name()
|
|
222
|
+
@_property
|
|
223
|
+
def name(self) -> str: ...
|
|
224
|
+
|
|
225
|
+
@typing.final
|
|
226
|
+
class BackgroundTransferRangesDownloadedEventArgs(winrt.system.Object):
|
|
227
|
+
# Windows.Foundation.Deferral Windows.Networking.BackgroundTransfer.BackgroundTransferRangesDownloadedEventArgs::GetDeferral()
|
|
228
|
+
def get_deferral(self) -> windows_foundation.Deferral: ...
|
|
229
|
+
# Windows.Foundation.Collections.IVector`1<Windows.Networking.BackgroundTransfer.BackgroundTransferFileRange> Windows.Networking.BackgroundTransfer.BackgroundTransferRangesDownloadedEventArgs::get_AddedRanges()
|
|
230
|
+
@_property
|
|
231
|
+
def added_ranges(self) -> typing.MutableSequence[BackgroundTransferFileRange]: ...
|
|
232
|
+
# System.Boolean Windows.Networking.BackgroundTransfer.BackgroundTransferRangesDownloadedEventArgs::get_WasDownloadRestarted()
|
|
233
|
+
@_property
|
|
234
|
+
def was_download_restarted(self) -> bool: ...
|
|
235
|
+
|
|
236
|
+
@typing.final
|
|
237
|
+
class BackgroundUploader_Static(winrt._winrt.IInspectable_Static):
|
|
238
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.BackgroundTransfer.UploadOperation>> Windows.Networking.BackgroundTransfer.BackgroundUploader::GetCurrentUploadsAsync()
|
|
239
|
+
def get_current_uploads_async(cls) -> windows_foundation.IAsyncOperation[typing.Sequence[UploadOperation]]: ...
|
|
240
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.BackgroundTransfer.UploadOperation>> Windows.Networking.BackgroundTransfer.BackgroundUploader::GetCurrentUploadsAsync(System.String)
|
|
241
|
+
# @deprecated("GetCurrentUploadsAsync(group) may be altered or unavailable for releases after Windows 8.1. Instead, use GetCurrentUploadsForTransferGroupAsync.")
|
|
242
|
+
def get_current_uploads_for_group_async(cls, group: str, /) -> windows_foundation.IAsyncOperation[typing.Sequence[UploadOperation]]: ...
|
|
243
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Networking.BackgroundTransfer.UploadOperation>> Windows.Networking.BackgroundTransfer.BackgroundUploader::GetCurrentUploadsForTransferGroupAsync(Windows.Networking.BackgroundTransfer.BackgroundTransferGroup)
|
|
244
|
+
def get_current_uploads_for_transfer_group_async(cls, group: BackgroundTransferGroup, /) -> windows_foundation.IAsyncOperation[typing.Sequence[UploadOperation]]: ...
|
|
245
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.BackgroundTransfer.UnconstrainedTransferRequestResult> Windows.Networking.BackgroundTransfer.BackgroundUploader::RequestUnconstrainedUploadsAsync(Windows.Foundation.Collections.IIterable`1<Windows.Networking.BackgroundTransfer.UploadOperation>)
|
|
246
|
+
# @deprecated("RequestUnconstrainedUploadsAsync is deprecated and may not work on all platforms. For more info, see MSDN.")
|
|
247
|
+
def request_unconstrained_uploads_async(cls, operations: typing.Iterable[UploadOperation], /) -> windows_foundation.IAsyncOperation[UnconstrainedTransferRequestResult]: ...
|
|
248
|
+
|
|
249
|
+
@typing.final
|
|
250
|
+
class BackgroundUploader(winrt.system.Object, IBackgroundTransferBase, metaclass=BackgroundUploader_Static):
|
|
251
|
+
@typing.overload
|
|
252
|
+
def __new__(cls: typing.Type[Self], completion_group: BackgroundTransferCompletionGroup) -> Self: ...
|
|
253
|
+
@typing.overload
|
|
254
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
255
|
+
# Windows.Networking.BackgroundTransfer.UploadOperation Windows.Networking.BackgroundTransfer.BackgroundUploader::CreateUpload(Windows.Foundation.Uri,Windows.Storage.IStorageFile)
|
|
256
|
+
def create_upload(self, uri: windows_foundation.Uri, source_file: windows_storage.IStorageFile, /) -> UploadOperation: ...
|
|
257
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.BackgroundTransfer.UploadOperation> Windows.Networking.BackgroundTransfer.BackgroundUploader::CreateUploadFromStreamAsync(Windows.Foundation.Uri,Windows.Storage.Streams.IInputStream)
|
|
258
|
+
def create_upload_from_stream_async(self, uri: windows_foundation.Uri, source_stream: windows_storage_streams.IInputStream, /) -> windows_foundation.IAsyncOperation[UploadOperation]: ...
|
|
259
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.BackgroundTransfer.UploadOperation> Windows.Networking.BackgroundTransfer.BackgroundUploader::CreateUploadAsync(Windows.Foundation.Uri,Windows.Foundation.Collections.IIterable`1<Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart>)
|
|
260
|
+
def create_upload_with_form_data_and_auto_boundary_async(self, uri: windows_foundation.Uri, parts: typing.Iterable[BackgroundTransferContentPart], /) -> windows_foundation.IAsyncOperation[UploadOperation]: ...
|
|
261
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.BackgroundTransfer.UploadOperation> Windows.Networking.BackgroundTransfer.BackgroundUploader::CreateUploadAsync(Windows.Foundation.Uri,Windows.Foundation.Collections.IIterable`1<Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart>,System.String,System.String)
|
|
262
|
+
def create_upload_with_sub_type_and_boundary_async(self, uri: windows_foundation.Uri, parts: typing.Iterable[BackgroundTransferContentPart], sub_type: str, boundary: str, /) -> windows_foundation.IAsyncOperation[UploadOperation]: ...
|
|
263
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Networking.BackgroundTransfer.UploadOperation> Windows.Networking.BackgroundTransfer.BackgroundUploader::CreateUploadAsync(Windows.Foundation.Uri,Windows.Foundation.Collections.IIterable`1<Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart>,System.String)
|
|
264
|
+
def create_upload_with_sub_type_async(self, uri: windows_foundation.Uri, parts: typing.Iterable[BackgroundTransferContentPart], sub_type: str, /) -> windows_foundation.IAsyncOperation[UploadOperation]: ...
|
|
265
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::SetRequestHeader(System.String,System.String)
|
|
266
|
+
def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
267
|
+
# Windows.Security.Credentials.PasswordCredential Windows.Networking.BackgroundTransfer.BackgroundUploader::get_ServerCredential()
|
|
268
|
+
@_property
|
|
269
|
+
def server_credential(self) -> windows_security_credentials.PasswordCredential: ...
|
|
270
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::put_ServerCredential(Windows.Security.Credentials.PasswordCredential)
|
|
271
|
+
@server_credential.setter
|
|
272
|
+
def server_credential(self, value: windows_security_credentials.PasswordCredential) -> None: ...
|
|
273
|
+
# Windows.Security.Credentials.PasswordCredential Windows.Networking.BackgroundTransfer.BackgroundUploader::get_ProxyCredential()
|
|
274
|
+
@_property
|
|
275
|
+
def proxy_credential(self) -> windows_security_credentials.PasswordCredential: ...
|
|
276
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::put_ProxyCredential(Windows.Security.Credentials.PasswordCredential)
|
|
277
|
+
@proxy_credential.setter
|
|
278
|
+
def proxy_credential(self, value: windows_security_credentials.PasswordCredential) -> None: ...
|
|
279
|
+
# System.String Windows.Networking.BackgroundTransfer.BackgroundUploader::get_Method()
|
|
280
|
+
@_property
|
|
281
|
+
def method(self) -> str: ...
|
|
282
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::put_Method(System.String)
|
|
283
|
+
@method.setter
|
|
284
|
+
def method(self, value: str) -> None: ...
|
|
285
|
+
# System.String Windows.Networking.BackgroundTransfer.BackgroundUploader::get_Group()
|
|
286
|
+
@_property
|
|
287
|
+
def group(self) -> str: ...
|
|
288
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::put_Group(System.String)
|
|
289
|
+
@group.setter
|
|
290
|
+
def group(self, value: str) -> None: ...
|
|
291
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy Windows.Networking.BackgroundTransfer.BackgroundUploader::get_CostPolicy()
|
|
292
|
+
@_property
|
|
293
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
294
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::put_CostPolicy(Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy)
|
|
295
|
+
@cost_policy.setter
|
|
296
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
297
|
+
# Windows.UI.Notifications.TileNotification Windows.Networking.BackgroundTransfer.BackgroundUploader::get_FailureTileNotification()
|
|
298
|
+
@_property
|
|
299
|
+
def failure_tile_notification(self) -> windows_ui_notifications.TileNotification: ...
|
|
300
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::put_FailureTileNotification(Windows.UI.Notifications.TileNotification)
|
|
301
|
+
@failure_tile_notification.setter
|
|
302
|
+
def failure_tile_notification(self, value: windows_ui_notifications.TileNotification) -> None: ...
|
|
303
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferGroup Windows.Networking.BackgroundTransfer.BackgroundUploader::get_TransferGroup()
|
|
304
|
+
@_property
|
|
305
|
+
def transfer_group(self) -> BackgroundTransferGroup: ...
|
|
306
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::put_TransferGroup(Windows.Networking.BackgroundTransfer.BackgroundTransferGroup)
|
|
307
|
+
@transfer_group.setter
|
|
308
|
+
def transfer_group(self, value: BackgroundTransferGroup) -> None: ...
|
|
309
|
+
# Windows.UI.Notifications.ToastNotification Windows.Networking.BackgroundTransfer.BackgroundUploader::get_SuccessToastNotification()
|
|
310
|
+
@_property
|
|
311
|
+
def success_toast_notification(self) -> windows_ui_notifications.ToastNotification: ...
|
|
312
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::put_SuccessToastNotification(Windows.UI.Notifications.ToastNotification)
|
|
313
|
+
@success_toast_notification.setter
|
|
314
|
+
def success_toast_notification(self, value: windows_ui_notifications.ToastNotification) -> None: ...
|
|
315
|
+
# Windows.UI.Notifications.TileNotification Windows.Networking.BackgroundTransfer.BackgroundUploader::get_SuccessTileNotification()
|
|
316
|
+
@_property
|
|
317
|
+
def success_tile_notification(self) -> windows_ui_notifications.TileNotification: ...
|
|
318
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::put_SuccessTileNotification(Windows.UI.Notifications.TileNotification)
|
|
319
|
+
@success_tile_notification.setter
|
|
320
|
+
def success_tile_notification(self, value: windows_ui_notifications.TileNotification) -> None: ...
|
|
321
|
+
# Windows.UI.Notifications.ToastNotification Windows.Networking.BackgroundTransfer.BackgroundUploader::get_FailureToastNotification()
|
|
322
|
+
@_property
|
|
323
|
+
def failure_toast_notification(self) -> windows_ui_notifications.ToastNotification: ...
|
|
324
|
+
# System.Void Windows.Networking.BackgroundTransfer.BackgroundUploader::put_FailureToastNotification(Windows.UI.Notifications.ToastNotification)
|
|
325
|
+
@failure_toast_notification.setter
|
|
326
|
+
def failure_toast_notification(self, value: windows_ui_notifications.ToastNotification) -> None: ...
|
|
327
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferCompletionGroup Windows.Networking.BackgroundTransfer.BackgroundUploader::get_CompletionGroup()
|
|
328
|
+
@_property
|
|
329
|
+
def completion_group(self) -> BackgroundTransferCompletionGroup: ...
|
|
330
|
+
|
|
331
|
+
@typing.final
|
|
332
|
+
class ContentPrefetcher_Static(winrt._winrt.IInspectable_Static):
|
|
333
|
+
# Windows.Foundation.Uri Windows.Networking.BackgroundTransfer.ContentPrefetcher::get_IndirectContentUri()
|
|
334
|
+
@_property
|
|
335
|
+
def indirect_content_uri(cls) -> windows_foundation.Uri: ...
|
|
336
|
+
# System.Void Windows.Networking.BackgroundTransfer.ContentPrefetcher::put_IndirectContentUri(Windows.Foundation.Uri)
|
|
337
|
+
@indirect_content_uri.setter
|
|
338
|
+
def indirect_content_uri(cls, value: windows_foundation.Uri) -> None: ...
|
|
339
|
+
# Windows.Foundation.Collections.IVector`1<Windows.Foundation.Uri> Windows.Networking.BackgroundTransfer.ContentPrefetcher::get_ContentUris()
|
|
340
|
+
@_property
|
|
341
|
+
def content_uris(cls) -> typing.MutableSequence[windows_foundation.Uri]: ...
|
|
342
|
+
# Windows.Foundation.IReference`1<Windows.Foundation.DateTime> Windows.Networking.BackgroundTransfer.ContentPrefetcher::get_LastSuccessfulPrefetchTime()
|
|
343
|
+
@_property
|
|
344
|
+
def last_successful_prefetch_time(cls) -> typing.Optional[datetime.datetime]: ...
|
|
345
|
+
|
|
346
|
+
@typing.final
|
|
347
|
+
class ContentPrefetcher(winrt.system.Object, metaclass=ContentPrefetcher_Static):
|
|
348
|
+
pass
|
|
349
|
+
|
|
350
|
+
@typing.final
|
|
351
|
+
class DownloadOperation(winrt.system.Object, IBackgroundTransferOperationPriority, IBackgroundTransferOperation):
|
|
352
|
+
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Networking.BackgroundTransfer.DownloadOperation,Windows.Networking.BackgroundTransfer.DownloadOperation> Windows.Networking.BackgroundTransfer.DownloadOperation::AttachAsync()
|
|
353
|
+
def attach_async(self) -> windows_foundation.IAsyncOperationWithProgress[DownloadOperation, DownloadOperation]: ...
|
|
354
|
+
# Windows.Foundation.Collections.IVector`1<Windows.Networking.BackgroundTransfer.BackgroundTransferFileRange> Windows.Networking.BackgroundTransfer.DownloadOperation::GetDownloadedRanges()
|
|
355
|
+
def get_downloaded_ranges(self) -> typing.MutableSequence[BackgroundTransferFileRange]: ...
|
|
356
|
+
# Windows.Networking.BackgroundTransfer.ResponseInformation Windows.Networking.BackgroundTransfer.DownloadOperation::GetResponseInformation()
|
|
357
|
+
def get_response_information(self) -> ResponseInformation: ...
|
|
358
|
+
# Windows.Storage.Streams.IRandomAccessStreamReference Windows.Networking.BackgroundTransfer.DownloadOperation::GetResultRandomAccessStreamReference()
|
|
359
|
+
def get_result_random_access_stream_reference(self) -> windows_storage_streams.IRandomAccessStreamReference: ...
|
|
360
|
+
# Windows.Storage.Streams.IInputStream Windows.Networking.BackgroundTransfer.DownloadOperation::GetResultStreamAt(System.UInt64)
|
|
361
|
+
def get_result_stream_at(self, position: winrt.system.UInt64, /) -> windows_storage_streams.IInputStream: ...
|
|
362
|
+
# System.Void Windows.Networking.BackgroundTransfer.DownloadOperation::MakeCurrentInTransferGroup()
|
|
363
|
+
def make_current_in_transfer_group(self) -> None: ...
|
|
364
|
+
# System.Void Windows.Networking.BackgroundTransfer.DownloadOperation::Pause()
|
|
365
|
+
def pause(self) -> None: ...
|
|
366
|
+
# System.Void Windows.Networking.BackgroundTransfer.DownloadOperation::RemoveRequestHeader(System.String)
|
|
367
|
+
def remove_request_header(self, header_name: str, /) -> None: ...
|
|
368
|
+
# System.Void Windows.Networking.BackgroundTransfer.DownloadOperation::Resume()
|
|
369
|
+
def resume(self) -> None: ...
|
|
370
|
+
# System.Void Windows.Networking.BackgroundTransfer.DownloadOperation::SetRequestHeader(System.String,System.String)
|
|
371
|
+
def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
372
|
+
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Networking.BackgroundTransfer.DownloadOperation,Windows.Networking.BackgroundTransfer.DownloadOperation> Windows.Networking.BackgroundTransfer.DownloadOperation::StartAsync()
|
|
373
|
+
def start_async(self) -> windows_foundation.IAsyncOperationWithProgress[DownloadOperation, DownloadOperation]: ...
|
|
374
|
+
# Windows.Foundation.EventRegistrationToken Windows.Networking.BackgroundTransfer.DownloadOperation::add_RangesDownloaded(Windows.Foundation.TypedEventHandler`2<Windows.Networking.BackgroundTransfer.DownloadOperation,Windows.Networking.BackgroundTransfer.BackgroundTransferRangesDownloadedEventArgs>)
|
|
375
|
+
def add_ranges_downloaded(self, event_handler: windows_foundation.TypedEventHandler[DownloadOperation, BackgroundTransferRangesDownloadedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
376
|
+
# System.Void Windows.Networking.BackgroundTransfer.DownloadOperation::remove_RangesDownloaded(Windows.Foundation.EventRegistrationToken)
|
|
377
|
+
def remove_ranges_downloaded(self, event_cookie: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
378
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy Windows.Networking.BackgroundTransfer.DownloadOperation::get_CostPolicy()
|
|
379
|
+
@_property
|
|
380
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
381
|
+
# System.Void Windows.Networking.BackgroundTransfer.DownloadOperation::put_CostPolicy(Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy)
|
|
382
|
+
@cost_policy.setter
|
|
383
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
384
|
+
# Windows.Foundation.Uri Windows.Networking.BackgroundTransfer.DownloadOperation::get_RequestedUri()
|
|
385
|
+
@_property
|
|
386
|
+
def requested_uri(self) -> windows_foundation.Uri: ...
|
|
387
|
+
# System.Void Windows.Networking.BackgroundTransfer.DownloadOperation::put_RequestedUri(Windows.Foundation.Uri)
|
|
388
|
+
@requested_uri.setter
|
|
389
|
+
def requested_uri(self, value: windows_foundation.Uri) -> None: ...
|
|
390
|
+
# System.String Windows.Networking.BackgroundTransfer.DownloadOperation::get_Method()
|
|
391
|
+
@_property
|
|
392
|
+
def method(self) -> str: ...
|
|
393
|
+
# System.String Windows.Networking.BackgroundTransfer.DownloadOperation::get_Group()
|
|
394
|
+
@_property
|
|
395
|
+
def group(self) -> str: ...
|
|
396
|
+
# System.Guid Windows.Networking.BackgroundTransfer.DownloadOperation::get_Guid()
|
|
397
|
+
@_property
|
|
398
|
+
def guid(self) -> _uuid.UUID: ...
|
|
399
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferPriority Windows.Networking.BackgroundTransfer.DownloadOperation::get_Priority()
|
|
400
|
+
@_property
|
|
401
|
+
def priority(self) -> BackgroundTransferPriority: ...
|
|
402
|
+
# System.Void Windows.Networking.BackgroundTransfer.DownloadOperation::put_Priority(Windows.Networking.BackgroundTransfer.BackgroundTransferPriority)
|
|
403
|
+
@priority.setter
|
|
404
|
+
def priority(self, value: BackgroundTransferPriority) -> None: ...
|
|
405
|
+
# Windows.Networking.BackgroundTransfer.BackgroundDownloadProgress Windows.Networking.BackgroundTransfer.DownloadOperation::get_Progress()
|
|
406
|
+
@_property
|
|
407
|
+
def progress(self) -> BackgroundDownloadProgress: ...
|
|
408
|
+
# Windows.Storage.IStorageFile Windows.Networking.BackgroundTransfer.DownloadOperation::get_ResultFile()
|
|
409
|
+
@_property
|
|
410
|
+
def result_file(self) -> windows_storage.IStorageFile: ...
|
|
411
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferGroup Windows.Networking.BackgroundTransfer.DownloadOperation::get_TransferGroup()
|
|
412
|
+
@_property
|
|
413
|
+
def transfer_group(self) -> BackgroundTransferGroup: ...
|
|
414
|
+
# System.Boolean Windows.Networking.BackgroundTransfer.DownloadOperation::get_IsRandomAccessRequired()
|
|
415
|
+
@_property
|
|
416
|
+
def is_random_access_required(self) -> bool: ...
|
|
417
|
+
# System.Void Windows.Networking.BackgroundTransfer.DownloadOperation::put_IsRandomAccessRequired(System.Boolean)
|
|
418
|
+
@is_random_access_required.setter
|
|
419
|
+
def is_random_access_required(self, value: bool) -> None: ...
|
|
420
|
+
# Windows.Foundation.IReference`1<Windows.Web.WebErrorStatus> Windows.Networking.BackgroundTransfer.DownloadOperation::get_CurrentWebErrorStatus()
|
|
421
|
+
@_property
|
|
422
|
+
def current_web_error_status(self) -> typing.Optional[windows_web.WebErrorStatus]: ...
|
|
423
|
+
# Windows.Foundation.Collections.IVector`1<Windows.Web.WebErrorStatus> Windows.Networking.BackgroundTransfer.DownloadOperation::get_RecoverableWebErrorStatuses()
|
|
424
|
+
@_property
|
|
425
|
+
def recoverable_web_error_statuses(self) -> typing.MutableSequence[windows_web.WebErrorStatus]: ...
|
|
426
|
+
|
|
427
|
+
@typing.final
|
|
428
|
+
class ResponseInformation(winrt.system.Object):
|
|
429
|
+
# Windows.Foundation.Uri Windows.Networking.BackgroundTransfer.ResponseInformation::get_ActualUri()
|
|
430
|
+
@_property
|
|
431
|
+
def actual_uri(self) -> windows_foundation.Uri: ...
|
|
432
|
+
# Windows.Foundation.Collections.IMapView`2<System.String,System.String> Windows.Networking.BackgroundTransfer.ResponseInformation::get_Headers()
|
|
433
|
+
@_property
|
|
434
|
+
def headers(self) -> typing.Mapping[str, str]: ...
|
|
435
|
+
# System.Boolean Windows.Networking.BackgroundTransfer.ResponseInformation::get_IsResumable()
|
|
436
|
+
@_property
|
|
437
|
+
def is_resumable(self) -> bool: ...
|
|
438
|
+
# System.UInt32 Windows.Networking.BackgroundTransfer.ResponseInformation::get_StatusCode()
|
|
439
|
+
@_property
|
|
440
|
+
def status_code(self) -> winrt.system.UInt32: ...
|
|
441
|
+
|
|
442
|
+
@typing.final
|
|
443
|
+
class UnconstrainedTransferRequestResult(winrt.system.Object):
|
|
444
|
+
# System.Boolean Windows.Networking.BackgroundTransfer.UnconstrainedTransferRequestResult::get_IsUnconstrained()
|
|
445
|
+
@_property
|
|
446
|
+
def is_unconstrained(self) -> bool: ...
|
|
447
|
+
|
|
448
|
+
@typing.final
|
|
449
|
+
class UploadOperation(winrt.system.Object, IBackgroundTransferOperationPriority, IBackgroundTransferOperation):
|
|
450
|
+
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Networking.BackgroundTransfer.UploadOperation,Windows.Networking.BackgroundTransfer.UploadOperation> Windows.Networking.BackgroundTransfer.UploadOperation::AttachAsync()
|
|
451
|
+
def attach_async(self) -> windows_foundation.IAsyncOperationWithProgress[UploadOperation, UploadOperation]: ...
|
|
452
|
+
# Windows.Networking.BackgroundTransfer.ResponseInformation Windows.Networking.BackgroundTransfer.UploadOperation::GetResponseInformation()
|
|
453
|
+
def get_response_information(self) -> ResponseInformation: ...
|
|
454
|
+
# Windows.Storage.Streams.IInputStream Windows.Networking.BackgroundTransfer.UploadOperation::GetResultStreamAt(System.UInt64)
|
|
455
|
+
def get_result_stream_at(self, position: winrt.system.UInt64, /) -> windows_storage_streams.IInputStream: ...
|
|
456
|
+
# System.Void Windows.Networking.BackgroundTransfer.UploadOperation::MakeCurrentInTransferGroup()
|
|
457
|
+
def make_current_in_transfer_group(self) -> None: ...
|
|
458
|
+
# System.Void Windows.Networking.BackgroundTransfer.UploadOperation::RemoveRequestHeader(System.String)
|
|
459
|
+
def remove_request_header(self, header_name: str, /) -> None: ...
|
|
460
|
+
# System.Void Windows.Networking.BackgroundTransfer.UploadOperation::SetRequestHeader(System.String,System.String)
|
|
461
|
+
def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
462
|
+
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Networking.BackgroundTransfer.UploadOperation,Windows.Networking.BackgroundTransfer.UploadOperation> Windows.Networking.BackgroundTransfer.UploadOperation::StartAsync()
|
|
463
|
+
def start_async(self) -> windows_foundation.IAsyncOperationWithProgress[UploadOperation, UploadOperation]: ...
|
|
464
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy Windows.Networking.BackgroundTransfer.UploadOperation::get_CostPolicy()
|
|
465
|
+
@_property
|
|
466
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
467
|
+
# System.Void Windows.Networking.BackgroundTransfer.UploadOperation::put_CostPolicy(Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy)
|
|
468
|
+
@cost_policy.setter
|
|
469
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
470
|
+
# System.String Windows.Networking.BackgroundTransfer.UploadOperation::get_Group()
|
|
471
|
+
@_property
|
|
472
|
+
def group(self) -> str: ...
|
|
473
|
+
# System.Guid Windows.Networking.BackgroundTransfer.UploadOperation::get_Guid()
|
|
474
|
+
@_property
|
|
475
|
+
def guid(self) -> _uuid.UUID: ...
|
|
476
|
+
# System.String Windows.Networking.BackgroundTransfer.UploadOperation::get_Method()
|
|
477
|
+
@_property
|
|
478
|
+
def method(self) -> str: ...
|
|
479
|
+
# Windows.Foundation.Uri Windows.Networking.BackgroundTransfer.UploadOperation::get_RequestedUri()
|
|
480
|
+
@_property
|
|
481
|
+
def requested_uri(self) -> windows_foundation.Uri: ...
|
|
482
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferPriority Windows.Networking.BackgroundTransfer.UploadOperation::get_Priority()
|
|
483
|
+
@_property
|
|
484
|
+
def priority(self) -> BackgroundTransferPriority: ...
|
|
485
|
+
# System.Void Windows.Networking.BackgroundTransfer.UploadOperation::put_Priority(Windows.Networking.BackgroundTransfer.BackgroundTransferPriority)
|
|
486
|
+
@priority.setter
|
|
487
|
+
def priority(self, value: BackgroundTransferPriority) -> None: ...
|
|
488
|
+
# Windows.Networking.BackgroundTransfer.BackgroundUploadProgress Windows.Networking.BackgroundTransfer.UploadOperation::get_Progress()
|
|
489
|
+
@_property
|
|
490
|
+
def progress(self) -> BackgroundUploadProgress: ...
|
|
491
|
+
# Windows.Storage.IStorageFile Windows.Networking.BackgroundTransfer.UploadOperation::get_SourceFile()
|
|
492
|
+
@_property
|
|
493
|
+
def source_file(self) -> windows_storage.IStorageFile: ...
|
|
494
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferGroup Windows.Networking.BackgroundTransfer.UploadOperation::get_TransferGroup()
|
|
495
|
+
@_property
|
|
496
|
+
def transfer_group(self) -> BackgroundTransferGroup: ...
|
|
497
|
+
|
|
498
|
+
@typing.final
|
|
499
|
+
class _IBackgroundTransferBase: ...
|
|
500
|
+
|
|
501
|
+
class IBackgroundTransferBase(winrt._winrt.IInspectable):
|
|
502
|
+
# System.Void Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::SetRequestHeader(System.String,System.String)
|
|
503
|
+
@abstractmethod
|
|
504
|
+
def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
|
|
505
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::get_CostPolicy()
|
|
506
|
+
@_property
|
|
507
|
+
@abstractmethod
|
|
508
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
509
|
+
# System.Void Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::put_CostPolicy(Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy)
|
|
510
|
+
@cost_policy.setter
|
|
511
|
+
@abstractmethod
|
|
512
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
513
|
+
# System.String Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::get_Group()
|
|
514
|
+
@_property
|
|
515
|
+
@abstractmethod
|
|
516
|
+
def group(self) -> str: ...
|
|
517
|
+
# System.Void Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::put_Group(System.String)
|
|
518
|
+
@group.setter
|
|
519
|
+
@abstractmethod
|
|
520
|
+
def group(self, value: str) -> None: ...
|
|
521
|
+
# System.String Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::get_Method()
|
|
522
|
+
@_property
|
|
523
|
+
@abstractmethod
|
|
524
|
+
def method(self) -> str: ...
|
|
525
|
+
# System.Void Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::put_Method(System.String)
|
|
526
|
+
@method.setter
|
|
527
|
+
@abstractmethod
|
|
528
|
+
def method(self, value: str) -> None: ...
|
|
529
|
+
# Windows.Security.Credentials.PasswordCredential Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::get_ProxyCredential()
|
|
530
|
+
@_property
|
|
531
|
+
@abstractmethod
|
|
532
|
+
def proxy_credential(self) -> windows_security_credentials.PasswordCredential: ...
|
|
533
|
+
# System.Void Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::put_ProxyCredential(Windows.Security.Credentials.PasswordCredential)
|
|
534
|
+
@proxy_credential.setter
|
|
535
|
+
@abstractmethod
|
|
536
|
+
def proxy_credential(self, value: windows_security_credentials.PasswordCredential) -> None: ...
|
|
537
|
+
# Windows.Security.Credentials.PasswordCredential Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::get_ServerCredential()
|
|
538
|
+
@_property
|
|
539
|
+
@abstractmethod
|
|
540
|
+
def server_credential(self) -> windows_security_credentials.PasswordCredential: ...
|
|
541
|
+
# System.Void Windows.Networking.BackgroundTransfer.IBackgroundTransferBase::put_ServerCredential(Windows.Security.Credentials.PasswordCredential)
|
|
542
|
+
@server_credential.setter
|
|
543
|
+
@abstractmethod
|
|
544
|
+
def server_credential(self, value: windows_security_credentials.PasswordCredential) -> None: ...
|
|
545
|
+
|
|
546
|
+
@typing.final
|
|
547
|
+
class _IBackgroundTransferContentPartFactory: ...
|
|
548
|
+
|
|
549
|
+
class IBackgroundTransferContentPartFactory(winrt._winrt.IInspectable):
|
|
550
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart Windows.Networking.BackgroundTransfer.IBackgroundTransferContentPartFactory::CreateWithName(System.String)
|
|
551
|
+
@abstractmethod
|
|
552
|
+
def create_with_name(self, name: str, /) -> BackgroundTransferContentPart: ...
|
|
553
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart Windows.Networking.BackgroundTransfer.IBackgroundTransferContentPartFactory::CreateWithNameAndFileName(System.String,System.String)
|
|
554
|
+
@abstractmethod
|
|
555
|
+
def create_with_name_and_file_name(self, name: str, file_name: str, /) -> BackgroundTransferContentPart: ...
|
|
556
|
+
|
|
557
|
+
@typing.final
|
|
558
|
+
class _IBackgroundTransferOperation: ...
|
|
559
|
+
|
|
560
|
+
class IBackgroundTransferOperation(winrt._winrt.IInspectable):
|
|
561
|
+
# Windows.Networking.BackgroundTransfer.ResponseInformation Windows.Networking.BackgroundTransfer.IBackgroundTransferOperation::GetResponseInformation()
|
|
562
|
+
@abstractmethod
|
|
563
|
+
def get_response_information(self) -> ResponseInformation: ...
|
|
564
|
+
# Windows.Storage.Streams.IInputStream Windows.Networking.BackgroundTransfer.IBackgroundTransferOperation::GetResultStreamAt(System.UInt64)
|
|
565
|
+
@abstractmethod
|
|
566
|
+
def get_result_stream_at(self, position: winrt.system.UInt64, /) -> windows_storage_streams.IInputStream: ...
|
|
567
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy Windows.Networking.BackgroundTransfer.IBackgroundTransferOperation::get_CostPolicy()
|
|
568
|
+
@_property
|
|
569
|
+
@abstractmethod
|
|
570
|
+
def cost_policy(self) -> BackgroundTransferCostPolicy: ...
|
|
571
|
+
# System.Void Windows.Networking.BackgroundTransfer.IBackgroundTransferOperation::put_CostPolicy(Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy)
|
|
572
|
+
@cost_policy.setter
|
|
573
|
+
@abstractmethod
|
|
574
|
+
def cost_policy(self, value: BackgroundTransferCostPolicy) -> None: ...
|
|
575
|
+
# System.String Windows.Networking.BackgroundTransfer.IBackgroundTransferOperation::get_Group()
|
|
576
|
+
@_property
|
|
577
|
+
@abstractmethod
|
|
578
|
+
def group(self) -> str: ...
|
|
579
|
+
# System.Guid Windows.Networking.BackgroundTransfer.IBackgroundTransferOperation::get_Guid()
|
|
580
|
+
@_property
|
|
581
|
+
@abstractmethod
|
|
582
|
+
def guid(self) -> _uuid.UUID: ...
|
|
583
|
+
# System.String Windows.Networking.BackgroundTransfer.IBackgroundTransferOperation::get_Method()
|
|
584
|
+
@_property
|
|
585
|
+
@abstractmethod
|
|
586
|
+
def method(self) -> str: ...
|
|
587
|
+
# Windows.Foundation.Uri Windows.Networking.BackgroundTransfer.IBackgroundTransferOperation::get_RequestedUri()
|
|
588
|
+
@_property
|
|
589
|
+
@abstractmethod
|
|
590
|
+
def requested_uri(self) -> windows_foundation.Uri: ...
|
|
591
|
+
|
|
592
|
+
@typing.final
|
|
593
|
+
class _IBackgroundTransferOperationPriority: ...
|
|
594
|
+
|
|
595
|
+
class IBackgroundTransferOperationPriority(winrt._winrt.IInspectable):
|
|
596
|
+
# Windows.Networking.BackgroundTransfer.BackgroundTransferPriority Windows.Networking.BackgroundTransfer.IBackgroundTransferOperationPriority::get_Priority()
|
|
597
|
+
@_property
|
|
598
|
+
@abstractmethod
|
|
599
|
+
def priority(self) -> BackgroundTransferPriority: ...
|
|
600
|
+
# System.Void Windows.Networking.BackgroundTransfer.IBackgroundTransferOperationPriority::put_Priority(Windows.Networking.BackgroundTransfer.BackgroundTransferPriority)
|
|
601
|
+
@priority.setter
|
|
602
|
+
@abstractmethod
|
|
603
|
+
def priority(self, value: BackgroundTransferPriority) -> None: ...
|
|
604
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt._winrt_windows_networking_backgroundtransfer import (
|
|
7
|
+
BackgroundDownloadProgress,
|
|
8
|
+
BackgroundTransferFileRange,
|
|
9
|
+
BackgroundUploadProgress,
|
|
10
|
+
BackgroundDownloader,
|
|
11
|
+
BackgroundTransferCompletionGroup,
|
|
12
|
+
BackgroundTransferCompletionGroupTriggerDetails,
|
|
13
|
+
BackgroundTransferContentPart,
|
|
14
|
+
BackgroundTransferError,
|
|
15
|
+
BackgroundTransferGroup,
|
|
16
|
+
BackgroundTransferRangesDownloadedEventArgs,
|
|
17
|
+
BackgroundUploader,
|
|
18
|
+
ContentPrefetcher,
|
|
19
|
+
DownloadOperation,
|
|
20
|
+
ResponseInformation,
|
|
21
|
+
UnconstrainedTransferRequestResult,
|
|
22
|
+
UploadOperation,
|
|
23
|
+
_IBackgroundTransferBase,
|
|
24
|
+
IBackgroundTransferBase,
|
|
25
|
+
_IBackgroundTransferContentPartFactory,
|
|
26
|
+
IBackgroundTransferContentPartFactory,
|
|
27
|
+
_IBackgroundTransferOperation,
|
|
28
|
+
IBackgroundTransferOperation,
|
|
29
|
+
_IBackgroundTransferOperationPriority,
|
|
30
|
+
IBackgroundTransferOperationPriority,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
__all__ = [
|
|
34
|
+
"BackgroundTransferBehavior",
|
|
35
|
+
"BackgroundTransferCostPolicy",
|
|
36
|
+
"BackgroundTransferPriority",
|
|
37
|
+
"BackgroundTransferStatus",
|
|
38
|
+
"BackgroundDownloadProgress",
|
|
39
|
+
"BackgroundTransferFileRange",
|
|
40
|
+
"BackgroundUploadProgress",
|
|
41
|
+
"BackgroundDownloader",
|
|
42
|
+
"BackgroundTransferCompletionGroup",
|
|
43
|
+
"BackgroundTransferCompletionGroupTriggerDetails",
|
|
44
|
+
"BackgroundTransferContentPart",
|
|
45
|
+
"BackgroundTransferError",
|
|
46
|
+
"BackgroundTransferGroup",
|
|
47
|
+
"BackgroundTransferRangesDownloadedEventArgs",
|
|
48
|
+
"BackgroundUploader",
|
|
49
|
+
"ContentPrefetcher",
|
|
50
|
+
"DownloadOperation",
|
|
51
|
+
"ResponseInformation",
|
|
52
|
+
"UnconstrainedTransferRequestResult",
|
|
53
|
+
"UploadOperation",
|
|
54
|
+
"IBackgroundTransferBase",
|
|
55
|
+
"IBackgroundTransferContentPartFactory",
|
|
56
|
+
"IBackgroundTransferOperation",
|
|
57
|
+
"IBackgroundTransferOperationPriority",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
class BackgroundTransferBehavior(enum.IntEnum):
|
|
61
|
+
PARALLEL = 0
|
|
62
|
+
SERIALIZED = 1
|
|
63
|
+
|
|
64
|
+
class BackgroundTransferCostPolicy(enum.IntEnum):
|
|
65
|
+
DEFAULT = 0
|
|
66
|
+
UNRESTRICTED_ONLY = 1
|
|
67
|
+
ALWAYS = 2
|
|
68
|
+
|
|
69
|
+
class BackgroundTransferPriority(enum.IntEnum):
|
|
70
|
+
DEFAULT = 0
|
|
71
|
+
HIGH = 1
|
|
72
|
+
LOW = 2
|
|
73
|
+
|
|
74
|
+
class BackgroundTransferStatus(enum.IntEnum):
|
|
75
|
+
IDLE = 0
|
|
76
|
+
RUNNING = 1
|
|
77
|
+
PAUSED_BY_APPLICATION = 2
|
|
78
|
+
PAUSED_COSTED_NETWORK = 3
|
|
79
|
+
PAUSED_NO_NETWORK = 4
|
|
80
|
+
COMPLETED = 5
|
|
81
|
+
CANCELED = 6
|
|
82
|
+
ERROR = 7
|
|
83
|
+
PAUSED_RECOVERABLE_WEB_ERROR_STATUS = 8
|
|
84
|
+
PAUSED_SYSTEM_POLICY = 32
|
|
85
|
+
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: winrt-Windows.Networking.BackgroundTransfer
|
|
3
|
+
Version: 3.2.1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime~=3.2.1.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Background[all]~=3.2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]~=3.2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Security.Credentials[all]~=3.2.1.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Storage[all]~=3.2.1.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]~=3.2.1.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.UI.Notifications[all]~=3.2.1.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.Web[all]~=3.2.1.0; extra == "all"
|
|
25
|
+
|
|
26
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
27
|
+
|
|
28
|
+
# winrt-Windows.Networking.BackgroundTransfer
|
|
29
|
+
|
|
30
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Networking.BackgroundTransfer` namespace.
|
|
31
|
+
|
|
32
|
+
This package provides the `winrt.windows.networking.backgroundtransfer` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_networking_backgroundtransfer.cp314-win32.pyd,sha256=iFUQcsA3lFnOUMs3-vZTe3HKVGdAW9PAjTGiuJHhg2o,480768
|
|
2
|
+
winrt/_winrt_windows_networking_backgroundtransfer.pyi,sha256=761Ck_FMe3nurfn_NR8QtWP_ILaq3iE8EXRcXcx2kGs,45771
|
|
3
|
+
winrt/windows/networking/backgroundtransfer/__init__.py,sha256=DfVwmaJNpfYXz0mXYWyUdWyEVPgy1H-wVUDWPTN7zKs,2411
|
|
4
|
+
winrt/windows/networking/backgroundtransfer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_windows_networking_backgroundtransfer-3.2.1.dist-info/METADATA,sha256=RwXlWmdb8XC2zBQkX0HzN5ua0AFmA8f48OwrAGdw9Og,1642
|
|
6
|
+
winrt_windows_networking_backgroundtransfer-3.2.1.dist-info/WHEEL,sha256=avp3B09fSRXVHn4cshTNKc58MtFVN-cVe0NyrqeYT2s,97
|
|
7
|
+
winrt_windows_networking_backgroundtransfer-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_windows_networking_backgroundtransfer-3.2.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|