winrt-Windows.UI.Notifications.Management 2.3.0__tar.gz → 3.1.0__tar.gz

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.
Files changed (21) hide show
  1. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/PKG-INFO +8 -8
  2. winrt_windows_ui_notifications_management-3.1.0/all-requirements.txt +5 -0
  3. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/py.Windows.UI.Notifications.Management.cpp +72 -31
  4. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_ui_notifications_management-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/setup.py +1 -1
  8. winrt_windows_ui_notifications_management-3.1.0/winrt/_winrt_windows_ui_notifications_management.pyi +44 -0
  9. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/winrt/windows/ui/notifications/management/__init__.py +4 -3
  10. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/winrt_Windows.UI.Notifications.Management.egg-info/PKG-INFO +8 -8
  11. winrt_windows_ui_notifications_management-3.1.0/winrt_Windows.UI.Notifications.Management.egg-info/requires.txt +6 -0
  12. winrt_windows_ui_notifications_management-2.3.0/all-requirements.txt +0 -5
  13. winrt_windows_ui_notifications_management-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_ui_notifications_management-2.3.0/winrt/_winrt_windows_ui_notifications_management.pyi +0 -37
  15. winrt_windows_ui_notifications_management-2.3.0/winrt_Windows.UI.Notifications.Management.egg-info/requires.txt +0 -6
  16. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/README.md +0 -0
  17. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/setup.cfg +0 -0
  18. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/winrt/windows/ui/notifications/management/py.typed +0 -0
  19. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/winrt_Windows.UI.Notifications.Management.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/winrt_Windows.UI.Notifications.Management.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_ui_notifications_management-2.3.0 → winrt_windows_ui_notifications_management-3.1.0}/winrt_Windows.UI.Notifications.Management.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.UI.Notifications.Management
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.UI.Notifications[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.UI.Notifications[all]==3.1.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ winrt-Windows.Foundation[all]==3.1.0
4
+ winrt-Windows.Foundation.Collections[all]==3.1.0
5
+ winrt-Windows.UI.Notifications[all]==3.1.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  #include "py.Windows.UI.Notifications.Management.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::UI::Notifications::Management
23
23
 
24
24
  static PyObject* UserNotificationListener_ClearNotifications(py::wrapper::Windows::UI::Notifications::Management::UserNotificationListener* self, PyObject* args) noexcept
25
25
  {
26
- auto arg_count = PyTuple_Size(args);
26
+ auto arg_count = PyTuple_GET_SIZE(args);
27
27
 
28
28
  if (arg_count == 0)
29
29
  {
@@ -42,7 +42,11 @@ namespace py::cpp::Windows::UI::Notifications::Management
42
42
  return nullptr;
43
43
  }
44
44
 
45
- self->obj.ClearNotifications();
45
+ {
46
+ auto _gil = release_gil();
47
+ self->obj.ClearNotifications();
48
+ }
49
+
46
50
  Py_RETURN_NONE;
47
51
  }
48
52
  catch (...)
@@ -60,7 +64,7 @@ namespace py::cpp::Windows::UI::Notifications::Management
60
64
 
61
65
  static PyObject* UserNotificationListener_GetAccessStatus(py::wrapper::Windows::UI::Notifications::Management::UserNotificationListener* self, PyObject* args) noexcept
62
66
  {
63
- auto arg_count = PyTuple_Size(args);
67
+ auto arg_count = PyTuple_GET_SIZE(args);
64
68
 
65
69
  if (arg_count == 0)
66
70
  {
@@ -79,7 +83,11 @@ namespace py::cpp::Windows::UI::Notifications::Management
79
83
  return nullptr;
80
84
  }
81
85
 
82
- return py::convert(self->obj.GetAccessStatus());
86
+ return py::convert([&]()
87
+ {
88
+ auto _gil = release_gil();
89
+ return self->obj.GetAccessStatus();
90
+ }());
83
91
  }
84
92
  catch (...)
85
93
  {
@@ -96,7 +104,7 @@ namespace py::cpp::Windows::UI::Notifications::Management
96
104
 
97
105
  static PyObject* UserNotificationListener_GetNotification(py::wrapper::Windows::UI::Notifications::Management::UserNotificationListener* self, PyObject* args) noexcept
98
106
  {
99
- auto arg_count = PyTuple_Size(args);
107
+ auto arg_count = PyTuple_GET_SIZE(args);
100
108
 
101
109
  if (arg_count == 1)
102
110
  {
@@ -117,7 +125,11 @@ namespace py::cpp::Windows::UI::Notifications::Management
117
125
 
118
126
  auto param0 = py::convert_to<uint32_t>(args, 0);
119
127
 
120
- return py::convert(self->obj.GetNotification(param0));
128
+ return py::convert([&]()
129
+ {
130
+ auto _gil = release_gil();
131
+ return self->obj.GetNotification(param0);
132
+ }());
121
133
  }
122
134
  catch (...)
123
135
  {
@@ -134,7 +146,7 @@ namespace py::cpp::Windows::UI::Notifications::Management
134
146
 
135
147
  static PyObject* UserNotificationListener_GetNotificationsAsync(py::wrapper::Windows::UI::Notifications::Management::UserNotificationListener* self, PyObject* args) noexcept
136
148
  {
137
- auto arg_count = PyTuple_Size(args);
149
+ auto arg_count = PyTuple_GET_SIZE(args);
138
150
 
139
151
  if (arg_count == 1)
140
152
  {
@@ -155,7 +167,11 @@ namespace py::cpp::Windows::UI::Notifications::Management
155
167
 
156
168
  auto param0 = py::convert_to<winrt::Windows::UI::Notifications::NotificationKinds>(args, 0);
157
169
 
158
- return py::convert(self->obj.GetNotificationsAsync(param0));
170
+ return py::convert([&]()
171
+ {
172
+ auto _gil = release_gil();
173
+ return self->obj.GetNotificationsAsync(param0);
174
+ }());
159
175
  }
160
176
  catch (...)
161
177
  {
@@ -172,7 +188,7 @@ namespace py::cpp::Windows::UI::Notifications::Management
172
188
 
173
189
  static PyObject* UserNotificationListener_RemoveNotification(py::wrapper::Windows::UI::Notifications::Management::UserNotificationListener* self, PyObject* args) noexcept
174
190
  {
175
- auto arg_count = PyTuple_Size(args);
191
+ auto arg_count = PyTuple_GET_SIZE(args);
176
192
 
177
193
  if (arg_count == 1)
178
194
  {
@@ -193,7 +209,11 @@ namespace py::cpp::Windows::UI::Notifications::Management
193
209
 
194
210
  auto param0 = py::convert_to<uint32_t>(args, 0);
195
211
 
196
- self->obj.RemoveNotification(param0);
212
+ {
213
+ auto _gil = release_gil();
214
+ self->obj.RemoveNotification(param0);
215
+ }
216
+
197
217
  Py_RETURN_NONE;
198
218
  }
199
219
  catch (...)
@@ -211,7 +231,7 @@ namespace py::cpp::Windows::UI::Notifications::Management
211
231
 
212
232
  static PyObject* UserNotificationListener_RequestAccessAsync(py::wrapper::Windows::UI::Notifications::Management::UserNotificationListener* self, PyObject* args) noexcept
213
233
  {
214
- auto arg_count = PyTuple_Size(args);
234
+ auto arg_count = PyTuple_GET_SIZE(args);
215
235
 
216
236
  if (arg_count == 0)
217
237
  {
@@ -230,7 +250,11 @@ namespace py::cpp::Windows::UI::Notifications::Management
230
250
  return nullptr;
231
251
  }
232
252
 
233
- return py::convert(self->obj.RequestAccessAsync());
253
+ return py::convert([&]()
254
+ {
255
+ auto _gil = release_gil();
256
+ return self->obj.RequestAccessAsync();
257
+ }());
234
258
  }
235
259
  catch (...)
236
260
  {
@@ -262,7 +286,11 @@ namespace py::cpp::Windows::UI::Notifications::Management
262
286
  return nullptr;
263
287
  }
264
288
 
265
- return py::convert(winrt::Windows::UI::Notifications::Management::UserNotificationListener::Current());
289
+ return py::convert([&]()
290
+ {
291
+ auto _gil = release_gil();
292
+ return winrt::Windows::UI::Notifications::Management::UserNotificationListener::Current();
293
+ }());
266
294
  }
267
295
  catch (...)
268
296
  {
@@ -290,7 +318,11 @@ namespace py::cpp::Windows::UI::Notifications::Management
290
318
 
291
319
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::UI::Notifications::Management::UserNotificationListener, winrt::Windows::UI::Notifications::UserNotificationChangedEventArgs>>(arg);
292
320
 
293
- return py::convert(self->obj.NotificationChanged(param0));
321
+ return py::convert([&]()
322
+ {
323
+ auto _gil = release_gil();
324
+ return self->obj.NotificationChanged(param0);
325
+ }());
294
326
  }
295
327
  catch (...)
296
328
  {
@@ -318,7 +350,11 @@ namespace py::cpp::Windows::UI::Notifications::Management
318
350
 
319
351
  auto param0 = py::convert_to<winrt::event_token>(arg);
320
352
 
321
- self->obj.NotificationChanged(param0);
353
+ {
354
+ auto _gil = release_gil();
355
+ self->obj.NotificationChanged(param0);
356
+ }
357
+
322
358
  Py_RETURN_NONE;
323
359
  }
324
360
  catch (...)
@@ -363,20 +399,17 @@ namespace py::cpp::Windows::UI::Notifications::Management
363
399
  { "remove_notification_changed", reinterpret_cast<PyCFunction>(UserNotificationListener_remove_NotificationChanged), METH_O, nullptr },
364
400
  { "_assign_array_", _assign_array_UserNotificationListener, METH_O | METH_STATIC, nullptr },
365
401
  { "_from", reinterpret_cast<PyCFunction>(_from_UserNotificationListener), METH_O | METH_STATIC, nullptr },
366
- { }
367
- };
402
+ { }};
368
403
 
369
404
  static PyGetSetDef _getset_UserNotificationListener[] = {
370
- { }
371
- };
405
+ { }};
372
406
 
373
407
  static PyType_Slot _type_slots_UserNotificationListener[] = {
374
408
  { Py_tp_new, reinterpret_cast<void*>(_new_UserNotificationListener) },
375
409
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_UserNotificationListener) },
376
410
  { Py_tp_methods, reinterpret_cast<void*>(_methods_UserNotificationListener) },
377
411
  { Py_tp_getset, reinterpret_cast<void*>(_getset_UserNotificationListener) },
378
- { }
379
- };
412
+ { }};
380
413
 
381
414
  static PyType_Spec type_spec_UserNotificationListener = {
382
415
  "winrt._winrt_windows_ui_notifications_management.UserNotificationListener",
@@ -387,12 +420,10 @@ namespace py::cpp::Windows::UI::Notifications::Management
387
420
 
388
421
  static PyGetSetDef getset_UserNotificationListener_Static[] = {
389
422
  { "current", reinterpret_cast<getter>(UserNotificationListener_get_Current), nullptr, nullptr, nullptr },
390
- { }
391
- };
423
+ { }};
392
424
 
393
425
  static PyMethodDef methods_UserNotificationListener_Static[] = {
394
- { }
395
- };
426
+ { }};
396
427
 
397
428
  static PyType_Slot type_slots_UserNotificationListener_Static[] =
398
429
  {
@@ -402,14 +433,12 @@ namespace py::cpp::Windows::UI::Notifications::Management
402
433
  { }
403
434
  };
404
435
 
405
- static PyType_Spec type_spec_UserNotificationListener_Static =
406
- {
436
+ static PyType_Spec type_spec_UserNotificationListener_Static = {
407
437
  "winrt._winrt_windows_ui_notifications_management.UserNotificationListener_Static",
408
438
  static_cast<int>(PyType_Type.tp_basicsize),
409
439
  static_cast<int>(PyType_Type.tp_itemsize),
410
440
  Py_TPFLAGS_DEFAULT,
411
- type_slots_UserNotificationListener_Static
412
- };
441
+ type_slots_UserNotificationListener_Static};
413
442
 
