winrt-Windows.ApplicationModel.DataTransfer 2.2.0__cp313-cp313-win_amd64.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_applicationmodel_datatransfer.cp313-win_amd64.pyd +0 -0
- winrt/_winrt_windows_applicationmodel_datatransfer.pyi +462 -0
- winrt/windows/applicationmodel/datatransfer/__init__.py +95 -0
- winrt/windows/applicationmodel/datatransfer/py.typed +0 -0
- winrt_Windows.ApplicationModel.DataTransfer-2.2.0.dist-info/METADATA +30 -0
- winrt_Windows.ApplicationModel.DataTransfer-2.2.0.dist-info/RECORD +8 -0
- winrt_Windows.ApplicationModel.DataTransfer-2.2.0.dist-info/WHEEL +5 -0
- winrt_Windows.ApplicationModel.DataTransfer-2.2.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
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
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.security.enterprisedata as windows_security_enterprisedata
|
|
15
|
+
import winrt.windows.storage as windows_storage
|
|
16
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
17
|
+
import winrt.windows.ui as windows_ui
|
|
18
|
+
|
|
19
|
+
from winrt.windows.applicationmodel.datatransfer import ClipboardHistoryItemsResultStatus, DataPackageOperation, SetHistoryItemAsContentStatus, ShareUITheme
|
|
20
|
+
from winrt.windows.applicationmodel.datatransfer import DataProviderHandler, ShareProviderHandler
|
|
21
|
+
|
|
22
|
+
Self = typing.TypeVar('Self')
|
|
23
|
+
|
|
24
|
+
@typing.final
|
|
25
|
+
class Clipboard_Static(type):
|
|
26
|
+
def clear(cls) -> None: ...
|
|
27
|
+
def clear_history(cls) -> bool: ...
|
|
28
|
+
def delete_item_from_history(cls, item: typing.Optional[ClipboardHistoryItem], /) -> bool: ...
|
|
29
|
+
def flush(cls) -> None: ...
|
|
30
|
+
def get_content(cls) -> typing.Optional[DataPackageView]: ...
|
|
31
|
+
def get_history_items_async(cls) -> windows_foundation.IAsyncOperation[ClipboardHistoryItemsResult]: ...
|
|
32
|
+
def is_history_enabled(cls) -> bool: ...
|
|
33
|
+
def is_roaming_enabled(cls) -> bool: ...
|
|
34
|
+
def set_content(cls, content: typing.Optional[DataPackage], /) -> None: ...
|
|
35
|
+
def set_content_with_options(cls, content: typing.Optional[DataPackage], options: typing.Optional[ClipboardContentOptions], /) -> bool: ...
|
|
36
|
+
def set_history_item_as_content(cls, item: typing.Optional[ClipboardHistoryItem], /) -> SetHistoryItemAsContentStatus: ...
|
|
37
|
+
def add_history_changed(cls, handler: windows_foundation.EventHandler[ClipboardHistoryChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
38
|
+
def remove_history_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
39
|
+
def add_history_enabled_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
40
|
+
def remove_history_enabled_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
41
|
+
def add_roaming_enabled_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
42
|
+
def remove_roaming_enabled_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
43
|
+
def add_content_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
44
|
+
def remove_content_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
45
|
+
|
|
46
|
+
@typing.final
|
|
47
|
+
class Clipboard(winrt.system.Object, metaclass=Clipboard_Static):
|
|
48
|
+
pass
|
|
49
|
+
|
|
50
|
+
@typing.final
|
|
51
|
+
class ClipboardContentOptions(winrt.system.Object):
|
|
52
|
+
@staticmethod
|
|
53
|
+
def _from(obj: winrt.system.Object, /) -> ClipboardContentOptions: ...
|
|
54
|
+
def __new__(cls: typing.Type[ClipboardContentOptions]) -> ClipboardContentOptions: ...
|
|
55
|
+
@_property
|
|
56
|
+
def is_roamable(self) -> bool: ...
|
|
57
|
+
@is_roamable.setter
|
|
58
|
+
def is_roamable(self, value: bool) -> None: ...
|
|
59
|
+
@_property
|
|
60
|
+
def is_allowed_in_history(self) -> bool: ...
|
|
61
|
+
@is_allowed_in_history.setter
|
|
62
|
+
def is_allowed_in_history(self, value: bool) -> None: ...
|
|
63
|
+
@_property
|
|
64
|
+
def history_formats(self) -> typing.Optional[windows_foundation_collections.IVector[str]]: ...
|
|
65
|
+
@_property
|
|
66
|
+
def roaming_formats(self) -> typing.Optional[windows_foundation_collections.IVector[str]]: ...
|
|
67
|
+
|
|
68
|
+
@typing.final
|
|
69
|
+
class ClipboardHistoryChangedEventArgs(winrt.system.Object):
|
|
70
|
+
@staticmethod
|
|
71
|
+
def _from(obj: winrt.system.Object, /) -> ClipboardHistoryChangedEventArgs: ...
|
|
72
|
+
|
|
73
|
+
@typing.final
|
|
74
|
+
class ClipboardHistoryItem(winrt.system.Object):
|
|
75
|
+
@staticmethod
|
|
76
|
+
def _from(obj: winrt.system.Object, /) -> ClipboardHistoryItem: ...
|
|
77
|
+
@_property
|
|
78
|
+
def content(self) -> typing.Optional[DataPackageView]: ...
|
|
79
|
+
@_property
|
|
80
|
+
def id(self) -> str: ...
|
|
81
|
+
@_property
|
|
82
|
+
def timestamp(self) -> datetime.datetime: ...
|
|
83
|
+
|
|
84
|
+
@typing.final
|
|
85
|
+
class ClipboardHistoryItemsResult(winrt.system.Object):
|
|
86
|
+
@staticmethod
|
|
87
|
+
def _from(obj: winrt.system.Object, /) -> ClipboardHistoryItemsResult: ...
|
|
88
|
+
@_property
|
|
89
|
+
def items(self) -> typing.Optional[windows_foundation_collections.IVectorView[ClipboardHistoryItem]]: ...
|
|
90
|
+
@_property
|
|
91
|
+
def status(self) -> ClipboardHistoryItemsResultStatus: ...
|
|
92
|
+
|
|
93
|
+
@typing.final
|
|
94
|
+
class DataPackage(winrt.system.Object):
|
|
95
|
+
@staticmethod
|
|
96
|
+
def _from(obj: winrt.system.Object, /) -> DataPackage: ...
|
|
97
|
+
def __new__(cls: typing.Type[DataPackage]) -> DataPackage: ...
|
|
98
|
+
def get_view(self) -> typing.Optional[DataPackageView]: ...
|
|
99
|
+
def set_application_link(self, value: typing.Optional[windows_foundation.Uri], /) -> None: ...
|
|
100
|
+
def set_bitmap(self, value: typing.Optional[windows_storage_streams.RandomAccessStreamReference], /) -> None: ...
|
|
101
|
+
def set_data(self, format_id: str, value: typing.Optional[winrt.system.Object], /) -> None: ...
|
|
102
|
+
def set_data_provider(self, format_id: str, delay_renderer: typing.Optional[DataProviderHandler], /) -> None: ...
|
|
103
|
+
def set_html_format(self, value: str, /) -> None: ...
|
|
104
|
+
def set_rtf(self, value: str, /) -> None: ...
|
|
105
|
+
@typing.overload
|
|
106
|
+
def set_storage_items(self, value: typing.Iterable[windows_storage.IStorageItem], /) -> None: ...
|
|
107
|
+
@typing.overload
|
|
108
|
+
def set_storage_items(self, value: typing.Iterable[windows_storage.IStorageItem], read_only: bool, /) -> None: ...
|
|
109
|
+
def set_text(self, value: str, /) -> None: ...
|
|
110
|
+
def set_uri(self, value: typing.Optional[windows_foundation.Uri], /) -> None: ...
|
|
111
|
+
def set_web_link(self, value: typing.Optional[windows_foundation.Uri], /) -> None: ...
|
|
112
|
+
def add_destroyed(self, handler: windows_foundation.TypedEventHandler[DataPackage, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
113
|
+
def remove_destroyed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
114
|
+
def add_operation_completed(self, handler: windows_foundation.TypedEventHandler[DataPackage, OperationCompletedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
115
|
+
def remove_operation_completed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
116
|
+
def add_share_completed(self, handler: windows_foundation.TypedEventHandler[DataPackage, ShareCompletedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
117
|
+
def remove_share_completed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
118
|
+
def add_share_canceled(self, handler: windows_foundation.TypedEventHandler[DataPackage, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
119
|
+
def remove_share_canceled(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
120
|
+
@_property
|
|
121
|
+
def requested_operation(self) -> DataPackageOperation: ...
|
|
122
|
+
@requested_operation.setter
|
|
123
|
+
def requested_operation(self, value: DataPackageOperation) -> None: ...
|
|
124
|
+
@_property
|
|
125
|
+
def properties(self) -> typing.Optional[DataPackagePropertySet]: ...
|
|
126
|
+
@_property
|
|
127
|
+
def resource_map(self) -> typing.Optional[windows_foundation_collections.IMap[str, windows_storage_streams.RandomAccessStreamReference]]: ...
|
|
128
|
+
|
|
129
|
+
@typing.final
|
|
130
|
+
class DataPackagePropertySet(winrt.system.Object, winrt._winrt.MutableMapping[str, winrt.system.Object]):
|
|
131
|
+
def __len__(self) -> int: ...
|
|
132
|
+
def __iter__(self) -> typing.Iterator[str]: ...
|
|
133
|
+
def __contains__(self, key: object) -> bool: ...
|
|
134
|
+
def __getitem__(self, key: str) -> winrt.system.Object: ...
|
|
135
|
+
def __setitem__(self, key: str, value: winrt.system.Object) -> None: ...
|
|
136
|
+
def __delitem__(self, key: str) -> None: ...
|
|
137
|
+
@staticmethod
|
|
138
|
+
def _from(obj: winrt.system.Object, /) -> DataPackagePropertySet: ...
|
|
139
|
+
def clear(self) -> None: ...
|
|
140
|
+
def first(self) -> typing.Optional[windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, winrt.system.Object]]]: ...
|
|
141
|
+
def get_view(self) -> typing.Optional[windows_foundation_collections.IMapView[str, winrt.system.Object]]: ...
|
|
142
|
+
def has_key(self, key: str, /) -> bool: ...
|
|
143
|
+
def insert(self, key: str, value: typing.Optional[winrt.system.Object], /) -> bool: ...
|
|
144
|
+
def lookup(self, key: str, /) -> typing.Optional[winrt.system.Object]: ...
|
|
145
|
+
def remove(self, key: str, /) -> None: ...
|
|
146
|
+
@_property
|
|
147
|
+
def title(self) -> str: ...
|
|
148
|
+
@title.setter
|
|
149
|
+
def title(self, value: str) -> None: ...
|
|
150
|
+
@_property
|
|
151
|
+
def thumbnail(self) -> typing.Optional[windows_storage_streams.IRandomAccessStreamReference]: ...
|
|
152
|
+
@thumbnail.setter
|
|
153
|
+
def thumbnail(self, value: typing.Optional[windows_storage_streams.IRandomAccessStreamReference]) -> None: ...
|
|
154
|
+
@_property
|
|
155
|
+
def description(self) -> str: ...
|
|
156
|
+
@description.setter
|
|
157
|
+
def description(self, value: str) -> None: ...
|
|
158
|
+
@_property
|
|
159
|
+
def application_name(self) -> str: ...
|
|
160
|
+
@application_name.setter
|
|
161
|
+
def application_name(self, value: str) -> None: ...
|
|
162
|
+
@_property
|
|
163
|
+
def application_listing_uri(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
164
|
+
@application_listing_uri.setter
|
|
165
|
+
def application_listing_uri(self, value: typing.Optional[windows_foundation.Uri]) -> None: ...
|
|
166
|
+
@_property
|
|
167
|
+
def file_types(self) -> typing.Optional[windows_foundation_collections.IVector[str]]: ...
|
|
168
|
+
@_property
|
|
169
|
+
def square30x30_logo(self) -> typing.Optional[windows_storage_streams.IRandomAccessStreamReference]: ...
|
|
170
|
+
@square30x30_logo.setter
|
|
171
|
+
def square30x30_logo(self, value: typing.Optional[windows_storage_streams.IRandomAccessStreamReference]) -> None: ...
|
|
172
|
+
@_property
|
|
173
|
+
def package_family_name(self) -> str: ...
|
|
174
|
+
@package_family_name.setter
|
|
175
|
+
def package_family_name(self, value: str) -> None: ...
|
|
176
|
+
@_property
|
|
177
|
+
def logo_background_color(self) -> windows_ui.Color: ...
|
|
178
|
+
@logo_background_color.setter
|
|
179
|
+
def logo_background_color(self, value: windows_ui.Color) -> None: ...
|
|
180
|
+
@_property
|
|
181
|
+
def content_source_web_link(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
182
|
+
@content_source_web_link.setter
|
|
183
|
+
def content_source_web_link(self, value: typing.Optional[windows_foundation.Uri]) -> None: ...
|
|
184
|
+
@_property
|
|
185
|
+
def content_source_application_link(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
186
|
+
@content_source_application_link.setter
|
|
187
|
+
def content_source_application_link(self, value: typing.Optional[windows_foundation.Uri]) -> None: ...
|
|
188
|
+
@_property
|
|
189
|
+
def enterprise_id(self) -> str: ...
|
|
190
|
+
@enterprise_id.setter
|
|
191
|
+
def enterprise_id(self, value: str) -> None: ...
|
|
192
|
+
@_property
|
|
193
|
+
def content_source_user_activity_json(self) -> str: ...
|
|
194
|
+
@content_source_user_activity_json.setter
|
|
195
|
+
def content_source_user_activity_json(self, value: str) -> None: ...
|
|
196
|
+
@_property
|
|
197
|
+
def size(self) -> winrt.system.UInt32: ...
|
|
198
|
+
|
|
199
|
+
@typing.final
|
|
200
|
+
class DataPackagePropertySetView(winrt.system.Object, winrt._winrt.Mapping[str, winrt.system.Object]):
|
|
201
|
+
def __len__(self) -> int: ...
|
|
202
|
+
def __iter__(self) -> typing.Iterator[str]: ...
|
|
203
|
+
def __contains__(self, key: object) -> bool: ...
|
|
204
|
+
def __getitem__(self, key: str) -> winrt.system.Object: ...
|
|
205
|
+
@staticmethod
|
|
206
|
+
def _from(obj: winrt.system.Object, /) -> DataPackagePropertySetView: ...
|
|
207
|
+
def first(self) -> typing.Optional[windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, winrt.system.Object]]]: ...
|
|
208
|
+
def has_key(self, key: str, /) -> bool: ...
|
|
209
|
+
def lookup(self, key: str, /) -> typing.Optional[winrt.system.Object]: ...
|
|
210
|
+
def split(self) -> typing.Tuple[typing.Optional[windows_foundation_collections.IMapView[str, winrt.system.Object]], typing.Optional[windows_foundation_collections.IMapView[str, winrt.system.Object]]]: ...
|
|
211
|
+
@_property
|
|
212
|
+
def application_listing_uri(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
213
|
+
@_property
|
|
214
|
+
def application_name(self) -> str: ...
|
|
215
|
+
@_property
|
|
216
|
+
def description(self) -> str: ...
|
|
217
|
+
@_property
|
|
218
|
+
def file_types(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
219
|
+
@_property
|
|
220
|
+
def thumbnail(self) -> typing.Optional[windows_storage_streams.RandomAccessStreamReference]: ...
|
|
221
|
+
@_property
|
|
222
|
+
def title(self) -> str: ...
|
|
223
|
+
@_property
|
|
224
|
+
def content_source_application_link(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
225
|
+
@_property
|
|
226
|
+
def content_source_web_link(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
227
|
+
@_property
|
|
228
|
+
def logo_background_color(self) -> windows_ui.Color: ...
|
|
229
|
+
@_property
|
|
230
|
+
def package_family_name(self) -> str: ...
|
|
231
|
+
@_property
|
|
232
|
+
def square30x30_logo(self) -> typing.Optional[windows_storage_streams.IRandomAccessStreamReference]: ...
|
|
233
|
+
@_property
|
|
234
|
+
def enterprise_id(self) -> str: ...
|
|
235
|
+
@_property
|
|
236
|
+
def content_source_user_activity_json(self) -> str: ...
|
|
237
|
+
@_property
|
|
238
|
+
def is_from_roaming_clipboard(self) -> bool: ...
|
|
239
|
+
@_property
|
|
240
|
+
def size(self) -> winrt.system.UInt32: ...
|
|
241
|
+
|
|
242
|
+
@typing.final
|
|
243
|
+
class DataPackageView(winrt.system.Object):
|
|
244
|
+
@staticmethod
|
|
245
|
+
def _from(obj: winrt.system.Object, /) -> DataPackageView: ...
|
|
246
|
+
def contains(self, format_id: str, /) -> bool: ...
|
|
247
|
+
def get_application_link_async(self) -> windows_foundation.IAsyncOperation[windows_foundation.Uri]: ...
|
|
248
|
+
def get_bitmap_async(self) -> windows_foundation.IAsyncOperation[windows_storage_streams.RandomAccessStreamReference]: ...
|
|
249
|
+
def get_data_async(self, format_id: str, /) -> windows_foundation.IAsyncOperation[winrt.system.Object]: ...
|
|
250
|
+
def get_html_format_async(self) -> windows_foundation.IAsyncOperation[str]: ...
|
|
251
|
+
def get_resource_map_async(self) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IMapView[str, windows_storage_streams.RandomAccessStreamReference]]: ...
|
|
252
|
+
def get_rtf_async(self) -> windows_foundation.IAsyncOperation[str]: ...
|
|
253
|
+
def get_storage_items_async(self) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[windows_storage.IStorageItem]]: ...
|
|
254
|
+
@typing.overload
|
|
255
|
+
def get_text_async(self) -> windows_foundation.IAsyncOperation[str]: ...
|
|
256
|
+
@typing.overload
|
|
257
|
+
def get_text_async(self, format_id: str, /) -> windows_foundation.IAsyncOperation[str]: ...
|
|
258
|
+
def get_uri_async(self) -> windows_foundation.IAsyncOperation[windows_foundation.Uri]: ...
|
|
259
|
+
def get_web_link_async(self) -> windows_foundation.IAsyncOperation[windows_foundation.Uri]: ...
|
|
260
|
+
def report_operation_completed(self, value: DataPackageOperation, /) -> None: ...
|
|
261
|
+
@typing.overload
|
|
262
|
+
def request_access_async(self) -> windows_foundation.IAsyncOperation[windows_security_enterprisedata.ProtectionPolicyEvaluationResult]: ...
|
|
263
|
+
@typing.overload
|
|
264
|
+
def request_access_async(self, enterprise_id: str, /) -> windows_foundation.IAsyncOperation[windows_security_enterprisedata.ProtectionPolicyEvaluationResult]: ...
|
|
265
|
+
def set_accepted_format_id(self, format_id: str, /) -> None: ...
|
|
266
|
+
def unlock_and_assume_enterprise_identity(self) -> windows_security_enterprisedata.ProtectionPolicyEvaluationResult: ...
|
|
267
|
+
@_property
|
|
268
|
+
def available_formats(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
269
|
+
@_property
|
|
270
|
+
def properties(self) -> typing.Optional[DataPackagePropertySetView]: ...
|
|
271
|
+
@_property
|
|
272
|
+
def requested_operation(self) -> DataPackageOperation: ...
|
|
273
|
+
|
|
274
|
+
@typing.final
|
|
275
|
+
class DataProviderDeferral(winrt.system.Object):
|
|
276
|
+
@staticmethod
|
|
277
|
+
def _from(obj: winrt.system.Object, /) -> DataProviderDeferral: ...
|
|
278
|
+
def complete(self) -> None: ...
|
|
279
|
+
|
|
280
|
+
@typing.final
|
|
281
|
+
class DataProviderRequest(winrt.system.Object):
|
|
282
|
+
@staticmethod
|
|
283
|
+
def _from(obj: winrt.system.Object, /) -> DataProviderRequest: ...
|
|
284
|
+
def get_deferral(self) -> typing.Optional[DataProviderDeferral]: ...
|
|
285
|
+
def set_data(self, value: typing.Optional[winrt.system.Object], /) -> None: ...
|
|
286
|
+
@_property
|
|
287
|
+
def deadline(self) -> datetime.datetime: ...
|
|
288
|
+
@_property
|
|
289
|
+
def format_id(self) -> str: ...
|
|
290
|
+
|
|
291
|
+
@typing.final
|
|
292
|
+
class DataRequest(winrt.system.Object):
|
|
293
|
+
@staticmethod
|
|
294
|
+
def _from(obj: winrt.system.Object, /) -> DataRequest: ...
|
|
295
|
+
def fail_with_display_text(self, value: str, /) -> None: ...
|
|
296
|
+
def get_deferral(self) -> typing.Optional[DataRequestDeferral]: ...
|
|
297
|
+
@_property
|
|
298
|
+
def data(self) -> typing.Optional[DataPackage]: ...
|
|
299
|
+
@data.setter
|
|
300
|
+
def data(self, value: typing.Optional[DataPackage]) -> None: ...
|
|
301
|
+
@_property
|
|
302
|
+
def deadline(self) -> datetime.datetime: ...
|
|
303
|
+
|
|
304
|
+
@typing.final
|
|
305
|
+
class DataRequestDeferral(winrt.system.Object):
|
|
306
|
+
@staticmethod
|
|
307
|
+
def _from(obj: winrt.system.Object, /) -> DataRequestDeferral: ...
|
|
308
|
+
def complete(self) -> None: ...
|
|
309
|
+
|
|
310
|
+
@typing.final
|
|
311
|
+
class DataRequestedEventArgs(winrt.system.Object):
|
|
312
|
+
@staticmethod
|
|
313
|
+
def _from(obj: winrt.system.Object, /) -> DataRequestedEventArgs: ...
|
|
314
|
+
@_property
|
|
315
|
+
def request(self) -> typing.Optional[DataRequest]: ...
|
|
316
|
+
|
|
317
|
+
@typing.final
|
|
318
|
+
class DataTransferManager_Static(type):
|
|
319
|
+
def get_for_current_view(cls) -> typing.Optional[DataTransferManager]: ...
|
|
320
|
+
def is_supported(cls) -> bool: ...
|
|
321
|
+
@typing.overload
|
|
322
|
+
def show_share_u_i(cls) -> None: ...
|
|
323
|
+
@typing.overload
|
|
324
|
+
def show_share_u_i(cls, options: typing.Optional[ShareUIOptions], /) -> None: ...
|
|
325
|
+
|
|
326
|
+
@typing.final
|
|
327
|
+
class DataTransferManager(winrt.system.Object, metaclass=DataTransferManager_Static):
|
|
328
|
+
@staticmethod
|
|
329
|
+
def _from(obj: winrt.system.Object, /) -> DataTransferManager: ...
|
|
330
|
+
def add_data_requested(self, handler: windows_foundation.TypedEventHandler[DataTransferManager, DataRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
331
|
+
def remove_data_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
332
|
+
def add_target_application_chosen(self, handler: windows_foundation.TypedEventHandler[DataTransferManager, TargetApplicationChosenEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
333
|
+
def remove_target_application_chosen(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
334
|
+
def add_share_providers_requested(self, handler: windows_foundation.TypedEventHandler[DataTransferManager, ShareProvidersRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
335
|
+
def remove_share_providers_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
336
|
+
|
|
337
|
+
@typing.final
|
|
338
|
+
class HtmlFormatHelper_Static(type):
|
|
339
|
+
def create_html_format(cls, html_fragment: str, /) -> str: ...
|
|
340
|
+
def get_static_fragment(cls, html_format: str, /) -> str: ...
|
|
341
|
+
|
|
342
|
+
@typing.final
|
|
343
|
+
class HtmlFormatHelper(winrt.system.Object, metaclass=HtmlFormatHelper_Static):
|
|
344
|
+
pass
|
|
345
|
+
|
|
346
|
+
@typing.final
|
|
347
|
+
class OperationCompletedEventArgs(winrt.system.Object):
|
|
348
|
+
@staticmethod
|
|
349
|
+
def _from(obj: winrt.system.Object, /) -> OperationCompletedEventArgs: ...
|
|
350
|
+
@_property
|
|
351
|
+
def operation(self) -> DataPackageOperation: ...
|
|
352
|
+
@_property
|
|
353
|
+
def accepted_format_id(self) -> str: ...
|
|
354
|
+
|
|
355
|
+
@typing.final
|
|
356
|
+
class ShareCompletedEventArgs(winrt.system.Object):
|
|
357
|
+
@staticmethod
|
|
358
|
+
def _from(obj: winrt.system.Object, /) -> ShareCompletedEventArgs: ...
|
|
359
|
+
@_property
|
|
360
|
+
def share_target(self) -> typing.Optional[ShareTargetInfo]: ...
|
|
361
|
+
|
|
362
|
+
@typing.final
|
|
363
|
+
class ShareProvider(winrt.system.Object):
|
|
364
|
+
@staticmethod
|
|
365
|
+
def _from(obj: winrt.system.Object, /) -> ShareProvider: ...
|
|
366
|
+
def __new__(cls: typing.Type[ShareProvider], title: str, display_icon: typing.Optional[windows_storage_streams.RandomAccessStreamReference], background_color: windows_ui.Color, handler: typing.Optional[ShareProviderHandler]) -> ShareProvider: ...
|
|
367
|
+
@_property
|
|
368
|
+
def tag(self) -> typing.Optional[winrt.system.Object]: ...
|
|
369
|
+
@tag.setter
|
|
370
|
+
def tag(self, value: typing.Optional[winrt.system.Object]) -> None: ...
|
|
371
|
+
@_property
|
|
372
|
+
def background_color(self) -> windows_ui.Color: ...
|
|
373
|
+
@_property
|
|
374
|
+
def display_icon(self) -> typing.Optional[windows_storage_streams.RandomAccessStreamReference]: ...
|
|
375
|
+
@_property
|
|
376
|
+
def title(self) -> str: ...
|
|
377
|
+
|
|
378
|
+
@typing.final
|
|
379
|
+
class ShareProviderOperation(winrt.system.Object):
|
|
380
|
+
@staticmethod
|
|
381
|
+
def _from(obj: winrt.system.Object, /) -> ShareProviderOperation: ...
|
|
382
|
+
def report_completed(self) -> None: ...
|
|
383
|
+
@_property
|
|
384
|
+
def data(self) -> typing.Optional[DataPackageView]: ...
|
|
385
|
+
@_property
|
|
386
|
+
def provider(self) -> typing.Optional[ShareProvider]: ...
|
|
387
|
+
|
|
388
|
+
@typing.final
|
|
389
|
+
class ShareProvidersRequestedEventArgs(winrt.system.Object):
|
|
390
|
+
@staticmethod
|
|
391
|
+
def _from(obj: winrt.system.Object, /) -> ShareProvidersRequestedEventArgs: ...
|
|
392
|
+
def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
|
|
393
|
+
@_property
|
|
394
|
+
def data(self) -> typing.Optional[DataPackageView]: ...
|
|
395
|
+
@_property
|
|
396
|
+
def providers(self) -> typing.Optional[windows_foundation_collections.IVector[ShareProvider]]: ...
|
|
397
|
+
|
|
398
|
+
@typing.final
|
|
399
|
+
class ShareTargetInfo(winrt.system.Object):
|
|
400
|
+
@staticmethod
|
|
401
|
+
def _from(obj: winrt.system.Object, /) -> ShareTargetInfo: ...
|
|
402
|
+
@_property
|
|
403
|
+
def app_user_model_id(self) -> str: ...
|
|
404
|
+
@_property
|
|
405
|
+
def share_provider(self) -> typing.Optional[ShareProvider]: ...
|
|
406
|
+
|
|
407
|
+
@typing.final
|
|
408
|
+
class ShareUIOptions(winrt.system.Object):
|
|
409
|
+
@staticmethod
|
|
410
|
+
def _from(obj: winrt.system.Object, /) -> ShareUIOptions: ...
|
|
411
|
+
def __new__(cls: typing.Type[ShareUIOptions]) -> ShareUIOptions: ...
|
|
412
|
+
@_property
|
|
413
|
+
def theme(self) -> ShareUITheme: ...
|
|
414
|
+
@theme.setter
|
|
415
|
+
def theme(self, value: ShareUITheme) -> None: ...
|
|
416
|
+
@_property
|
|
417
|
+
def selection_rect(self) -> typing.Optional[typing.Optional[windows_foundation.Rect]]: ...
|
|
418
|
+
@selection_rect.setter
|
|
419
|
+
def selection_rect(self, value: typing.Optional[typing.Optional[windows_foundation.Rect]]) -> None: ...
|
|
420
|
+
|
|
421
|
+
@typing.final
|
|
422
|
+
class SharedStorageAccessManager_Static(type):
|
|
423
|
+
def add_file(cls, file: typing.Optional[windows_storage.IStorageFile], /) -> str: ...
|
|
424
|
+
def redeem_token_for_file_async(cls, token: str, /) -> windows_foundation.IAsyncOperation[windows_storage.StorageFile]: ...
|
|
425
|
+
def remove_file(cls, token: str, /) -> None: ...
|
|
426
|
+
|
|
427
|
+
@typing.final
|
|
428
|
+
class SharedStorageAccessManager(winrt.system.Object, metaclass=SharedStorageAccessManager_Static):
|
|
429
|
+
pass
|
|
430
|
+
|
|
431
|
+
@typing.final
|
|
432
|
+
class StandardDataFormats_Static(type):
|
|
433
|
+
@_property
|
|
434
|
+
def bitmap(cls) -> str: ...
|
|
435
|
+
@_property
|
|
436
|
+
def html(cls) -> str: ...
|
|
437
|
+
@_property
|
|
438
|
+
def rtf(cls) -> str: ...
|
|
439
|
+
@_property
|
|
440
|
+
def storage_items(cls) -> str: ...
|
|
441
|
+
@_property
|
|
442
|
+
def text(cls) -> str: ...
|
|
443
|
+
@_property
|
|
444
|
+
def uri(cls) -> str: ...
|
|
445
|
+
@_property
|
|
446
|
+
def application_link(cls) -> str: ...
|
|
447
|
+
@_property
|
|
448
|
+
def web_link(cls) -> str: ...
|
|
449
|
+
@_property
|
|
450
|
+
def user_activity_json_array(cls) -> str: ...
|
|
451
|
+
|
|
452
|
+
@typing.final
|
|
453
|
+
class StandardDataFormats(winrt.system.Object, metaclass=StandardDataFormats_Static):
|
|
454
|
+
pass
|
|
455
|
+
|
|
456
|
+
@typing.final
|
|
457
|
+
class TargetApplicationChosenEventArgs(winrt.system.Object):
|
|
458
|
+
@staticmethod
|
|
459
|
+
def _from(obj: winrt.system.Object, /) -> TargetApplicationChosenEventArgs: ...
|
|
460
|
+
@_property
|
|
461
|
+
def application_name(self) -> str: ...
|
|
462
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
import uuid as _uuid
|
|
6
|
+
|
|
7
|
+
import winrt.system
|
|
8
|
+
from winrt import _winrt_windows_applicationmodel_datatransfer
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"ClipboardHistoryItemsResultStatus",
|
|
12
|
+
"DataPackageOperation",
|
|
13
|
+
"SetHistoryItemAsContentStatus",
|
|
14
|
+
"ShareUITheme",
|
|
15
|
+
"Clipboard",
|
|
16
|
+
"ClipboardContentOptions",
|
|
17
|
+
"ClipboardHistoryChangedEventArgs",
|
|
18
|
+
"ClipboardHistoryItem",
|
|
19
|
+
"ClipboardHistoryItemsResult",
|
|
20
|
+
"DataPackage",
|
|
21
|
+
"DataPackagePropertySet",
|
|
22
|
+
"DataPackagePropertySetView",
|
|
23
|
+
"DataPackageView",
|
|
24
|
+
"DataProviderDeferral",
|
|
25
|
+
"DataProviderRequest",
|
|
26
|
+
"DataRequest",
|
|
27
|
+
"DataRequestDeferral",
|
|
28
|
+
"DataRequestedEventArgs",
|
|
29
|
+
"DataTransferManager",
|
|
30
|
+
"HtmlFormatHelper",
|
|
31
|
+
"OperationCompletedEventArgs",
|
|
32
|
+
"ShareCompletedEventArgs",
|
|
33
|
+
"ShareProvider",
|
|
34
|
+
"ShareProviderOperation",
|
|
35
|
+
"ShareProvidersRequestedEventArgs",
|
|
36
|
+
"ShareTargetInfo",
|
|
37
|
+
"ShareUIOptions",
|
|
38
|
+
"SharedStorageAccessManager",
|
|
39
|
+
"StandardDataFormats",
|
|
40
|
+
"TargetApplicationChosenEventArgs",
|
|
41
|
+
"DataProviderHandler",
|
|
42
|
+
"ShareProviderHandler",
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
class ClipboardHistoryItemsResultStatus(enum.IntEnum):
|
|
46
|
+
SUCCESS = 0
|
|
47
|
+
ACCESS_DENIED = 1
|
|
48
|
+
CLIPBOARD_HISTORY_DISABLED = 2
|
|
49
|
+
|
|
50
|
+
class DataPackageOperation(enum.IntFlag):
|
|
51
|
+
NONE = 0x0
|
|
52
|
+
COPY = 0x1
|
|
53
|
+
MOVE = 0x2
|
|
54
|
+
LINK = 0x4
|
|
55
|
+
|
|
56
|
+
class SetHistoryItemAsContentStatus(enum.IntEnum):
|
|
57
|
+
SUCCESS = 0
|
|
58
|
+
ACCESS_DENIED = 1
|
|
59
|
+
ITEM_DELETED = 2
|
|
60
|
+
|
|
61
|
+
class ShareUITheme(enum.IntEnum):
|
|
62
|
+
DEFAULT = 0
|
|
63
|
+
LIGHT = 1
|
|
64
|
+
DARK = 2
|
|
65
|
+
|
|
66
|
+
Clipboard = _winrt_windows_applicationmodel_datatransfer.Clipboard
|
|
67
|
+
ClipboardContentOptions = _winrt_windows_applicationmodel_datatransfer.ClipboardContentOptions
|
|
68
|
+
ClipboardHistoryChangedEventArgs = _winrt_windows_applicationmodel_datatransfer.ClipboardHistoryChangedEventArgs
|
|
69
|
+
ClipboardHistoryItem = _winrt_windows_applicationmodel_datatransfer.ClipboardHistoryItem
|
|
70
|
+
ClipboardHistoryItemsResult = _winrt_windows_applicationmodel_datatransfer.ClipboardHistoryItemsResult
|
|
71
|
+
DataPackage = _winrt_windows_applicationmodel_datatransfer.DataPackage
|
|
72
|
+
DataPackagePropertySet = _winrt_windows_applicationmodel_datatransfer.DataPackagePropertySet
|
|
73
|
+
winrt.system._mixin_mutable_mapping(DataPackagePropertySet)
|
|
74
|
+
DataPackagePropertySetView = _winrt_windows_applicationmodel_datatransfer.DataPackagePropertySetView
|
|
75
|
+
winrt.system._mixin_mapping(DataPackagePropertySetView)
|
|
76
|
+
DataPackageView = _winrt_windows_applicationmodel_datatransfer.DataPackageView
|
|
77
|
+
DataProviderDeferral = _winrt_windows_applicationmodel_datatransfer.DataProviderDeferral
|
|
78
|
+
DataProviderRequest = _winrt_windows_applicationmodel_datatransfer.DataProviderRequest
|
|
79
|
+
DataRequest = _winrt_windows_applicationmodel_datatransfer.DataRequest
|
|
80
|
+
DataRequestDeferral = _winrt_windows_applicationmodel_datatransfer.DataRequestDeferral
|
|
81
|
+
DataRequestedEventArgs = _winrt_windows_applicationmodel_datatransfer.DataRequestedEventArgs
|
|
82
|
+
DataTransferManager = _winrt_windows_applicationmodel_datatransfer.DataTransferManager
|
|
83
|
+
HtmlFormatHelper = _winrt_windows_applicationmodel_datatransfer.HtmlFormatHelper
|
|
84
|
+
OperationCompletedEventArgs = _winrt_windows_applicationmodel_datatransfer.OperationCompletedEventArgs
|
|
85
|
+
ShareCompletedEventArgs = _winrt_windows_applicationmodel_datatransfer.ShareCompletedEventArgs
|
|
86
|
+
ShareProvider = _winrt_windows_applicationmodel_datatransfer.ShareProvider
|
|
87
|
+
ShareProviderOperation = _winrt_windows_applicationmodel_datatransfer.ShareProviderOperation
|
|
88
|
+
ShareProvidersRequestedEventArgs = _winrt_windows_applicationmodel_datatransfer.ShareProvidersRequestedEventArgs
|
|
89
|
+
ShareTargetInfo = _winrt_windows_applicationmodel_datatransfer.ShareTargetInfo
|
|
90
|
+
ShareUIOptions = _winrt_windows_applicationmodel_datatransfer.ShareUIOptions
|
|
91
|
+
SharedStorageAccessManager = _winrt_windows_applicationmodel_datatransfer.SharedStorageAccessManager
|
|
92
|
+
StandardDataFormats = _winrt_windows_applicationmodel_datatransfer.StandardDataFormats
|
|
93
|
+
TargetApplicationChosenEventArgs = _winrt_windows_applicationmodel_datatransfer.TargetApplicationChosenEventArgs
|
|
94
|
+
DataProviderHandler = typing.Callable[[typing.Optional[DataProviderRequest]], None]
|
|
95
|
+
ShareProviderHandler = typing.Callable[[typing.Optional[ShareProviderOperation]], None]
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.DataTransfer
|
|
3
|
+
Version: 2.2.0
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: 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.14,>=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime ==2.2.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
|
|
19
|
+
Requires-Dist: winrt-Windows.Security.EnterpriseData[all] ==2.2.0 ; extra == 'all'
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage[all] ==2.2.0 ; extra == 'all'
|
|
21
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
|
|
22
|
+
Requires-Dist: winrt-Windows.UI[all] ==2.2.0 ; extra == 'all'
|
|
23
|
+
|
|
24
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
25
|
+
|
|
26
|
+
# winrt-Windows.ApplicationModel.DataTransfer
|
|
27
|
+
|
|
28
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.DataTransfer` namespace.
|
|
29
|
+
|
|
30
|
+
This package provides the `winrt.windows.applicationmodel.datatransfer` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_applicationmodel_datatransfer.cp313-win_amd64.pyd,sha256=frCQ5NtuJQ15bXwjk8UIKt3r1FZfJif2n9ttf-uFRf0,470528
|
|
2
|
+
winrt/_winrt_windows_applicationmodel_datatransfer.pyi,sha256=DJlJPn5v0NFm70peFIZeOC9RYxbATESGpIYOLjmsfoo,23048
|
|
3
|
+
winrt/windows/applicationmodel/datatransfer/__init__.py,sha256=qXoPF09CvOt_LShuudkCi9MmUwKELNrCH_5G561EwLY,4202
|
|
4
|
+
winrt/windows/applicationmodel/datatransfer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_Windows.ApplicationModel.DataTransfer-2.2.0.dist-info/METADATA,sha256=Lhr-kpz5tJB3HY61EpPVvDE_9ggJx3UVRImTPshJd5s,1473
|
|
6
|
+
winrt_Windows.ApplicationModel.DataTransfer-2.2.0.dist-info/WHEEL,sha256=CdxowNJ2RPRCxUxJWAQ4R_o8uA51cjotGywc47Ht6wA,101
|
|
7
|
+
winrt_Windows.ApplicationModel.DataTransfer-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_Windows.ApplicationModel.DataTransfer-2.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|