winrt-Windows.Networking.PushNotifications 4!10.0.28000.2705__py3-none-any.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.
@@ -0,0 +1,20 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "PushNotificationType",
10
+ "PushNotificationChannel",
11
+ "PushNotificationChannelManager",
12
+ "PushNotificationChannelManagerForUser",
13
+ "PushNotificationChannelsRevokedEventArgs",
14
+ "PushNotificationReceivedEventArgs",
15
+ "RawNotification",
16
+ ]
17
+
18
+ winrt.runtime._internals.alias_static_method(PushNotificationChannelManager, "create_push_notification_channel_for_application_async_with_id", "create_push_notification_channel_for_application_async")
19
+ winrt.runtime._internals.alias_method(PushNotificationChannelManagerForUser, "create_push_notification_channel_for_application_async_with_id", "create_push_notification_channel_for_application_async")
20
+ winrt.runtime._internals.alias_method(PushNotificationChannelManagerForUser, "create_raw_push_notification_channel_with_alternate_key_for_application_async_with_id", "create_raw_push_notification_channel_with_alternate_key_for_application_async")
@@ -0,0 +1,156 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import collections.abc as _cabc
4
+ import datetime
5
+ import enum
6
+ import typing
7
+ from builtins import property as _property
8
+ from typing_extensions import deprecated
9
+
10
+ import winrt.system
11
+ import winrt.windows.foundation as windows_foundation
12
+ import winrt.windows.foundation.collections as windows_foundation_collections
13
+ import winrt.windows.storage.streams as windows_storage_streams
14
+ import winrt.windows.system as windows_system
15
+ import winrt.windows.ui.notifications as windows_ui_notifications
16
+
17
+ __all__ = [
18
+ "PushNotificationType",
19
+ "PushNotificationChannel",
20
+ "PushNotificationChannelManager",
21
+ "PushNotificationChannelManagerForUser",
22
+ "PushNotificationChannelsRevokedEventArgs",
23
+ "PushNotificationReceivedEventArgs",
24
+ "RawNotification",
25
+ ]
26
+
27
+ class PushNotificationType(enum.IntEnum):
28
+ TOAST = 0
29
+ TILE = 1
30
+ BADGE = 2
31
+ RAW = 3
32
+ TILE_FLYOUT = 4
33
+
34
+ @typing.final
35
+ class PushNotificationChannel(winrt.system.Object):
36
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
37
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
38
+ # System.Void Windows.Networking.PushNotifications.PushNotificationChannel::Close()
39
+ def close(self) -> None: ...
40
+ # Windows.Foundation.EventRegistrationToken Windows.Networking.PushNotifications.PushNotificationChannel::add_PushNotificationReceived(Windows.Foundation.TypedEventHandler`2<Windows.Networking.PushNotifications.PushNotificationChannel,Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs>)
41
+ def add_push_notification_received(self, handler: windows_foundation.TypedEventHandler[PushNotificationChannel, PushNotificationReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
42
+ # System.Void Windows.Networking.PushNotifications.PushNotificationChannel::remove_PushNotificationReceived(Windows.Foundation.EventRegistrationToken)
43
+ def remove_push_notification_received(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
44
+ # Windows.Foundation.DateTime Windows.Networking.PushNotifications.PushNotificationChannel::get_ExpirationTime()
45
+ @_property
46
+ def expiration_time(self) -> datetime.datetime: ...
47
+ # System.String Windows.Networking.PushNotifications.PushNotificationChannel::get_Uri()
48
+ @_property
49
+ def uri(self) -> str: ...
50
+
51
+ @typing.final
52
+ class PushNotificationChannelManager_Static(winrt.system.Object_Static):
53
+ @typing.overload
54
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync()
55
+ def create_push_notification_channel_for_application_async(cls) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
56
+ @typing.overload
57
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync(System.String)
58
+ def create_push_notification_channel_for_application_async(cls, application_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
59
+ # Deprecated alias of create_push_notification_channel_for_application_async() for pywinrt v3.x compatibility.
60
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync(System.String)
61
+ @deprecated("Use create_push_notification_channel_for_application_async() instead.")
62
+ def create_push_notification_channel_for_application_async_with_id(cls, application_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
63
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManager::CreatePushNotificationChannelForSecondaryTileAsync(System.String)
64
+ def create_push_notification_channel_for_secondary_tile_async(cls, tile_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
65
+ # Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser Windows.Networking.PushNotifications.PushNotificationChannelManager::GetDefault()
66
+ def get_default(cls) -> PushNotificationChannelManagerForUser: ...
67
+ # Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser Windows.Networking.PushNotifications.PushNotificationChannelManager::GetForUser(Windows.System.User)
68
+ def get_for_user(cls, user: windows_system.User, /) -> PushNotificationChannelManagerForUser: ...
69
+ # Windows.Foundation.EventRegistrationToken Windows.Networking.PushNotifications.PushNotificationChannelManager::add_ChannelsRevoked(Windows.Foundation.EventHandler`1<Windows.Networking.PushNotifications.PushNotificationChannelsRevokedEventArgs>)
70
+ def add_channels_revoked(cls, handler: windows_foundation.EventHandler[PushNotificationChannelsRevokedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
71
+ # System.Void Windows.Networking.PushNotifications.PushNotificationChannelManager::remove_ChannelsRevoked(Windows.Foundation.EventRegistrationToken)
72
+ def remove_channels_revoked(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
73
+
74
+ @typing.final
75
+ class PushNotificationChannelManager(winrt.system.Object, metaclass=PushNotificationChannelManager_Static):
76
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
77
+ """A class of static members only, so there is nothing to create."""
78
+
79
+ @typing.final
80
+ class PushNotificationChannelManagerForUser(winrt.system.Object):
81
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
82
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
83
+ @typing.overload
84
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreatePushNotificationChannelForApplicationAsync()
85
+ def create_push_notification_channel_for_application_async(self) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
86
+ @typing.overload
87
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreatePushNotificationChannelForApplicationAsync(System.String)
88
+ def create_push_notification_channel_for_application_async(self, application_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
89
+ # Deprecated alias of create_push_notification_channel_for_application_async() for pywinrt v3.x compatibility.
90
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreatePushNotificationChannelForApplicationAsync(System.String)
91
+ @deprecated("Use create_push_notification_channel_for_application_async() instead.")
92
+ def create_push_notification_channel_for_application_async_with_id(self, application_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
93
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreatePushNotificationChannelForSecondaryTileAsync(System.String)
94
+ def create_push_notification_channel_for_secondary_tile_async(self, tile_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
95
+ @typing.overload
96
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(Windows.Storage.Streams.IBuffer,System.String)
97
+ def create_raw_push_notification_channel_with_alternate_key_for_application_async(self, app_server_key: winrt.system.ReadableBuffer, channel_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
98
+ @typing.overload
99
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(Windows.Storage.Streams.IBuffer,System.String,System.String)
100
+ def create_raw_push_notification_channel_with_alternate_key_for_application_async(self, app_server_key: winrt.system.ReadableBuffer, channel_id: str, app_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
101
+ # Deprecated alias of create_raw_push_notification_channel_with_alternate_key_for_application_async() for pywinrt v3.x compatibility.
102
+ # Windows.Foundation.IAsyncOperation`1<Windows.Networking.PushNotifications.PushNotificationChannel> Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(Windows.Storage.Streams.IBuffer,System.String,System.String)
103
+ @deprecated("Use create_raw_push_notification_channel_with_alternate_key_for_application_async() instead.")
104
+ def create_raw_push_notification_channel_with_alternate_key_for_application_async_with_id(self, app_server_key: winrt.system.ReadableBuffer, channel_id: str, app_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
105
+ # Windows.System.User Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser::get_User()
106
+ @_property
107
+ def user(self) -> windows_system.User: ...
108
+
109
+ @typing.final
110
+ class PushNotificationChannelsRevokedEventArgs(winrt.system.Object):
111
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
112
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
113
+
114
+ @typing.final
115
+ class PushNotificationReceivedEventArgs(winrt.system.Object):
116
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
117
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
118
+ # System.Boolean Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_Cancel()
119
+ @_property
120
+ def cancel(self) -> bool: ...
121
+ # System.Void Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::put_Cancel(System.Boolean)
122
+ @cancel.setter
123
+ def cancel(self, value: bool) -> None: ...
124
+ # Windows.UI.Notifications.BadgeNotification Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_BadgeNotification()
125
+ @_property
126
+ def badge_notification(self) -> windows_ui_notifications.BadgeNotification: ...
127
+ # Windows.Networking.PushNotifications.PushNotificationType Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_NotificationType()
128
+ @_property
129
+ def notification_type(self) -> PushNotificationType: ...
130
+ # Windows.Networking.PushNotifications.RawNotification Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_RawNotification()
131
+ @_property
132
+ def raw_notification(self) -> RawNotification: ...
133
+ # Windows.UI.Notifications.TileNotification Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_TileNotification()
134
+ @_property
135
+ def tile_notification(self) -> windows_ui_notifications.TileNotification: ...
136
+ # Windows.UI.Notifications.ToastNotification Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs::get_ToastNotification()
137
+ @_property
138
+ def toast_notification(self) -> windows_ui_notifications.ToastNotification: ...
139
+
140
+ @typing.final
141
+ class RawNotification(winrt.system.Object):
142
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
143
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
144
+ # System.String Windows.Networking.PushNotifications.RawNotification::get_Content()
145
+ @_property
146
+ def content(self) -> str: ...
147
+ # System.String Windows.Networking.PushNotifications.RawNotification::get_ChannelId()
148
+ @_property
149
+ def channel_id(self) -> str: ...
150
+ # Windows.Foundation.Collections.IMapView`2<System.String,System.String> Windows.Networking.PushNotifications.RawNotification::get_Headers()
151
+ @_property
152
+ def headers(self) -> _cabc.Mapping[str, str]: ...
153
+ # Windows.Storage.Streams.IBuffer Windows.Networking.PushNotifications.RawNotification::get_ContentBytes()
154
+ @_property
155
+ def content_bytes(self) -> windows_storage_streams.IBuffer: ...
156
+
File without changes
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.Networking.PushNotifications
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.Networking.PushNotifications namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Requires-Dist: winrt-windows-foundation-collections>=4!10.0.28000.2705
24
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
25
+ Requires-Dist: winrt-windows-storage-streams>=4!10.0.28000.2705
26
+ Provides-Extra: all
27
+ Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
28
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
29
+ Requires-Dist: winrt-windows-storage-streams[all]>=4!10.0.28000.2705; extra == 'all'
30
+ Requires-Dist: winrt-windows-system[all]>=4!10.0.28000.2705; extra == 'all'
31
+ Requires-Dist: winrt-windows-ui-notifications[all]>=4!10.0.28000.2705; extra == 'all'
32
+ Description-Content-Type: text/markdown
33
+
34
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
35
+
36
+ # winrt-Windows.Networking.PushNotifications
37
+
38
+ Windows Runtime (WinRT) APIs for the `Windows.Networking.PushNotifications` namespace.
39
+
40
+ This package provides the `winrt.windows.networking.pushnotifications` module.
41
+
42
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
43
+ `Microsoft.Windows.SDK.CPP` NuGet package.
44
+
45
+ ```
46
+ pip install winrt-Windows.Networking.PushNotifications
47
+ ```
48
+
49
+ Other WinRT namespaces are packages of their own, so install the package of
50
+ each namespace your code imports from.
@@ -0,0 +1,8 @@
1
+ winrt/windows/networking/pushnotifications/__init__.py,sha256=-42T0tgoLygxfpVWk9sb1vNAfMZosMvXEc0xKmrBDdg,1097
2
+ winrt/windows/networking/pushnotifications/__init__.pyi,sha256=9XCvLPZuP7gRkB5ccsE-XgnKE0z0pDjepyTcR1SFwjw,12897
3
+ winrt/windows/networking/pushnotifications/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/networking/pushnotifications/_table.pywinrt,sha256=PuRKGc70ONT_iVflhDVW7Tn-UED8ix_Qvm8CUuwmc0w,14552
5
+ winrt_windows_networking_pushnotifications-4!10.0.28000.2705.dist-info/METADATA,sha256=g12qMSorFXZQzomYu8RxzddXi9NZbns62BzP1uUzD-k,2336
6
+ winrt_windows_networking_pushnotifications-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_networking_pushnotifications-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_networking_pushnotifications-4!10.0.28000.2705.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE