winrt-Windows.Networking.Proximity 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_networking_proximity.cp313-win_amd64.pyd +0 -0
- winrt/_winrt_windows_networking_proximity.pyi +170 -0
- winrt/windows/networking/proximity/__init__.py +64 -0
- winrt/windows/networking/proximity/py.typed +0 -0
- winrt_Windows.Networking.Proximity-2.2.0.dist-info/METADATA +29 -0
- winrt_Windows.Networking.Proximity-2.2.0.dist-info/RECORD +8 -0
- winrt_Windows.Networking.Proximity-2.2.0.dist-info/WHEEL +5 -0
- winrt_Windows.Networking.Proximity-2.2.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,170 @@
|
|
|
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.networking as windows_networking
|
|
15
|
+
import winrt.windows.networking.sockets as windows_networking_sockets
|
|
16
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
17
|
+
|
|
18
|
+
from winrt.windows.networking.proximity import PeerDiscoveryTypes, PeerRole, PeerWatcherStatus, TriggeredConnectState
|
|
19
|
+
from winrt.windows.networking.proximity import DeviceArrivedEventHandler, DeviceDepartedEventHandler, MessageReceivedHandler, MessageTransmittedHandler
|
|
20
|
+
|
|
21
|
+
Self = typing.TypeVar('Self')
|
|
22
|
+
|
|
23
|
+
@typing.final
|
|
24
|
+
class ConnectionRequestedEventArgs(winrt.system.Object):
|
|
25
|
+
@staticmethod
|
|
26
|
+
def _from(obj: winrt.system.Object, /) -> ConnectionRequestedEventArgs: ...
|
|
27
|
+
@_property
|
|
28
|
+
def peer_information(self) -> typing.Optional[PeerInformation]: ...
|
|
29
|
+
|
|
30
|
+
@typing.final
|
|
31
|
+
class PeerFinder_Static(type):
|
|
32
|
+
def connect_async(cls, peer_information: typing.Optional[PeerInformation], /) -> windows_foundation.IAsyncOperation[windows_networking_sockets.StreamSocket]: ...
|
|
33
|
+
def create_watcher(cls) -> typing.Optional[PeerWatcher]: ...
|
|
34
|
+
def find_all_peers_async(cls) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[PeerInformation]]: ...
|
|
35
|
+
@typing.overload
|
|
36
|
+
def start(cls) -> None: ...
|
|
37
|
+
@typing.overload
|
|
38
|
+
def start(cls, peer_message: str, /) -> None: ...
|
|
39
|
+
def stop(cls) -> None: ...
|
|
40
|
+
def add_connection_requested(cls, handler: windows_foundation.TypedEventHandler[winrt.system.Object, ConnectionRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
41
|
+
def remove_connection_requested(cls, cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
42
|
+
def add_triggered_connection_state_changed(cls, handler: windows_foundation.TypedEventHandler[winrt.system.Object, TriggeredConnectionStateChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
43
|
+
def remove_triggered_connection_state_changed(cls, cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
44
|
+
@_property
|
|
45
|
+
def display_name(cls) -> str: ...
|
|
46
|
+
@display_name.setter
|
|
47
|
+
def display_name(cls, value: str) -> None: ...
|
|
48
|
+
@_property
|
|
49
|
+
def allow_wi_fi_direct(cls) -> bool: ...
|
|
50
|
+
@allow_wi_fi_direct.setter
|
|
51
|
+
def allow_wi_fi_direct(cls, value: bool) -> None: ...
|
|
52
|
+
@_property
|
|
53
|
+
def allow_infrastructure(cls) -> bool: ...
|
|
54
|
+
@allow_infrastructure.setter
|
|
55
|
+
def allow_infrastructure(cls, value: bool) -> None: ...
|
|
56
|
+
@_property
|
|
57
|
+
def allow_bluetooth(cls) -> bool: ...
|
|
58
|
+
@allow_bluetooth.setter
|
|
59
|
+
def allow_bluetooth(cls, value: bool) -> None: ...
|
|
60
|
+
@_property
|
|
61
|
+
def alternate_identities(cls) -> typing.Optional[windows_foundation_collections.IMap[str, str]]: ...
|
|
62
|
+
@_property
|
|
63
|
+
def supported_discovery_types(cls) -> PeerDiscoveryTypes: ...
|
|
64
|
+
@_property
|
|
65
|
+
def role(cls) -> PeerRole: ...
|
|
66
|
+
@role.setter
|
|
67
|
+
def role(cls, value: PeerRole) -> None: ...
|
|
68
|
+
@_property
|
|
69
|
+
def discovery_data(cls) -> typing.Optional[windows_storage_streams.IBuffer]: ...
|
|
70
|
+
@discovery_data.setter
|
|
71
|
+
def discovery_data(cls, value: typing.Optional[windows_storage_streams.IBuffer]) -> None: ...
|
|
72
|
+
|
|
73
|
+
@typing.final
|
|
74
|
+
class PeerFinder(winrt.system.Object, metaclass=PeerFinder_Static):
|
|
75
|
+
pass
|
|
76
|
+
|
|
77
|
+
@typing.final
|
|
78
|
+
class PeerInformation(winrt.system.Object):
|
|
79
|
+
@staticmethod
|
|
80
|
+
def _from(obj: winrt.system.Object, /) -> PeerInformation: ...
|
|
81
|
+
@_property
|
|
82
|
+
def display_name(self) -> str: ...
|
|
83
|
+
@_property
|
|
84
|
+
def discovery_data(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
|
|
85
|
+
@_property
|
|
86
|
+
def id(self) -> str: ...
|
|
87
|
+
@_property
|
|
88
|
+
def host_name(self) -> typing.Optional[windows_networking.HostName]: ...
|
|
89
|
+
@_property
|
|
90
|
+
def service_name(self) -> str: ...
|
|
91
|
+
|
|
92
|
+
@typing.final
|
|
93
|
+
class PeerWatcher(winrt.system.Object):
|
|
94
|
+
@staticmethod
|
|
95
|
+
def _from(obj: winrt.system.Object, /) -> PeerWatcher: ...
|
|
96
|
+
def start(self) -> None: ...
|
|
97
|
+
def stop(self) -> None: ...
|
|
98
|
+
def add_added(self, handler: windows_foundation.TypedEventHandler[PeerWatcher, PeerInformation], /) -> windows_foundation.EventRegistrationToken: ...
|
|
99
|
+
def remove_added(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
100
|
+
def add_enumeration_completed(self, handler: windows_foundation.TypedEventHandler[PeerWatcher, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
101
|
+
def remove_enumeration_completed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
102
|
+
def add_removed(self, handler: windows_foundation.TypedEventHandler[PeerWatcher, PeerInformation], /) -> windows_foundation.EventRegistrationToken: ...
|
|
103
|
+
def remove_removed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
104
|
+
def add_stopped(self, handler: windows_foundation.TypedEventHandler[PeerWatcher, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
105
|
+
def remove_stopped(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
106
|
+
def add_updated(self, handler: windows_foundation.TypedEventHandler[PeerWatcher, PeerInformation], /) -> windows_foundation.EventRegistrationToken: ...
|
|
107
|
+
def remove_updated(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
108
|
+
@_property
|
|
109
|
+
def status(self) -> PeerWatcherStatus: ...
|
|
110
|
+
|
|
111
|
+
@typing.final
|
|
112
|
+
class ProximityDevice_Static(type):
|
|
113
|
+
def from_id(cls, device_id: str, /) -> typing.Optional[ProximityDevice]: ...
|
|
114
|
+
def get_default(cls) -> typing.Optional[ProximityDevice]: ...
|
|
115
|
+
def get_device_selector(cls) -> str: ...
|
|
116
|
+
|
|
117
|
+
@typing.final
|
|
118
|
+
class ProximityDevice(winrt.system.Object, metaclass=ProximityDevice_Static):
|
|
119
|
+
@staticmethod
|
|
120
|
+
def _from(obj: winrt.system.Object, /) -> ProximityDevice: ...
|
|
121
|
+
@typing.overload
|
|
122
|
+
def publish_binary_message(self, message_type: str, message: typing.Optional[windows_storage_streams.IBuffer], /) -> winrt.system.Int64: ...
|
|
123
|
+
@typing.overload
|
|
124
|
+
def publish_binary_message(self, message_type: str, message: typing.Optional[windows_storage_streams.IBuffer], message_transmitted_handler: typing.Optional[MessageTransmittedHandler], /) -> winrt.system.Int64: ...
|
|
125
|
+
@typing.overload
|
|
126
|
+
def publish_message(self, message_type: str, message: str, /) -> winrt.system.Int64: ...
|
|
127
|
+
@typing.overload
|
|
128
|
+
def publish_message(self, message_type: str, message: str, message_transmitted_handler: typing.Optional[MessageTransmittedHandler], /) -> winrt.system.Int64: ...
|
|
129
|
+
@typing.overload
|
|
130
|
+
def publish_uri_message(self, message: typing.Optional[windows_foundation.Uri], /) -> winrt.system.Int64: ...
|
|
131
|
+
@typing.overload
|
|
132
|
+
def publish_uri_message(self, message: typing.Optional[windows_foundation.Uri], message_transmitted_handler: typing.Optional[MessageTransmittedHandler], /) -> winrt.system.Int64: ...
|
|
133
|
+
def stop_publishing_message(self, message_id: winrt.system.Int64, /) -> None: ...
|
|
134
|
+
def stop_subscribing_for_message(self, subscription_id: winrt.system.Int64, /) -> None: ...
|
|
135
|
+
def subscribe_for_message(self, message_type: str, message_received_handler: typing.Optional[MessageReceivedHandler], /) -> winrt.system.Int64: ...
|
|
136
|
+
def add_device_arrived(self, arrived_handler: typing.Optional[DeviceArrivedEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
|
|
137
|
+
def remove_device_arrived(self, cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
138
|
+
def add_device_departed(self, departed_handler: typing.Optional[DeviceDepartedEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
|
|
139
|
+
def remove_device_departed(self, cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
140
|
+
@_property
|
|
141
|
+
def bits_per_second(self) -> winrt.system.UInt64: ...
|
|
142
|
+
@_property
|
|
143
|
+
def device_id(self) -> str: ...
|
|
144
|
+
@_property
|
|
145
|
+
def max_message_bytes(self) -> winrt.system.UInt32: ...
|
|
146
|
+
|
|
147
|
+
@typing.final
|
|
148
|
+
class ProximityMessage(winrt.system.Object):
|
|
149
|
+
@staticmethod
|
|
150
|
+
def _from(obj: winrt.system.Object, /) -> ProximityMessage: ...
|
|
151
|
+
@_property
|
|
152
|
+
def data(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
|
|
153
|
+
@_property
|
|
154
|
+
def data_as_string(self) -> str: ...
|
|
155
|
+
@_property
|
|
156
|
+
def message_type(self) -> str: ...
|
|
157
|
+
@_property
|
|
158
|
+
def subscription_id(self) -> winrt.system.Int64: ...
|
|
159
|
+
|
|
160
|
+
@typing.final
|
|
161
|
+
class TriggeredConnectionStateChangedEventArgs(winrt.system.Object):
|
|
162
|
+
@staticmethod
|
|
163
|
+
def _from(obj: winrt.system.Object, /) -> TriggeredConnectionStateChangedEventArgs: ...
|
|
164
|
+
@_property
|
|
165
|
+
def id(self) -> winrt.system.UInt32: ...
|
|
166
|
+
@_property
|
|
167
|
+
def socket(self) -> typing.Optional[windows_networking_sockets.StreamSocket]: ...
|
|
168
|
+
@_property
|
|
169
|
+
def state(self) -> TriggeredConnectState: ...
|
|
170
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
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_networking_proximity
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"PeerDiscoveryTypes",
|
|
12
|
+
"PeerRole",
|
|
13
|
+
"PeerWatcherStatus",
|
|
14
|
+
"TriggeredConnectState",
|
|
15
|
+
"ConnectionRequestedEventArgs",
|
|
16
|
+
"PeerFinder",
|
|
17
|
+
"PeerInformation",
|
|
18
|
+
"PeerWatcher",
|
|
19
|
+
"ProximityDevice",
|
|
20
|
+
"ProximityMessage",
|
|
21
|
+
"TriggeredConnectionStateChangedEventArgs",
|
|
22
|
+
"DeviceArrivedEventHandler",
|
|
23
|
+
"DeviceDepartedEventHandler",
|
|
24
|
+
"MessageReceivedHandler",
|
|
25
|
+
"MessageTransmittedHandler",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
class PeerDiscoveryTypes(enum.IntFlag):
|
|
29
|
+
NONE = 0x0
|
|
30
|
+
BROWSE = 0x1
|
|
31
|
+
TRIGGERED = 0x2
|
|
32
|
+
|
|
33
|
+
class PeerRole(enum.IntEnum):
|
|
34
|
+
PEER = 0
|
|
35
|
+
HOST = 1
|
|
36
|
+
CLIENT = 2
|
|
37
|
+
|
|
38
|
+
class PeerWatcherStatus(enum.IntEnum):
|
|
39
|
+
CREATED = 0
|
|
40
|
+
STARTED = 1
|
|
41
|
+
ENUMERATION_COMPLETED = 2
|
|
42
|
+
STOPPING = 3
|
|
43
|
+
STOPPED = 4
|
|
44
|
+
ABORTED = 5
|
|
45
|
+
|
|
46
|
+
class TriggeredConnectState(enum.IntEnum):
|
|
47
|
+
PEER_FOUND = 0
|
|
48
|
+
LISTENING = 1
|
|
49
|
+
CONNECTING = 2
|
|
50
|
+
COMPLETED = 3
|
|
51
|
+
CANCELED = 4
|
|
52
|
+
FAILED = 5
|
|
53
|
+
|
|
54
|
+
ConnectionRequestedEventArgs = _winrt_windows_networking_proximity.ConnectionRequestedEventArgs
|
|
55
|
+
PeerFinder = _winrt_windows_networking_proximity.PeerFinder
|
|
56
|
+
PeerInformation = _winrt_windows_networking_proximity.PeerInformation
|
|
57
|
+
PeerWatcher = _winrt_windows_networking_proximity.PeerWatcher
|
|
58
|
+
ProximityDevice = _winrt_windows_networking_proximity.ProximityDevice
|
|
59
|
+
ProximityMessage = _winrt_windows_networking_proximity.ProximityMessage
|
|
60
|
+
TriggeredConnectionStateChangedEventArgs = _winrt_windows_networking_proximity.TriggeredConnectionStateChangedEventArgs
|
|
61
|
+
DeviceArrivedEventHandler = typing.Callable[[typing.Optional[ProximityDevice]], None]
|
|
62
|
+
DeviceDepartedEventHandler = typing.Callable[[typing.Optional[ProximityDevice]], None]
|
|
63
|
+
MessageReceivedHandler = typing.Callable[[typing.Optional[ProximityDevice], typing.Optional[ProximityMessage]], None]
|
|
64
|
+
MessageTransmittedHandler = typing.Callable[[typing.Optional[ProximityDevice], winrt.system.Int64], None]
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.Networking.Proximity
|
|
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.Networking[all] ==2.2.0 ; extra == 'all'
|
|
20
|
+
Requires-Dist: winrt-Windows.Networking.Sockets[all] ==2.2.0 ; extra == 'all'
|
|
21
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
|
|
22
|
+
|
|
23
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
24
|
+
|
|
25
|
+
# winrt-Windows.Networking.Proximity
|
|
26
|
+
|
|
27
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Networking.Proximity` namespace.
|
|
28
|
+
|
|
29
|
+
This package provides the `winrt.windows.networking.proximity` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_networking_proximity.cp313-win_amd64.pyd,sha256=9_4TrL8oRPgp8e63S9cN62EcxoLRigBArbxvmYQ_Q9I,190976
|
|
2
|
+
winrt/_winrt_windows_networking_proximity.pyi,sha256=89w-So3-mbc5AlGy-Bf0bp2jomo7Y_dzC2nK9NSYf7g,8919
|
|
3
|
+
winrt/windows/networking/proximity/__init__.py,sha256=4bzL0ATc99fVEcPtjf481z0pfS18GmbLzW-k3VXVvNI,2049
|
|
4
|
+
winrt/windows/networking/proximity/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_Windows.Networking.Proximity-2.2.0.dist-info/METADATA,sha256=AlesfchxzllbVHcLnu_wNgxcrAev3TowkDeHcKeG87k,1372
|
|
6
|
+
winrt_Windows.Networking.Proximity-2.2.0.dist-info/WHEEL,sha256=CdxowNJ2RPRCxUxJWAQ4R_o8uA51cjotGywc47Ht6wA,101
|
|
7
|
+
winrt_Windows.Networking.Proximity-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_Windows.Networking.Proximity-2.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|