414
443
  // ----- Windows.UI.Notifications.Management Initialization --------------------
415
444
 
@@ -443,6 +472,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_notifications_management(void) noexcept
443
472
  return nullptr;
444
473
  }
445
474
 
475
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
476
+ if (!inspectable_meta_type)
477
+ {
478
+ return nullptr;
479
+ }
480
+
446
481
  auto object_type = py::get_object_type();
447
482
  if (!object_type)
448
483
  {
@@ -456,7 +491,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_notifications_management(void) noexcept
456
491
  return nullptr;
457
492
  }
458
493
 
459
- py::pyobj_handle type_UserNotificationListener_Static{PyType_FromSpec(&type_spec_UserNotificationListener_Static)};
494
+ py::pyobj_handle UserNotificationListener_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
495
+ if (!UserNotificationListener_Static_bases)
496
+ {
497
+ return nullptr;
498
+ }
499
+
500
+ py::pyobj_handle type_UserNotificationListener_Static{PyType_FromSpecWithBases(&type_spec_UserNotificationListener_Static, UserNotificationListener_Static_bases.get())};
460
501
  if (!type_UserNotificationListener_Static)
461
502
  {
462
503
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.UI.Notifications.Management"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_ui_notifications_management",
@@ -0,0 +1,44 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.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.ui.notifications as windows_ui_notifications
15
+
16
+ from winrt.windows.ui.notifications.management import UserNotificationListenerAccessStatus
17
+
18
+ Self = typing.TypeVar('Self')
19
+
20
+ @typing.final
21
+ class UserNotificationListener_Static(winrt._winrt.IInspectable_Static):
22
+ # Windows.UI.Notifications.Management.UserNotificationListener Windows.UI.Notifications.Management.UserNotificationListener::get_Current()
23
+ @_property
24
+ def current(cls) -> UserNotificationListener: ...
25
+
26
+ @typing.final
27
+ class UserNotificationListener(winrt.system.Object, metaclass=UserNotificationListener_Static):
28
+ # System.Void Windows.UI.Notifications.Management.UserNotificationListener::ClearNotifications()
29
+ def clear_notifications(self) -> None: ...
30
+ # Windows.UI.Notifications.Management.UserNotificationListenerAccessStatus Windows.UI.Notifications.Management.UserNotificationListener::GetAccessStatus()
31
+ def get_access_status(self) -> UserNotificationListenerAccessStatus: ...
32
+ # Windows.UI.Notifications.UserNotification Windows.UI.Notifications.Management.UserNotificationListener::GetNotification(System.UInt32)
33
+ def get_notification(self, notification_id: winrt.system.UInt32, /) -> windows_ui_notifications.UserNotification: ...
34
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.UI.Notifications.UserNotification>> Windows.UI.Notifications.Management.UserNotificationListener::GetNotificationsAsync(Windows.UI.Notifications.NotificationKinds)
35
+ def get_notifications_async(self, kinds: windows_ui_notifications.NotificationKinds, /) -> windows_foundation.IAsyncOperation[typing.Sequence[windows_ui_notifications.UserNotification]]: ...
36
+ # System.Void Windows.UI.Notifications.Management.UserNotificationListener::RemoveNotification(System.UInt32)
37
+ def remove_notification(self, notification_id: winrt.system.UInt32, /) -> None: ...
38
+ # Windows.Foundation.IAsyncOperation`1<Windows.UI.Notifications.Management.UserNotificationListenerAccessStatus> Windows.UI.Notifications.Management.UserNotificationListener::RequestAccessAsync()
39
+ def request_access_async(self) -> windows_foundation.IAsyncOperation[UserNotificationListenerAccessStatus]: ...
40
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Notifications.Management.UserNotificationListener::add_NotificationChanged(Windows.Foundation.TypedEventHandler`2<Windows.UI.Notifications.Management.UserNotificationListener,Windows.UI.Notifications.UserNotificationChangedEventArgs>)
41
+ def add_notification_changed(self, handler: windows_foundation.TypedEventHandler[UserNotificationListener, windows_ui_notifications.UserNotificationChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
42
+ # System.Void Windows.UI.Notifications.Management.UserNotificationListener::remove_NotificationChanged(Windows.Foundation.EventRegistrationToken)
43
+ def remove_notification_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
44
+
@@ -1,9 +1,11 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  import enum
4
4
 
5
5
  import winrt.system
6
- from winrt import _winrt_windows_ui_notifications_management
6
+ from winrt._winrt_windows_ui_notifications_management import (
7
+ UserNotificationListener,
8
+ )
7
9
 
8
10
  __all__ = [
9
11
  "UserNotificationListenerAccessStatus",
@@ -15,4 +17,3 @@ class UserNotificationListenerAccessStatus(enum.IntEnum):
15
17
  ALLOWED = 1
16
18
  DENIED = 2
17
19
 
18
- UserNotificationListener = _winrt_windows_ui_notifications_management.UserNotificationListener
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.UI.Notifications.Management
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.UI.Notifications[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.UI.Notifications[all]==3.1.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.1.0
5
+ winrt-Windows.Foundation.Collections[all]==3.1.0
6
+ winrt-Windows.UI.Notifications[all]==3.1.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.Foundation[all]==2.3.0
4
- winrt-Windows.Foundation.Collections[all]==2.3.0
5
- winrt-Windows.UI.Notifications[all]==2.3.0
@@ -1,37 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.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.ui.notifications as windows_ui_notifications
15
-
16
- from winrt.windows.ui.notifications.management import UserNotificationListenerAccessStatus
17
-
18
- Self = typing.TypeVar('Self')
19
-
20
- @typing.final
21
- class UserNotificationListener_Static(type):
22
- @_property
23
- def current(cls) -> typing.Optional[UserNotificationListener]: ...
24
-
25
- @typing.final
26
- class UserNotificationListener(winrt.system.Object, metaclass=UserNotificationListener_Static):
27
- @staticmethod
28
- def _from(obj: winrt.system.Object, /) -> UserNotificationListener: ...
29
- def clear_notifications(self) -> None: ...
30
- def get_access_status(self) -> UserNotificationListenerAccessStatus: ...
31
- def get_notification(self, notification_id: winrt.system.UInt32, /) -> typing.Optional[windows_ui_notifications.UserNotification]: ...
32
- def get_notifications_async(self, kinds: windows_ui_notifications.NotificationKinds, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[windows_ui_notifications.UserNotification]]: ...
33
- def remove_notification(self, notification_id: winrt.system.UInt32, /) -> None: ...
34
- def request_access_async(self) -> windows_foundation.IAsyncOperation[UserNotificationListenerAccessStatus]: ...
35
- def add_notification_changed(self, handler: windows_foundation.TypedEventHandler[UserNotificationListener, windows_ui_notifications.UserNotificationChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
36
- def remove_notification_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
37
-
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Foundation.Collections[all]==2.3.0
6
- winrt-Windows.UI.Notifications[all]==2.3.0