winrt-Windows.ApplicationModel.LockScreen 2.0.1__tar.gz → 2.2.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.
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/PKG-INFO +6 -6
- winrt_windows_applicationmodel_lockscreen-2.2.0/all-requirements.txt +5 -0
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/py.Windows.ApplicationModel.LockScreen.cpp +354 -198
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_lockscreen-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/requirements.txt +2 -2
- winrt_windows_applicationmodel_lockscreen-2.2.0/winrt/_winrt_windows_applicationmodel_lockscreen.pyi +78 -0
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt/windows/applicationmodel/lockscreen/__init__.py +1 -1
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/PKG-INFO +6 -6
- winrt_windows_applicationmodel_lockscreen-2.2.0/winrt_Windows.ApplicationModel.LockScreen.egg-info/requires.txt +6 -0
- winrt_windows_applicationmodel_lockscreen-2.0.1/all-requirements.txt +0 -5
- winrt_windows_applicationmodel_lockscreen-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_lockscreen-2.0.1/winrt/_winrt_windows_applicationmodel_lockscreen.pyi +0 -78
- winrt_windows_applicationmodel_lockscreen-2.0.1/winrt_Windows.ApplicationModel.LockScreen.egg-info/requires.txt +0 -6
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt/windows/applicationmodel/lockscreen/py.typed +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.0.1 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.LockScreen
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -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.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0
|
|
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.Storage.Streams[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.LockScreen.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
7
6
|
{
|
|
8
7
|
// ----- LockApplicationHost class --------------------
|
|
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 0)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"GetForCurrentView", 0))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(0);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"GetForCurrentView", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(0);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
return py::convert(winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost::GetForCurrentView());
|
|
40
46
|
}
|
|
41
47
|
catch (...)
|
|
@@ -57,14 +63,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
57
63
|
|
|
58
64
|
if (arg_count == 0)
|
|
59
65
|
{
|
|
60
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"RequestUnlock", 0))
|
|
61
|
-
{
|
|
62
|
-
py::set_arg_count_version_error(0);
|
|
63
|
-
return nullptr;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
66
|
try
|
|
67
67
|
{
|
|
68
|
+
static std::optional<bool> is_overload_present{};
|
|
69
|
+
|
|
70
|
+
if (!is_overload_present.has_value())
|
|
71
|
+
{
|
|
72
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"RequestUnlock", 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!is_overload_present.value())
|
|
76
|
+
{
|
|
77
|
+
py::set_arg_count_version_error(0);
|
|
78
|
+
return nullptr;
|
|
79
|
+
}
|
|
80
|
+
|
|
68
81
|
self->obj.RequestUnlock();
|
|
69
82
|
Py_RETURN_NONE;
|
|
70
83
|
}
|
|
@@ -83,14 +96,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
83
96
|
|
|
84
97
|
static PyObject* LockApplicationHost_add_Unlocking(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost* self, PyObject* arg) noexcept
|
|
85
98
|
{
|
|
86
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking"))
|
|
87
|
-
{
|
|
88
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
89
|
-
return nullptr;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
99
|
try
|
|
93
100
|
{
|
|
101
|
+
static std::optional<bool> is_event_present{};
|
|
102
|
+
|
|
103
|
+
if (!is_event_present.has_value())
|
|
104
|
+
{
|
|
105
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking");
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (!is_event_present.value())
|
|
109
|
+
{
|
|
110
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
111
|
+
return nullptr;
|
|
112
|
+
}
|
|
113
|
+
|
|
94
114
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost, winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs>>(arg);
|
|
95
115
|
|
|
96
116
|
return py::convert(self->obj.Unlocking(param0));
|
|
@@ -104,14 +124,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
104
124
|
|
|
105
125
|
static PyObject* LockApplicationHost_remove_Unlocking(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost* self, PyObject* arg) noexcept
|
|
106
126
|
{
|
|
107
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking"))
|
|
108
|
-
{
|
|
109
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
110
|
-
return nullptr;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
127
|
try
|
|
114
128
|
{
|
|
129
|
+
static std::optional<bool> is_event_present{};
|
|
130
|
+
|
|
131
|
+
if (!is_event_present.has_value())
|
|
132
|
+
{
|
|
133
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking");
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (!is_event_present.value())
|
|
137
|
+
{
|
|
138
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
139
|
+
return nullptr;
|
|
140
|
+
}
|
|
141
|
+
|
|
115
142
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
116
143
|
|
|
117
144
|
self->obj.Unlocking(param0);
|
|
@@ -161,23 +188,20 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
161
188
|
{ }
|
|
162
189
|
};
|
|
163
190
|
|
|
164
|
-
static PyType_Slot _type_slots_LockApplicationHost[] =
|
|
165
|
-
{
|
|
191
|
+
static PyType_Slot _type_slots_LockApplicationHost[] = {
|
|
166
192
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockApplicationHost) },
|
|
167
193
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockApplicationHost) },
|
|
168
194
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockApplicationHost) },
|
|
169
195
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockApplicationHost) },
|
|
170
|
-
{ }
|
|
196
|
+
{ }
|
|
171
197
|
};
|
|
172
198
|
|
|
173
|
-
static PyType_Spec type_spec_LockApplicationHost =
|
|
174
|
-
{
|
|
199
|
+
static PyType_Spec type_spec_LockApplicationHost = {
|
|
175
200
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockApplicationHost",
|
|
176
201
|
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost),
|
|
177
202
|
0,
|
|
178
203
|
Py_TPFLAGS_DEFAULT,
|
|
179
|
-
_type_slots_LockApplicationHost
|
|
180
|
-
};
|
|
204
|
+
_type_slots_LockApplicationHost};
|
|
181
205
|
|
|
182
206
|
static PyGetSetDef getset_LockApplicationHost_Static[] = {
|
|
183
207
|
{ }
|
|
@@ -228,14 +252,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
228
252
|
|
|
229
253
|
if (arg_count == 0)
|
|
230
254
|
{
|
|
231
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"LaunchApp", 0))
|
|
232
|
-
{
|
|
233
|
-
py::set_arg_count_version_error(0);
|
|
234
|
-
return nullptr;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
255
|
try
|
|
238
256
|
{
|
|
257
|
+
static std::optional<bool> is_overload_present{};
|
|
258
|
+
|
|
259
|
+
if (!is_overload_present.has_value())
|
|
260
|
+
{
|
|
261
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"LaunchApp", 0);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if (!is_overload_present.value())
|
|
265
|
+
{
|
|
266
|
+
py::set_arg_count_version_error(0);
|
|
267
|
+
return nullptr;
|
|
268
|
+
}
|
|
269
|
+
|
|
239
270
|
self->obj.LaunchApp();
|
|
240
271
|
Py_RETURN_NONE;
|
|
241
272
|
}
|
|
@@ -254,14 +285,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
254
285
|
|
|
255
286
|
static PyObject* LockScreenBadge_get_AutomationName(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
256
287
|
{
|
|
257
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"AutomationName"))
|
|
258
|
-
{
|
|
259
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
260
|
-
return nullptr;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
288
|
try
|
|
264
289
|
{
|
|
290
|
+
static std::optional<bool> is_property_present{};
|
|
291
|
+
|
|
292
|
+
if (!is_property_present.has_value())
|
|
293
|
+
{
|
|
294
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"AutomationName");
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
if (!is_property_present.value())
|
|
298
|
+
{
|
|
299
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
300
|
+
return nullptr;
|
|
301
|
+
}
|
|
302
|
+
|
|
265
303
|
return py::convert(self->obj.AutomationName());
|
|
266
304
|
}
|
|
267
305
|
catch (...)
|
|
@@ -273,14 +311,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
273
311
|
|
|
274
312
|
static PyObject* LockScreenBadge_get_Glyph(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
275
313
|
{
|
|
276
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Glyph"))
|
|
277
|
-
{
|
|
278
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
279
|
-
return nullptr;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
314
|
try
|
|
283
315
|
{
|
|
316
|
+
static std::optional<bool> is_property_present{};
|
|
317
|
+
|
|
318
|
+
if (!is_property_present.has_value())
|
|
319
|
+
{
|
|
320
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Glyph");
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (!is_property_present.value())
|
|
324
|
+
{
|
|
325
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
326
|
+
return nullptr;
|
|
327
|
+
}
|
|
328
|
+
|
|
284
329
|
return py::convert(self->obj.Glyph());
|
|
285
330
|
}
|
|
286
331
|
catch (...)
|
|
@@ -292,14 +337,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
292
337
|
|
|
293
338
|
static PyObject* LockScreenBadge_get_Logo(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
294
339
|
{
|
|
295
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Logo"))
|
|
296
|
-
{
|
|
297
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
298
|
-
return nullptr;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
340
|
try
|
|
302
341
|
{
|
|
342
|
+
static std::optional<bool> is_property_present{};
|
|
343
|
+
|
|
344
|
+
if (!is_property_present.has_value())
|
|
345
|
+
{
|
|
346
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Logo");
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if (!is_property_present.value())
|
|
350
|
+
{
|
|
351
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
352
|
+
return nullptr;
|
|
353
|
+
}
|
|
354
|
+
|
|
303
355
|
return py::convert(self->obj.Logo());
|
|
304
356
|
}
|
|
305
357
|
catch (...)
|
|
@@ -311,14 +363,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
311
363
|
|
|
312
364
|
static PyObject* LockScreenBadge_get_Number(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
313
365
|
{
|
|
314
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Number"))
|
|
315
|
-
{
|
|
316
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
317
|
-
return nullptr;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
366
|
try
|
|
321
367
|
{
|
|
368
|
+
static std::optional<bool> is_property_present{};
|
|
369
|
+
|
|
370
|
+
if (!is_property_present.has_value())
|
|
371
|
+
{
|
|
372
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Number");
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if (!is_property_present.value())
|
|
376
|
+
{
|
|
377
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
378
|
+
return nullptr;
|
|
379
|
+
}
|
|
380
|
+
|
|
322
381
|
return py::convert(self->obj.Number());
|
|
323
382
|
}
|
|
324
383
|
catch (...)
|
|
@@ -367,23 +426,20 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
367
426
|
{ }
|
|
368
427
|
};
|
|
369
428
|
|
|
370
|
-
static PyType_Slot _type_slots_LockScreenBadge[] =
|
|
371
|
-
{
|
|
429
|
+
static PyType_Slot _type_slots_LockScreenBadge[] = {
|
|
372
430
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenBadge) },
|
|
373
431
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenBadge) },
|
|
374
432
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenBadge) },
|
|
375
433
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenBadge) },
|
|
376
|
-
{ }
|
|
434
|
+
{ }
|
|
377
435
|
};
|
|
378
436
|
|
|
379
|
-
static PyType_Spec type_spec_LockScreenBadge =
|
|
380
|
-
{
|
|
437
|
+
static PyType_Spec type_spec_LockScreenBadge = {
|
|
381
438
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenBadge",
|
|
382
439
|
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge),
|
|
383
440
|
0,
|
|
384
441
|
Py_TPFLAGS_DEFAULT,
|
|
385
|
-
_type_slots_LockScreenBadge
|
|
386
|
-
};
|
|
442
|
+
_type_slots_LockScreenBadge};
|
|
387
443
|
|
|
388
444
|
// ----- LockScreenInfo class --------------------
|
|
389
445
|
|
|
@@ -404,14 +460,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
404
460
|
|
|
405
461
|
static PyObject* LockScreenInfo_get_AlarmIcon(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
406
462
|
{
|
|
407
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIcon"))
|
|
408
|
-
{
|
|
409
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
410
|
-
return nullptr;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
463
|
try
|
|
414
464
|
{
|
|
465
|
+
static std::optional<bool> is_property_present{};
|
|
466
|
+
|
|
467
|
+
if (!is_property_present.has_value())
|
|
468
|
+
{
|
|
469
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIcon");
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
if (!is_property_present.value())
|
|
473
|
+
{
|
|
474
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
475
|
+
return nullptr;
|
|
476
|
+
}
|
|
477
|
+
|
|
415
478
|
return py::convert(self->obj.AlarmIcon());
|
|
416
479
|
}
|
|
417
480
|
catch (...)
|
|
@@ -423,14 +486,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
423
486
|
|
|
424
487
|
static PyObject* LockScreenInfo_get_Badges(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
425
488
|
{
|
|
426
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"Badges"))
|
|
427
|
-
{
|
|
428
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
429
|
-
return nullptr;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
489
|
try
|
|
433
490
|
{
|
|
491
|
+
static std::optional<bool> is_property_present{};
|
|
492
|
+
|
|
493
|
+
if (!is_property_present.has_value())
|
|
494
|
+
{
|
|
495
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"Badges");
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
if (!is_property_present.value())
|
|
499
|
+
{
|
|
500
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
501
|
+
return nullptr;
|
|
502
|
+
}
|
|
503
|
+
|
|
434
504
|
return py::convert(self->obj.Badges());
|
|
435
505
|
}
|
|
436
506
|
catch (...)
|
|
@@ -442,14 +512,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
442
512
|
|
|
443
513
|
static PyObject* LockScreenInfo_get_DetailText(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
444
514
|
{
|
|
445
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailText"))
|
|
446
|
-
{
|
|
447
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
448
|
-
return nullptr;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
515
|
try
|
|
452
516
|
{
|
|
517
|
+
static std::optional<bool> is_property_present{};
|
|
518
|
+
|
|
519
|
+
if (!is_property_present.has_value())
|
|
520
|
+
{
|
|
521
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailText");
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
if (!is_property_present.value())
|
|
525
|
+
{
|
|
526
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
527
|
+
return nullptr;
|
|
528
|
+
}
|
|
529
|
+
|
|
453
530
|
return py::convert(self->obj.DetailText());
|
|
454
531
|
}
|
|
455
532
|
catch (...)
|
|
@@ -461,14 +538,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
461
538
|
|
|
462
539
|
static PyObject* LockScreenInfo_get_LockScreenImage(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
463
540
|
{
|
|
464
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImage"))
|
|
465
|
-
{
|
|
466
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
467
|
-
return nullptr;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
541
|
try
|
|
471
542
|
{
|
|
543
|
+
static std::optional<bool> is_property_present{};
|
|
544
|
+
|
|
545
|
+
if (!is_property_present.has_value())
|
|
546
|
+
{
|
|
547
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImage");
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
if (!is_property_present.value())
|
|
551
|
+
{
|
|
552
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
553
|
+
return nullptr;
|
|
554
|
+
}
|
|
555
|
+
|
|
472
556
|
return py::convert(self->obj.LockScreenImage());
|
|
473
557
|
}
|
|
474
558
|
catch (...)
|
|
@@ -480,14 +564,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
480
564
|
|
|
481
565
|
static PyObject* LockScreenInfo_add_AlarmIconChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
482
566
|
{
|
|
483
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged"))
|
|
484
|
-
{
|
|
485
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
486
|
-
return nullptr;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
567
|
try
|
|
490
568
|
{
|
|
569
|
+
static std::optional<bool> is_event_present{};
|
|
570
|
+
|
|
571
|
+
if (!is_event_present.has_value())
|
|
572
|
+
{
|
|
573
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged");
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
if (!is_event_present.value())
|
|
577
|
+
{
|
|
578
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
579
|
+
return nullptr;
|
|
580
|
+
}
|
|
581
|
+
|
|
491
582
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
492
583
|
|
|
493
584
|
return py::convert(self->obj.AlarmIconChanged(param0));
|
|
@@ -501,14 +592,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
501
592
|
|
|
502
593
|
static PyObject* LockScreenInfo_remove_AlarmIconChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
503
594
|
{
|
|
504
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged"))
|
|
505
|
-
{
|
|
506
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
507
|
-
return nullptr;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
595
|
try
|
|
511
596
|
{
|
|
597
|
+
static std::optional<bool> is_event_present{};
|
|
598
|
+
|
|
599
|
+
if (!is_event_present.has_value())
|
|
600
|
+
{
|
|
601
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged");
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
if (!is_event_present.value())
|
|
605
|
+
{
|
|
606
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
607
|
+
return nullptr;
|
|
608
|
+
}
|
|
609
|
+
|
|
512
610
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
513
611
|
|
|
514
612
|
self->obj.AlarmIconChanged(param0);
|
|
@@ -523,14 +621,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
523
621
|
|
|
524
622
|
static PyObject* LockScreenInfo_add_BadgesChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
525
623
|
{
|
|
526
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged"))
|
|
527
|
-
{
|
|
528
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
529
|
-
return nullptr;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
624
|
try
|
|
533
625
|
{
|
|
626
|
+
static std::optional<bool> is_event_present{};
|
|
627
|
+
|
|
628
|
+
if (!is_event_present.has_value())
|
|
629
|
+
{
|
|
630
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged");
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
if (!is_event_present.value())
|
|
634
|
+
{
|
|
635
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
636
|
+
return nullptr;
|
|
637
|
+
}
|
|
638
|
+
|
|
534
639
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
535
640
|
|
|
536
641
|
return py::convert(self->obj.BadgesChanged(param0));
|
|
@@ -544,14 +649,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
544
649
|
|
|
545
650
|
static PyObject* LockScreenInfo_remove_BadgesChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
546
651
|
{
|
|
547
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged"))
|
|
548
|
-
{
|
|
549
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
550
|
-
return nullptr;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
652
|
try
|
|
554
653
|
{
|
|
654
|
+
static std::optional<bool> is_event_present{};
|
|
655
|
+
|
|
656
|
+
if (!is_event_present.has_value())
|
|
657
|
+
{
|
|
658
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged");
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
if (!is_event_present.value())
|
|
662
|
+
{
|
|
663
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
664
|
+
return nullptr;
|
|
665
|
+
}
|
|
666
|
+
|
|
555
667
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
556
668
|
|
|
557
669
|
self->obj.BadgesChanged(param0);
|
|
@@ -566,14 +678,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
566
678
|
|
|
567
679
|
static PyObject* LockScreenInfo_add_DetailTextChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
568
680
|
{
|
|
569
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged"))
|
|
570
|
-
{
|
|
571
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
572
|
-
return nullptr;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
681
|
try
|
|
576
682
|
{
|
|
683
|
+
static std::optional<bool> is_event_present{};
|
|
684
|
+
|
|
685
|
+
if (!is_event_present.has_value())
|
|
686
|
+
{
|
|
687
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged");
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
if (!is_event_present.value())
|
|
691
|
+
{
|
|
692
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
693
|
+
return nullptr;
|
|
694
|
+
}
|
|
695
|
+
|
|
577
696
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
578
697
|
|
|
579
698
|
return py::convert(self->obj.DetailTextChanged(param0));
|
|
@@ -587,14 +706,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
587
706
|
|
|
588
707
|
static PyObject* LockScreenInfo_remove_DetailTextChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
589
708
|
{
|
|
590
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged"))
|
|
591
|
-
{
|
|
592
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
593
|
-
return nullptr;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
709
|
try
|
|
597
710
|
{
|
|
711
|
+
static std::optional<bool> is_event_present{};
|
|
712
|
+
|
|
713
|
+
if (!is_event_present.has_value())
|
|
714
|
+
{
|
|
715
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged");
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
if (!is_event_present.value())
|
|
719
|
+
{
|
|
720
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
721
|
+
return nullptr;
|
|
722
|
+
}
|
|
723
|
+
|
|
598
724
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
599
725
|
|
|
600
726
|
self->obj.DetailTextChanged(param0);
|
|
@@ -609,14 +735,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
609
735
|
|
|
610
736
|
static PyObject* LockScreenInfo_add_LockScreenImageChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
611
737
|
{
|
|
612
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged"))
|
|
613
|
-
{
|
|
614
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
615
|
-
return nullptr;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
738
|
try
|
|
619
739
|
{
|
|
740
|
+
static std::optional<bool> is_event_present{};
|
|
741
|
+
|
|
742
|
+
if (!is_event_present.has_value())
|
|
743
|
+
{
|
|
744
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged");
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
if (!is_event_present.value())
|
|
748
|
+
{
|
|
749
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
750
|
+
return nullptr;
|
|
751
|
+
}
|
|
752
|
+
|
|
620
753
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
621
754
|
|
|
622
755
|
return py::convert(self->obj.LockScreenImageChanged(param0));
|
|
@@ -630,14 +763,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
630
763
|
|
|
631
764
|
static PyObject* LockScreenInfo_remove_LockScreenImageChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
632
765
|
{
|
|
633
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged"))
|
|
634
|
-
{
|
|
635
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
636
|
-
return nullptr;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
766
|
try
|
|
640
767
|
{
|
|
768
|
+
static std::optional<bool> is_event_present{};
|
|
769
|
+
|
|
770
|
+
if (!is_event_present.has_value())
|
|
771
|
+
{
|
|
772
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged");
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
if (!is_event_present.value())
|
|
776
|
+
{
|
|
777
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
778
|
+
return nullptr;
|
|
779
|
+
}
|
|
780
|
+
|
|
641
781
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
642
782
|
|
|
643
783
|
self->obj.LockScreenImageChanged(param0);
|
|
@@ -696,23 +836,20 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
696
836
|
{ }
|
|
697
837
|
};
|
|
698
838
|
|
|
699
|
-
static PyType_Slot _type_slots_LockScreenInfo[] =
|
|
700
|
-
{
|
|
839
|
+
static PyType_Slot _type_slots_LockScreenInfo[] = {
|
|
701
840
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenInfo) },
|
|
702
841
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenInfo) },
|
|
703
842
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenInfo) },
|
|
704
843
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenInfo) },
|
|
705
|
-
{ }
|
|
844
|
+
{ }
|
|
706
845
|
};
|
|
707
846
|
|
|
708
|
-
static PyType_Spec type_spec_LockScreenInfo =
|
|
709
|
-
{
|
|
847
|
+
static PyType_Spec type_spec_LockScreenInfo = {
|
|
710
848
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenInfo",
|
|
711
849
|
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo),
|
|
712
850
|
0,
|
|
713
851
|
Py_TPFLAGS_DEFAULT,
|
|
714
|
-
_type_slots_LockScreenInfo
|
|
715
|
-
};
|
|
852
|
+
_type_slots_LockScreenInfo};
|
|
716
853
|
|
|
717
854
|
// ----- LockScreenUnlockingDeferral class --------------------
|
|
718
855
|
|
|
@@ -737,14 +874,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
737
874
|
|
|
738
875
|
if (arg_count == 0)
|
|
739
876
|
{
|
|
740
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingDeferral", L"Complete", 0))
|
|
741
|
-
{
|
|
742
|
-
py::set_arg_count_version_error(0);
|
|
743
|
-
return nullptr;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
877
|
try
|
|
747
878
|
{
|
|
879
|
+
static std::optional<bool> is_overload_present{};
|
|
880
|
+
|
|
881
|
+
if (!is_overload_present.has_value())
|
|
882
|
+
{
|
|
883
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingDeferral", L"Complete", 0);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
if (!is_overload_present.value())
|
|
887
|
+
{
|
|
888
|
+
py::set_arg_count_version_error(0);
|
|
889
|
+
return nullptr;
|
|
890
|
+
}
|
|
891
|
+
|
|
748
892
|
self->obj.Complete();
|
|
749
893
|
Py_RETURN_NONE;
|
|
750
894
|
}
|
|
@@ -796,23 +940,20 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
796
940
|
{ }
|
|
797
941
|
};
|
|
798
942
|
|
|
799
|
-
static PyType_Slot _type_slots_LockScreenUnlockingDeferral[] =
|
|
800
|
-
{
|
|
943
|
+
static PyType_Slot _type_slots_LockScreenUnlockingDeferral[] = {
|
|
801
944
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenUnlockingDeferral) },
|
|
802
945
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenUnlockingDeferral) },
|
|
803
946
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenUnlockingDeferral) },
|
|
804
947
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenUnlockingDeferral) },
|
|
805
|
-
{ }
|
|
948
|
+
{ }
|
|
806
949
|
};
|
|
807
950
|
|
|
808
|
-
static PyType_Spec type_spec_LockScreenUnlockingDeferral =
|
|
809
|
-
{
|
|
951
|
+
static PyType_Spec type_spec_LockScreenUnlockingDeferral = {
|
|
810
952
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingDeferral",
|
|
811
953
|
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral),
|
|
812
954
|
0,
|
|
813
955
|
Py_TPFLAGS_DEFAULT,
|
|
814
|
-
_type_slots_LockScreenUnlockingDeferral
|
|
815
|
-
};
|
|
956
|
+
_type_slots_LockScreenUnlockingDeferral};
|
|
816
957
|
|
|
817
958
|
// ----- LockScreenUnlockingEventArgs class --------------------
|
|
818
959
|
|
|
@@ -837,14 +978,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
837
978
|
|
|
838
979
|
if (arg_count == 0)
|
|
839
980
|
{
|
|
840
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"GetDeferral", 0))
|
|
841
|
-
{
|
|
842
|
-
py::set_arg_count_version_error(0);
|
|
843
|
-
return nullptr;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
981
|
try
|
|
847
982
|
{
|
|
983
|
+
static std::optional<bool> is_overload_present{};
|
|
984
|
+
|
|
985
|
+
if (!is_overload_present.has_value())
|
|
986
|
+
{
|
|
987
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"GetDeferral", 0);
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
if (!is_overload_present.value())
|
|
991
|
+
{
|
|
992
|
+
py::set_arg_count_version_error(0);
|
|
993
|
+
return nullptr;
|
|
994
|
+
}
|
|
995
|
+
|
|
848
996
|
return py::convert(self->obj.GetDeferral());
|
|
849
997
|
}
|
|
850
998
|
catch (...)
|
|
@@ -862,14 +1010,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
862
1010
|
|
|
863
1011
|
static PyObject* LockScreenUnlockingEventArgs_get_Deadline(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs* self, void* /*unused*/) noexcept
|
|
864
1012
|
{
|
|
865
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"Deadline"))
|
|
866
|
-
{
|
|
867
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
868
|
-
return nullptr;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
1013
|
try
|
|
872
1014
|
{
|
|
1015
|
+
static std::optional<bool> is_property_present{};
|
|
1016
|
+
|
|
1017
|
+
if (!is_property_present.has_value())
|
|
1018
|
+
{
|
|
1019
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"Deadline");
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
if (!is_property_present.value())
|
|
1023
|
+
{
|
|
1024
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1025
|
+
return nullptr;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
873
1028
|
return py::convert(self->obj.Deadline());
|
|
874
1029
|
}
|
|
875
1030
|
catch (...)
|
|
@@ -915,39 +1070,35 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
915
1070
|
{ }
|
|
916
1071
|
};
|
|
917
1072
|
|
|
918
|
-
static PyType_Slot _type_slots_LockScreenUnlockingEventArgs[] =
|
|
919
|
-
{
|
|
1073
|
+
static PyType_Slot _type_slots_LockScreenUnlockingEventArgs[] = {
|
|
920
1074
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenUnlockingEventArgs) },
|
|
921
1075
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenUnlockingEventArgs) },
|
|
922
1076
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenUnlockingEventArgs) },
|
|
923
1077
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenUnlockingEventArgs) },
|
|
924
|
-
{ }
|
|
1078
|
+
{ }
|
|
925
1079
|
};
|
|
926
1080
|
|
|
927
|
-
static PyType_Spec type_spec_LockScreenUnlockingEventArgs =
|
|
928
|
-
{
|
|
1081
|
+
static PyType_Spec type_spec_LockScreenUnlockingEventArgs = {
|
|
929
1082
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingEventArgs",
|
|
930
1083
|
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs),
|
|
931
1084
|
0,
|
|
932
1085
|
Py_TPFLAGS_DEFAULT,
|
|
933
|
-
_type_slots_LockScreenUnlockingEventArgs
|
|
934
|
-
};
|
|
1086
|
+
_type_slots_LockScreenUnlockingEventArgs};
|
|
935
1087
|
|
|
936
1088
|
// ----- Windows.ApplicationModel.LockScreen Initialization --------------------
|
|
937
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::LockScreen");
|
|
938
1089
|
|
|
1090
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.LockScreen");
|
|
939
1091
|
|
|
940
|
-
static PyModuleDef module_def
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
1092
|
+
static PyModuleDef module_def = {
|
|
1093
|
+
PyModuleDef_HEAD_INIT,
|
|
1094
|
+
"_winrt_windows_applicationmodel_lockscreen",
|
|
1095
|
+
module_doc,
|
|
1096
|
+
0,
|
|
1097
|
+
nullptr,
|
|
1098
|
+
nullptr,
|
|
1099
|
+
nullptr,
|
|
1100
|
+
nullptr,
|
|
1101
|
+
nullptr};
|
|
951
1102
|
} // py::cpp::Windows::ApplicationModel::LockScreen
|
|
952
1103
|
|
|
953
1104
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_lockscreen(void) noexcept
|
|
@@ -985,27 +1136,32 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_lockscreen(void) noexcept
|
|
|
985
1136
|
return nullptr;
|
|
986
1137
|
}
|
|
987
1138
|
|
|
988
|
-
|
|
1139
|
+
py::pytype_handle LockApplicationHost_type{py::register_python_type(module.get(), &type_spec_LockApplicationHost, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_LockApplicationHost_Static.get()))};
|
|
1140
|
+
if (!LockApplicationHost_type)
|
|
989
1141
|
{
|
|
990
1142
|
return nullptr;
|
|
991
1143
|
}
|
|
992
1144
|
|
|
993
|
-
|
|
1145
|
+
py::pytype_handle LockScreenBadge_type{py::register_python_type(module.get(), &type_spec_LockScreenBadge, object_bases.get(), nullptr)};
|
|
1146
|
+
if (!LockScreenBadge_type)
|
|
994
1147
|
{
|
|
995
1148
|
return nullptr;
|
|
996
1149
|
}
|
|
997
1150
|
|
|
998
|
-
|
|
1151
|
+
py::pytype_handle LockScreenInfo_type{py::register_python_type(module.get(), &type_spec_LockScreenInfo, object_bases.get(), nullptr)};
|
|
1152
|
+
if (!LockScreenInfo_type)
|
|
999
1153
|
{
|
|
1000
1154
|
return nullptr;
|
|
1001
1155
|
}
|
|
1002
1156
|
|
|
1003
|
-
|
|
1157
|
+
py::pytype_handle LockScreenUnlockingDeferral_type{py::register_python_type(module.get(), &type_spec_LockScreenUnlockingDeferral, object_bases.get(), nullptr)};
|
|
1158
|
+
if (!LockScreenUnlockingDeferral_type)
|
|
1004
1159
|
{
|
|
1005
1160
|
return nullptr;
|
|
1006
1161
|
}
|
|
1007
1162
|
|
|
1008
|
-
|
|
1163
|
+
py::pytype_handle LockScreenUnlockingEventArgs_type{py::register_python_type(module.get(), &type_spec_LockScreenUnlockingEventArgs, object_bases.get(), nullptr)};
|
|
1164
|
+
if (!LockScreenUnlockingEventArgs_type)
|
|
1009
1165
|
{
|
|
1010
1166
|
return nullptr;
|
|
1011
1167
|
}
|
|
@@ -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.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
winrt_windows_applicationmodel_lockscreen-2.2.0/winrt/_winrt_windows_applicationmodel_lockscreen.pyi
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
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.storage.streams as windows_storage_streams
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class LockApplicationHost_Static(type):
|
|
20
|
+
def get_for_current_view(cls) -> typing.Optional[LockApplicationHost]: ...
|
|
21
|
+
|
|
22
|
+
@typing.final
|
|
23
|
+
class LockApplicationHost(winrt.system.Object, metaclass=LockApplicationHost_Static):
|
|
24
|
+
@staticmethod
|
|
25
|
+
def _from(obj: winrt.system.Object, /) -> LockApplicationHost: ...
|
|
26
|
+
def request_unlock(self) -> None: ...
|
|
27
|
+
def add_unlocking(self, handler: windows_foundation.TypedEventHandler[LockApplicationHost, LockScreenUnlockingEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
28
|
+
def remove_unlocking(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
29
|
+
|
|
30
|
+
@typing.final
|
|
31
|
+
class LockScreenBadge(winrt.system.Object):
|
|
32
|
+
@staticmethod
|
|
33
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenBadge: ...
|
|
34
|
+
def launch_app(self) -> None: ...
|
|
35
|
+
@_property
|
|
36
|
+
def automation_name(self) -> str: ...
|
|
37
|
+
@_property
|
|
38
|
+
def glyph(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
39
|
+
@_property
|
|
40
|
+
def logo(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
41
|
+
@_property
|
|
42
|
+
def number(self) -> typing.Optional[typing.Optional[winrt.system.UInt32]]: ...
|
|
43
|
+
|
|
44
|
+
@typing.final
|
|
45
|
+
class LockScreenInfo(winrt.system.Object):
|
|
46
|
+
@staticmethod
|
|
47
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenInfo: ...
|
|
48
|
+
def add_alarm_icon_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
49
|
+
def remove_alarm_icon_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
50
|
+
def add_badges_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
51
|
+
def remove_badges_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
52
|
+
def add_detail_text_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
53
|
+
def remove_detail_text_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
54
|
+
def add_lock_screen_image_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
55
|
+
def remove_lock_screen_image_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
56
|
+
@_property
|
|
57
|
+
def alarm_icon(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
58
|
+
@_property
|
|
59
|
+
def badges(self) -> typing.Optional[windows_foundation_collections.IVectorView[LockScreenBadge]]: ...
|
|
60
|
+
@_property
|
|
61
|
+
def detail_text(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
62
|
+
@_property
|
|
63
|
+
def lock_screen_image(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
64
|
+
|
|
65
|
+
@typing.final
|
|
66
|
+
class LockScreenUnlockingDeferral(winrt.system.Object):
|
|
67
|
+
@staticmethod
|
|
68
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingDeferral: ...
|
|
69
|
+
def complete(self) -> None: ...
|
|
70
|
+
|
|
71
|
+
@typing.final
|
|
72
|
+
class LockScreenUnlockingEventArgs(winrt.system.Object):
|
|
73
|
+
@staticmethod
|
|
74
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingEventArgs: ...
|
|
75
|
+
def get_deferral(self) -> typing.Optional[LockScreenUnlockingDeferral]: ...
|
|
76
|
+
@_property
|
|
77
|
+
def deadline(self) -> datetime.datetime: ...
|
|
78
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.LockScreen
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -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.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0
|
|
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.Storage.Streams[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
winrt_windows_applicationmodel_lockscreen-2.0.1/winrt/_winrt_windows_applicationmodel_lockscreen.pyi
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
14
|
-
import winrt.windows.storage.streams
|
|
15
|
-
|
|
16
|
-
Self = typing.TypeVar('Self')
|
|
17
|
-
|
|
18
|
-
@typing.final
|
|
19
|
-
class LockApplicationHost_Static(type):
|
|
20
|
-
def get_for_current_view(cls) -> typing.Optional[LockApplicationHost]: ...
|
|
21
|
-
|
|
22
|
-
@typing.final
|
|
23
|
-
class LockApplicationHost(winrt.system.Object, metaclass=LockApplicationHost_Static):
|
|
24
|
-
@staticmethod
|
|
25
|
-
def _from(obj: winrt.system.Object, /) -> LockApplicationHost: ...
|
|
26
|
-
def request_unlock(self) -> None: ...
|
|
27
|
-
def add_unlocking(self, handler: winrt.windows.foundation.TypedEventHandler[LockApplicationHost, LockScreenUnlockingEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
28
|
-
def remove_unlocking(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
29
|
-
|
|
30
|
-
@typing.final
|
|
31
|
-
class LockScreenBadge(winrt.system.Object):
|
|
32
|
-
@staticmethod
|
|
33
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenBadge: ...
|
|
34
|
-
def launch_app(self) -> None: ...
|
|
35
|
-
@_property
|
|
36
|
-
def automation_name(self) -> str: ...
|
|
37
|
-
@_property
|
|
38
|
-
def glyph(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
39
|
-
@_property
|
|
40
|
-
def logo(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
41
|
-
@_property
|
|
42
|
-
def number(self) -> typing.Optional[typing.Optional[winrt.system.UInt32]]: ...
|
|
43
|
-
|
|
44
|
-
@typing.final
|
|
45
|
-
class LockScreenInfo(winrt.system.Object):
|
|
46
|
-
@staticmethod
|
|
47
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenInfo: ...
|
|
48
|
-
def add_alarm_icon_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
49
|
-
def remove_alarm_icon_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
50
|
-
def add_badges_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
51
|
-
def remove_badges_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
52
|
-
def add_detail_text_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
53
|
-
def remove_detail_text_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
54
|
-
def add_lock_screen_image_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
55
|
-
def remove_lock_screen_image_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
56
|
-
@_property
|
|
57
|
-
def alarm_icon(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
58
|
-
@_property
|
|
59
|
-
def badges(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[LockScreenBadge]]: ...
|
|
60
|
-
@_property
|
|
61
|
-
def detail_text(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[str]]: ...
|
|
62
|
-
@_property
|
|
63
|
-
def lock_screen_image(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
64
|
-
|
|
65
|
-
@typing.final
|
|
66
|
-
class LockScreenUnlockingDeferral(winrt.system.Object):
|
|
67
|
-
@staticmethod
|
|
68
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingDeferral: ...
|
|
69
|
-
def complete(self) -> None: ...
|
|
70
|
-
|
|
71
|
-
@typing.final
|
|
72
|
-
class LockScreenUnlockingEventArgs(winrt.system.Object):
|
|
73
|
-
@staticmethod
|
|
74
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingEventArgs: ...
|
|
75
|
-
def get_deferral(self) -> typing.Optional[LockScreenUnlockingDeferral]: ...
|
|
76
|
-
@_property
|
|
77
|
-
def deadline(self) -> datetime.datetime: ...
|
|
78
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|