@sebbo2002/node-pyatv 5.1.0 → 5.1.1-develop.2
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.
- package/CHANGELOG.md +4 -0
- package/docs/coverage/cobertura-coverage.xml +4 -4
- package/docs/coverage/device-event.ts.html +1 -1
- package/docs/coverage/device-events.ts.html +1 -1
- package/docs/coverage/device.ts.html +1 -1
- package/docs/coverage/fake-spawn.ts.html +1 -1
- package/docs/coverage/index.html +1 -1
- package/docs/coverage/index.ts.html +1 -1
- package/docs/coverage/instance.ts.html +1 -1
- package/docs/coverage/tools.ts.html +4 -4
- package/docs/coverage/types.ts.html +1 -1
- package/docs/reference/assets/highlight.css +4 -4
- package/docs/reference/assets/main.js +1 -1
- package/docs/reference/assets/style.css +1 -0
- package/docs/reference/classes/NodePyATVDevice.html +76 -76
- package/docs/reference/classes/NodePyATVDeviceEvent.html +10 -10
- package/docs/reference/classes/NodePyATVInstance.html +14 -14
- package/docs/reference/enums/NodePyATVDeviceState.html +11 -11
- package/docs/reference/enums/NodePyATVExecutableType.html +7 -7
- package/docs/reference/enums/NodePyATVKeys.html +28 -28
- package/docs/reference/enums/NodePyATVListenerState.html +9 -9
- package/docs/reference/enums/NodePyATVMediaType.html +9 -9
- package/docs/reference/enums/NodePyATVPowerState.html +7 -7
- package/docs/reference/enums/NodePyATVProtocol.html +9 -9
- package/docs/reference/enums/NodePyATVRepeatState.html +8 -8
- package/docs/reference/enums/NodePyATVShuffleState.html +8 -8
- package/docs/reference/index.html +5 -5
- package/docs/reference/interfaces/NodePyATVDeviceOptions.html +25 -25
- package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +19 -19
- package/docs/reference/interfaces/NodePyATVFindOptions.html +14 -14
- package/docs/reference/interfaces/NodePyATVGetStateOptions.html +6 -6
- package/docs/reference/interfaces/NodePyATVInstanceOptions.html +10 -10
- package/docs/reference/interfaces/NodePyATVService.html +7 -7
- package/docs/reference/interfaces/NodePyATVState.html +20 -20
- package/docs/reference/interfaces/NodePyATVVersionResponse.html +7 -7
- package/docs/reference/modules.html +4 -4
- package/docs/reference/types/NodePyATVEventValueType.html +5 -5
- package/docs/tests/index.html +1 -1
- package/docs/tests/mochawesome.json +656 -656
- package/package.json +13 -13
- package/docs/reference/assets/widgets.png +0 -0
- package/docs/reference/assets/widgets@2x.png +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVDevice | node-pyatv - v5.1.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVDevice | node-pyatv - v5.1.1-develop.2</title><meta name="description" content="Documentation for node-pyatv - v5.1.1-develop.2"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
5
|
<ul class="results">
|
|
6
6
|
<li class="state loading">Preparing search index...</li>
|
|
7
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.1.
|
|
7
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.1.1-develop.2</a></div>
|
|
8
8
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
9
9
|
<div class="container container-main">
|
|
10
10
|
<div class="col-8 col-content">
|
|
11
11
|
<div class="tsd-page-title">
|
|
12
12
|
<ul class="tsd-breadcrumb">
|
|
13
|
-
<li><a href="../modules.html">node-pyatv - v5.1.
|
|
13
|
+
<li><a href="../modules.html">node-pyatv - v5.1.1-develop.2</a></li>
|
|
14
14
|
<li><a href="NodePyATVDevice.html">NodePyATVDevice</a></li></ul>
|
|
15
15
|
<h1>Class NodePyATVDevice</h1></div>
|
|
16
16
|
<section class="tsd-panel tsd-comment">
|
|
@@ -29,7 +29,7 @@ It's also possible to send key commands by using <a href="NodePyATVDevice.ht
|
|
|
29
29
|
<ul class="tsd-hierarchy">
|
|
30
30
|
<li><span class="tsd-signature-type">EventEmitter</span></li></ul></section><aside class="tsd-sources">
|
|
31
31
|
<ul>
|
|
32
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
32
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L29">src/lib/device.ts:29</a></li></ul></aside>
|
|
33
33
|
<section class="tsd-panel-group tsd-index-group">
|
|
34
34
|
<section class="tsd-panel tsd-index-panel">
|
|
35
35
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -135,7 +135,7 @@ It's also possible to send key commands by using <a href="NodePyATVDevice.ht
|
|
|
135
135
|
<h5>options: <a href="../interfaces/NodePyATVDeviceOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVDeviceOptions</a></h5></li></ul></div>
|
|
136
136
|
<h4 class="tsd-returns-title">Returns <a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a></h4><aside class="tsd-sources">
|
|
137
137
|
<ul>
|
|
138
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
138
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L34">src/lib/device.ts:34</a></li></ul></aside></li></ul></section></section>
|
|
139
139
|
<section class="tsd-panel-group tsd-member-group">
|
|
140
140
|
<h2>Accessors</h2>
|
|
141
141
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="debug" class="tsd-anchor"></a>
|
|
@@ -149,7 +149,7 @@ log is disabled, returns undefined.</p>
|
|
|
149
149
|
</div>
|
|
150
150
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>msg<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></h4><aside class="tsd-sources">
|
|
151
151
|
<ul>
|
|
152
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
152
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L144">src/lib/device.ts:144</a></li></ul></aside></li>
|
|
153
153
|
<li class="tsd-signature" id="debug.debug-2"><span class="tsd-signature-symbol">set</span> debug<span class="tsd-signature-symbol">(</span>debug<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>msg<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
154
154
|
<li class="tsd-description">
|
|
155
155
|
<div class="tsd-comment tsd-typography"><p>Enable or disable debugging or set a custom
|
|
@@ -162,7 +162,7 @@ debugging method to use.</p>
|
|
|
162
162
|
<h5>debug: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>msg<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></h5></li></ul></div>
|
|
163
163
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
164
164
|
<ul>
|
|
165
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
165
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L154">src/lib/device.ts:154</a></li></ul></aside></li></ul></section>
|
|
166
166
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="host" class="tsd-anchor"></a>
|
|
167
167
|
<h3 class="tsd-anchor-link"><span>host</span><a href="#host" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
168
168
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -172,7 +172,7 @@ debugging method to use.</p>
|
|
|
172
172
|
</div>
|
|
173
173
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
174
174
|
<ul>
|
|
175
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
175
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L60">src/lib/device.ts:60</a></li></ul></aside></li></ul></section>
|
|
176
176
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="id" class="tsd-anchor"></a>
|
|
177
177
|
<h3 class="tsd-anchor-link"><span>id</span><a href="#id" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
178
178
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -182,7 +182,7 @@ debugging method to use.</p>
|
|
|
182
182
|
</div>
|
|
183
183
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
184
184
|
<ul>
|
|
185
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
185
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L67">src/lib/device.ts:67</a></li></ul></aside></li></ul></section>
|
|
186
186
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="model" class="tsd-anchor"></a>
|
|
187
187
|
<h3 class="tsd-anchor-link"><span>model</span><a href="#model" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
188
188
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -196,7 +196,7 @@ device was found using find(). Requires pyatv ≧ 0.10.3.</p>
|
|
|
196
196
|
</div>
|
|
197
197
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
198
198
|
<ul>
|
|
199
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
199
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L84">src/lib/device.ts:84</a></li></ul></aside></li></ul></section>
|
|
200
200
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="modelName" class="tsd-anchor"></a>
|
|
201
201
|
<h3 class="tsd-anchor-link"><span>model<wbr/>Name</span><a href="#modelName" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
202
202
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -210,7 +210,7 @@ was found with find(). Requires pyatv ≧ 0.10.3.</p>
|
|
|
210
210
|
</div>
|
|
211
211
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
212
212
|
<ul>
|
|
213
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
213
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L94">src/lib/device.ts:94</a></li></ul></aside></li></ul></section>
|
|
214
214
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="name" class="tsd-anchor"></a>
|
|
215
215
|
<h3 class="tsd-anchor-link"><span>name</span><a href="#name" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
216
216
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -222,7 +222,7 @@ was found with find(). Requires pyatv ≧ 0.10.3.</p>
|
|
|
222
222
|
</div>
|
|
223
223
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
224
224
|
<ul>
|
|
225
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
225
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L53">src/lib/device.ts:53</a></li></ul></aside></li></ul></section>
|
|
226
226
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="os" class="tsd-anchor"></a>
|
|
227
227
|
<h3 class="tsd-anchor-link"><span>os</span><a href="#os" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
228
228
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -236,7 +236,7 @@ device was found with find(). Requires pyatv ≧ 0.10.3.</p>
|
|
|
236
236
|
</div>
|
|
237
237
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
238
238
|
<ul>
|
|
239
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
239
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L104">src/lib/device.ts:104</a></li></ul></aside></li></ul></section>
|
|
240
240
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="protocol" class="tsd-anchor"></a>
|
|
241
241
|
<h3 class="tsd-anchor-link"><span>protocol</span><a href="#protocol" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
242
242
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -246,7 +246,7 @@ device was found with find(). Requires pyatv ≧ 0.10.3.</p>
|
|
|
246
246
|
</div>
|
|
247
247
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../enums/NodePyATVProtocol.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVProtocol</a></h4><aside class="tsd-sources">
|
|
248
248
|
<ul>
|
|
249
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
249
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L74">src/lib/device.ts:74</a></li></ul></aside></li></ul></section>
|
|
250
250
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="services" class="tsd-anchor"></a>
|
|
251
251
|
<h3 class="tsd-anchor-link"><span>services</span><a href="#services" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
252
252
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -256,12 +256,12 @@ device was found with find(). Requires pyatv ≧ 0.10.3.</p>
|
|
|
256
256
|
the device was found during a scan using find(). Requires
|
|
257
257
|
pyatv ≧ 0.10.3.</p>
|
|
258
258
|
|
|
259
|
-
<h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">services</span><span class="hl-1"> → [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-3">"protocol"</span><span class="hl-0">:</span><span class="hl-1"> </span><span class="hl-3">"airplay"</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-3">"port"</span><span class="hl-0">:</span><span class="hl-1"> </span><span class="hl-
|
|
259
|
+
<h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">services</span><span class="hl-1"> → [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-3">"protocol"</span><span class="hl-0">:</span><span class="hl-1"> </span><span class="hl-3">"airplay"</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-3">"port"</span><span class="hl-0">:</span><span class="hl-1"> </span><span class="hl-8">7000</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-3">"protocol"</span><span class="hl-0">:</span><span class="hl-1"> </span><span class="hl-3">"dmap"</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-3">"port"</span><span class="hl-0">:</span><span class="hl-1"> </span><span class="hl-8">3689</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">]</span>
|
|
260
260
|
</code></pre>
|
|
261
261
|
</div>
|
|
262
262
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/NodePyATVService.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVService</a><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
|
263
263
|
<ul>
|
|
264
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
264
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L134">src/lib/device.ts:134</a></li></ul></aside></li></ul></section>
|
|
265
265
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="version" class="tsd-anchor"></a>
|
|
266
266
|
<h3 class="tsd-anchor-link"><span>version</span><a href="#version" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
267
267
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -275,7 +275,7 @@ during a scan using find(). Requires pyatv ≧ 0.10.3.</p>
|
|
|
275
275
|
</div>
|
|
276
276
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
277
277
|
<ul>
|
|
278
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
278
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L114">src/lib/device.ts:114</a></li></ul></aside></li></ul></section></section>
|
|
279
279
|
<section class="tsd-panel-group tsd-member-group">
|
|
280
280
|
<h2>Basic Methods</h2>
|
|
281
281
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toJSON" class="tsd-anchor"></a>
|
|
@@ -297,7 +297,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
297
297
|
<li class="tsd-parameter">
|
|
298
298
|
<h5>protocol<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../enums/NodePyATVProtocol.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVProtocol</a></h5></li></ul><aside class="tsd-sources">
|
|
299
299
|
<ul>
|
|
300
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
300
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L169">src/lib/device.ts:169</a></li></ul></aside></li></ul></section>
|
|
301
301
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toString" class="tsd-anchor"></a>
|
|
302
302
|
<h3 class="tsd-anchor-link"><span>to<wbr/>String</span><a href="#toString" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
303
303
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -307,7 +307,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
307
307
|
</div>
|
|
308
308
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
309
309
|
<ul>
|
|
310
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
310
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L183">src/lib/device.ts:183</a></li></ul></aside></li></ul></section></section>
|
|
311
311
|
<section class="tsd-panel-group tsd-member-group">
|
|
312
312
|
<h2>Control Methods</h2>
|
|
313
313
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="down" class="tsd-anchor"></a>
|
|
@@ -319,7 +319,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
319
319
|
</div>
|
|
320
320
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
321
321
|
<ul>
|
|
322
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
322
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L432">src/lib/device.ts:432</a></li></ul></aside></li></ul></section>
|
|
323
323
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="home" class="tsd-anchor"></a>
|
|
324
324
|
<h3 class="tsd-anchor-link"><span>home</span><a href="#home" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
325
325
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -329,7 +329,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
329
329
|
</div>
|
|
330
330
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
331
331
|
<ul>
|
|
332
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
332
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L440">src/lib/device.ts:440</a></li></ul></aside></li></ul></section>
|
|
333
333
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="homeHold" class="tsd-anchor"></a>
|
|
334
334
|
<h3 class="tsd-anchor-link"><span>home<wbr/>Hold</span><a href="#homeHold" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
335
335
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -339,7 +339,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
339
339
|
</div>
|
|
340
340
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
341
341
|
<ul>
|
|
342
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
342
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L448">src/lib/device.ts:448</a></li></ul></aside></li></ul></section>
|
|
343
343
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="left" class="tsd-anchor"></a>
|
|
344
344
|
<h3 class="tsd-anchor-link"><span>left</span><a href="#left" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
345
345
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -349,7 +349,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
349
349
|
</div>
|
|
350
350
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
351
351
|
<ul>
|
|
352
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
352
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L456">src/lib/device.ts:456</a></li></ul></aside></li></ul></section>
|
|
353
353
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="menu" class="tsd-anchor"></a>
|
|
354
354
|
<h3 class="tsd-anchor-link"><span>menu</span><a href="#menu" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
355
355
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -359,7 +359,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
359
359
|
</div>
|
|
360
360
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
361
361
|
<ul>
|
|
362
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
362
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L464">src/lib/device.ts:464</a></li></ul></aside></li></ul></section>
|
|
363
363
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="next" class="tsd-anchor"></a>
|
|
364
364
|
<h3 class="tsd-anchor-link"><span>next</span><a href="#next" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
365
365
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -369,7 +369,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
369
369
|
</div>
|
|
370
370
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
371
371
|
<ul>
|
|
372
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
372
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L472">src/lib/device.ts:472</a></li></ul></aside></li></ul></section>
|
|
373
373
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="pause" class="tsd-anchor"></a>
|
|
374
374
|
<h3 class="tsd-anchor-link"><span>pause</span><a href="#pause" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
375
375
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -379,7 +379,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
379
379
|
</div>
|
|
380
380
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
381
381
|
<ul>
|
|
382
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
382
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L480">src/lib/device.ts:480</a></li></ul></aside></li></ul></section>
|
|
383
383
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="play" class="tsd-anchor"></a>
|
|
384
384
|
<h3 class="tsd-anchor-link"><span>play</span><a href="#play" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
385
385
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -389,7 +389,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
389
389
|
</div>
|
|
390
390
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
391
391
|
<ul>
|
|
392
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
392
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L488">src/lib/device.ts:488</a></li></ul></aside></li></ul></section>
|
|
393
393
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="playPause" class="tsd-anchor"></a>
|
|
394
394
|
<h3 class="tsd-anchor-link"><span>play<wbr/>Pause</span><a href="#playPause" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
395
395
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -399,7 +399,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
399
399
|
</div>
|
|
400
400
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
401
401
|
<ul>
|
|
402
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
402
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L496">src/lib/device.ts:496</a></li></ul></aside></li></ul></section>
|
|
403
403
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="pressKey" class="tsd-anchor"></a>
|
|
404
404
|
<h3 class="tsd-anchor-link"><span>press<wbr/>Key</span><a href="#pressKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
405
405
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -420,7 +420,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
420
420
|
<h5>key: <a href="../enums/NodePyATVKeys.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVKeys</a></h5></li></ul></div>
|
|
421
421
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
422
422
|
<ul>
|
|
423
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
423
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L412">src/lib/device.ts:412</a></li></ul></aside></li></ul></section>
|
|
424
424
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="previous" class="tsd-anchor"></a>
|
|
425
425
|
<h3 class="tsd-anchor-link"><span>previous</span><a href="#previous" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
426
426
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -430,7 +430,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
430
430
|
</div>
|
|
431
431
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
432
432
|
<ul>
|
|
433
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
433
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L504">src/lib/device.ts:504</a></li></ul></aside></li></ul></section>
|
|
434
434
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="right" class="tsd-anchor"></a>
|
|
435
435
|
<h3 class="tsd-anchor-link"><span>right</span><a href="#right" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
436
436
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -440,7 +440,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
440
440
|
</div>
|
|
441
441
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
442
442
|
<ul>
|
|
443
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
443
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L512">src/lib/device.ts:512</a></li></ul></aside></li></ul></section>
|
|
444
444
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="select" class="tsd-anchor"></a>
|
|
445
445
|
<h3 class="tsd-anchor-link"><span>select</span><a href="#select" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
446
446
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -450,7 +450,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
450
450
|
</div>
|
|
451
451
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
452
452
|
<ul>
|
|
453
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
453
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L520">src/lib/device.ts:520</a></li></ul></aside></li></ul></section>
|
|
454
454
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="skipBackward" class="tsd-anchor"></a>
|
|
455
455
|
<h3 class="tsd-anchor-link"><span>skip<wbr/>Backward</span><a href="#skipBackward" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
456
456
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -460,7 +460,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
460
460
|
</div>
|
|
461
461
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
462
462
|
<ul>
|
|
463
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
463
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L528">src/lib/device.ts:528</a></li></ul></aside></li></ul></section>
|
|
464
464
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="skipForward" class="tsd-anchor"></a>
|
|
465
465
|
<h3 class="tsd-anchor-link"><span>skip<wbr/>Forward</span><a href="#skipForward" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
466
466
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -470,7 +470,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
470
470
|
</div>
|
|
471
471
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
472
472
|
<ul>
|
|
473
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
473
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L536">src/lib/device.ts:536</a></li></ul></aside></li></ul></section>
|
|
474
474
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="stop" class="tsd-anchor"></a>
|
|
475
475
|
<h3 class="tsd-anchor-link"><span>stop</span><a href="#stop" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
476
476
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -480,7 +480,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
480
480
|
</div>
|
|
481
481
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
482
482
|
<ul>
|
|
483
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
483
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L544">src/lib/device.ts:544</a></li></ul></aside></li></ul></section>
|
|
484
484
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="suspend" class="tsd-anchor"></a>
|
|
485
485
|
<h3 class="tsd-anchor-link"><span>suspend</span><a href="#suspend" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
486
486
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -491,7 +491,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
491
491
|
<h3>Deprecated</h3></div>
|
|
492
492
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
493
493
|
<ul>
|
|
494
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
494
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L553">src/lib/device.ts:553</a></li></ul></aside></li></ul></section>
|
|
495
495
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="topMenu" class="tsd-anchor"></a>
|
|
496
496
|
<h3 class="tsd-anchor-link"><span>top<wbr/>Menu</span><a href="#topMenu" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
497
497
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -501,7 +501,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
501
501
|
</div>
|
|
502
502
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
503
503
|
<ul>
|
|
504
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
504
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L561">src/lib/device.ts:561</a></li></ul></aside></li></ul></section>
|
|
505
505
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="turnOff" class="tsd-anchor"></a>
|
|
506
506
|
<h3 class="tsd-anchor-link"><span>turn<wbr/>Off</span><a href="#turnOff" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
507
507
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -511,7 +511,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
511
511
|
</div>
|
|
512
512
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
513
513
|
<ul>
|
|
514
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
514
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L602">src/lib/device.ts:602</a></li></ul></aside></li></ul></section>
|
|
515
515
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="turnOn" class="tsd-anchor"></a>
|
|
516
516
|
<h3 class="tsd-anchor-link"><span>turn<wbr/>On</span><a href="#turnOn" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
517
517
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -521,7 +521,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
521
521
|
</div>
|
|
522
522
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
523
523
|
<ul>
|
|
524
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
524
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L610">src/lib/device.ts:610</a></li></ul></aside></li></ul></section>
|
|
525
525
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="up" class="tsd-anchor"></a>
|
|
526
526
|
<h3 class="tsd-anchor-link"><span>up</span><a href="#up" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
527
527
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -531,7 +531,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
531
531
|
</div>
|
|
532
532
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
533
533
|
<ul>
|
|
534
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
534
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L569">src/lib/device.ts:569</a></li></ul></aside></li></ul></section>
|
|
535
535
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="volumeDown" class="tsd-anchor"></a>
|
|
536
536
|
<h3 class="tsd-anchor-link"><span>volume<wbr/>Down</span><a href="#volumeDown" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
537
537
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -541,7 +541,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
541
541
|
</div>
|
|
542
542
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
543
543
|
<ul>
|
|
544
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
544
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L577">src/lib/device.ts:577</a></li></ul></aside></li></ul></section>
|
|
545
545
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="volumeUp" class="tsd-anchor"></a>
|
|
546
546
|
<h3 class="tsd-anchor-link"><span>volume<wbr/>Up</span><a href="#volumeUp" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
547
547
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -551,7 +551,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
551
551
|
</div>
|
|
552
552
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
553
553
|
<ul>
|
|
554
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
554
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L585">src/lib/device.ts:585</a></li></ul></aside></li></ul></section>
|
|
555
555
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="wakeup" class="tsd-anchor"></a>
|
|
556
556
|
<h3 class="tsd-anchor-link"><span>wakeup</span><a href="#wakeup" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
557
557
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -562,7 +562,7 @@ Can be used to initiate a new device instance.</p>
|
|
|
562
562
|
<h3>Deprecated</h3></div>
|
|
563
563
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
564
564
|
<ul>
|
|
565
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
565
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L594">src/lib/device.ts:594</a></li></ul></aside></li></ul></section></section>
|
|
566
566
|
<section class="tsd-panel-group tsd-member-group">
|
|
567
567
|
<h2>Event Methods</h2>
|
|
568
568
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="addListener" class="tsd-anchor"></a>
|
|
@@ -594,7 +594,7 @@ Apple TV as long as there are listeners for any event registered.</p>
|
|
|
594
594
|
<h4 class="tsd-returns-title">Returns <a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a></h4><aside class="tsd-sources">
|
|
595
595
|
<p>Implementation of EventEmitter.addListener</p>
|
|
596
596
|
<ul>
|
|
597
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
597
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L621">src/lib/device.ts:621</a></li></ul></aside></li></ul></section>
|
|
598
598
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="emit" class="tsd-anchor"></a>
|
|
599
599
|
<h3 class="tsd-anchor-link"><span>emit</span><a href="#emit" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
600
600
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -612,7 +612,7 @@ Apple TV as long as there are listeners for any event registered.</p>
|
|
|
612
612
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
613
613
|
<p>Implementation of EventEmitter.emit</p>
|
|
614
614
|
<ul>
|
|
615
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
615
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L632">src/lib/device.ts:632</a></li></ul></aside></li></ul></section>
|
|
616
616
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="eventNames" class="tsd-anchor"></a>
|
|
617
617
|
<h3 class="tsd-anchor-link"><span>event<wbr/>Names</span><a href="#eventNames" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
618
618
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -623,7 +623,7 @@ Apple TV as long as there are listeners for any event registered.</p>
|
|
|
623
623
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
|
624
624
|
<p>Implementation of EventEmitter.eventNames</p>
|
|
625
625
|
<ul>
|
|
626
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
626
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L640">src/lib/device.ts:640</a></li></ul></aside></li></ul></section>
|
|
627
627
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getMaxListeners" class="tsd-anchor"></a>
|
|
628
628
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Max<wbr/>Listeners</span><a href="#getMaxListeners" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
629
629
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -634,7 +634,7 @@ Apple TV as long as there are listeners for any event registered.</p>
|
|
|
634
634
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources">
|
|
635
635
|
<p>Implementation of EventEmitter.getMaxListeners</p>
|
|
636
636
|
<ul>
|
|
637
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
637
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L648">src/lib/device.ts:648</a></li></ul></aside></li></ul></section>
|
|
638
638
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="listenerCount" class="tsd-anchor"></a>
|
|
639
639
|
<h3 class="tsd-anchor-link"><span>listener<wbr/>Count</span><a href="#listenerCount" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
640
640
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -650,7 +650,7 @@ Apple TV as long as there are listeners for any event registered.</p>
|
|
|
650
650
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources">
|
|
651
651
|
<p>Implementation of EventEmitter.listenerCount</p>
|
|
652
652
|
<ul>
|
|
653
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
653
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L657">src/lib/device.ts:657</a></li></ul></aside></li></ul></section>
|
|
654
654
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="listeners" class="tsd-anchor"></a>
|
|
655
655
|
<h3 class="tsd-anchor-link"><span>listeners</span><a href="#listeners" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
656
656
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -667,7 +667,7 @@ node-pyatv wrappers (e.g. once)</p>
|
|
|
667
667
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
|
668
668
|
<p>Implementation of EventEmitter.listeners</p>
|
|
669
669
|
<ul>
|
|
670
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
670
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L669">src/lib/device.ts:669</a></li></ul></aside></li></ul></section>
|
|
671
671
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="off" class="tsd-anchor"></a>
|
|
672
672
|
<h3 class="tsd-anchor-link"><span>off</span><a href="#off" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
673
673
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -697,7 +697,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
697
697
|
<h4 class="tsd-returns-title">Returns <a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a></h4><aside class="tsd-sources">
|
|
698
698
|
<p>Implementation of EventEmitter.off</p>
|
|
699
699
|
<ul>
|
|
700
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
700
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L680">src/lib/device.ts:680</a></li></ul></aside></li></ul></section>
|
|
701
701
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="on" class="tsd-anchor"></a>
|
|
702
702
|
<h3 class="tsd-anchor-link"><span>on</span><a href="#on" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
703
703
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -727,7 +727,7 @@ Apple TV as long as there are listeners for any event registered.</p>
|
|
|
727
727
|
<h4 class="tsd-returns-title">Returns <a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a></h4><aside class="tsd-sources">
|
|
728
728
|
<p>Implementation of EventEmitter.on</p>
|
|
729
729
|
<ul>
|
|
730
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
730
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L692">src/lib/device.ts:692</a></li></ul></aside></li></ul></section>
|
|
731
731
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="once" class="tsd-anchor"></a>
|
|
732
732
|
<h3 class="tsd-anchor-link"><span>once</span><a href="#once" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
733
733
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -758,7 +758,7 @@ Removes the listener automatically after the first occurrence.</p>
|
|
|
758
758
|
<h4 class="tsd-returns-title">Returns <a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a></h4><aside class="tsd-sources">
|
|
759
759
|
<p>Implementation of EventEmitter.once</p>
|
|
760
760
|
<ul>
|
|
761
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
761
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L705">src/lib/device.ts:705</a></li></ul></aside></li></ul></section>
|
|
762
762
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="prependListener" class="tsd-anchor"></a>
|
|
763
763
|
<h3 class="tsd-anchor-link"><span>prepend<wbr/>Listener</span><a href="#prependListener" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
764
764
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -785,7 +785,7 @@ Removes the listener automatically after the first occurrence.</p>
|
|
|
785
785
|
<h4 class="tsd-returns-title">Returns <a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a></h4><aside class="tsd-sources">
|
|
786
786
|
<p>Implementation of EventEmitter.prependListener</p>
|
|
787
787
|
<ul>
|
|
788
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
788
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L715">src/lib/device.ts:715</a></li></ul></aside></li></ul></section>
|
|
789
789
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="prependOnceListener" class="tsd-anchor"></a>
|
|
790
790
|
<h3 class="tsd-anchor-link"><span>prepend<wbr/>Once<wbr/>Listener</span><a href="#prependOnceListener" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
791
791
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -812,7 +812,7 @@ Removes the listener automatically after the first occurrence.</p>
|
|
|
812
812
|
<h4 class="tsd-returns-title">Returns <a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a></h4><aside class="tsd-sources">
|
|
813
813
|
<p>Implementation of EventEmitter.prependOnceListener</p>
|
|
814
814
|
<ul>
|
|
815
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
815
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L725">src/lib/device.ts:725</a></li></ul></aside></li></ul></section>
|
|
816
816
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="rawListeners" class="tsd-anchor"></a>
|
|
817
817
|
<h3 class="tsd-anchor-link"><span>raw<wbr/>Listeners</span><a href="#rawListeners" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
818
818
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -826,7 +826,7 @@ Removes the listener automatically after the first occurrence.</p>
|
|
|
826
826
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
|
827
827
|
<p>Implementation of EventEmitter.rawListeners</p>
|
|
828
828
|
<ul>
|
|
829
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
829
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L735">src/lib/device.ts:735</a></li></ul></aside></li></ul></section>
|
|
830
830
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="removeAllListeners" class="tsd-anchor"></a>
|
|
831
831
|
<h3 class="tsd-anchor-link"><span>remove<wbr/>All<wbr/>Listeners</span><a href="#removeAllListeners" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
832
832
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -844,7 +844,7 @@ the Apple TV if this was the last event listener.</p>
|
|
|
844
844
|
<h4 class="tsd-returns-title">Returns <a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a></h4><aside class="tsd-sources">
|
|
845
845
|
<p>Implementation of EventEmitter.removeAllListeners</p>
|
|
846
846
|
<ul>
|
|
847
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
847
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L747">src/lib/device.ts:747</a></li></ul></aside></li></ul></section>
|
|
848
848
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="removeListener" class="tsd-anchor"></a>
|
|
849
849
|
<h3 class="tsd-anchor-link"><span>remove<wbr/>Listener</span><a href="#removeListener" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
850
850
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -874,7 +874,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
874
874
|
<h4 class="tsd-returns-title">Returns <a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a></h4><aside class="tsd-sources">
|
|
875
875
|
<p>Implementation of EventEmitter.removeListener</p>
|
|
876
876
|
<ul>
|
|
877
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
877
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L759">src/lib/device.ts:759</a></li></ul></aside></li></ul></section>
|
|
878
878
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setMaxListeners" class="tsd-anchor"></a>
|
|
879
879
|
<h3 class="tsd-anchor-link"><span>set<wbr/>Max<wbr/>Listeners</span><a href="#setMaxListeners" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
880
880
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -888,7 +888,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
888
888
|
<h4 class="tsd-returns-title">Returns <a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a></h4><aside class="tsd-sources">
|
|
889
889
|
<p>Implementation of EventEmitter.setMaxListeners</p>
|
|
890
890
|
<ul>
|
|
891
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
891
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L768">src/lib/device.ts:768</a></li></ul></aside></li></ul></section></section>
|
|
892
892
|
<section class="tsd-panel-group tsd-member-group">
|
|
893
893
|
<h2>State Methods</h2>
|
|
894
894
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="clearState" class="tsd-anchor"></a>
|
|
@@ -900,7 +900,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
900
900
|
</div>
|
|
901
901
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
902
902
|
<ul>
|
|
903
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
903
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L233">src/lib/device.ts:233</a></li></ul></aside></li></ul></section>
|
|
904
904
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getAlbum" class="tsd-anchor"></a>
|
|
905
905
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Album</span><a href="#getAlbum" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
906
906
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -915,7 +915,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
915
915
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
916
916
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
917
917
|
<ul>
|
|
918
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
918
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L306">src/lib/device.ts:306</a></li></ul></aside></li></ul></section>
|
|
919
919
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getApp" class="tsd-anchor"></a>
|
|
920
920
|
<h3 class="tsd-anchor-link"><span>get<wbr/>App</span><a href="#getApp" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
921
921
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -930,7 +930,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
930
930
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
931
931
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
932
932
|
<ul>
|
|
933
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
933
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L366">src/lib/device.ts:366</a></li></ul></aside></li></ul></section>
|
|
934
934
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getAppId" class="tsd-anchor"></a>
|
|
935
935
|
<h3 class="tsd-anchor-link"><span>get<wbr/>App<wbr/>Id</span><a href="#getAppId" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
936
936
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -945,7 +945,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
945
945
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
946
946
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
947
947
|
<ul>
|
|
948
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
948
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L376">src/lib/device.ts:376</a></li></ul></aside></li></ul></section>
|
|
949
949
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getArtist" class="tsd-anchor"></a>
|
|
950
950
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Artist</span><a href="#getArtist" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
951
951
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -960,7 +960,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
960
960
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
961
961
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
962
962
|
<ul>
|
|
963
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
963
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L296">src/lib/device.ts:296</a></li></ul></aside></li></ul></section>
|
|
964
964
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getDateTime" class="tsd-anchor"></a>
|
|
965
965
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Date<wbr/>Time</span><a href="#getDateTime" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
966
966
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -975,7 +975,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
975
975
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
976
976
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
977
977
|
<ul>
|
|
978
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
978
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L246">src/lib/device.ts:246</a></li></ul></aside></li></ul></section>
|
|
979
979
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getDeviceState" class="tsd-anchor"></a>
|
|
980
980
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Device<wbr/>State</span><a href="#getDeviceState" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
981
981
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -990,7 +990,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
990
990
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
991
991
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../enums/NodePyATVDeviceState.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVDeviceState</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
992
992
|
<ul>
|
|
993
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
993
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L276">src/lib/device.ts:276</a></li></ul></aside></li></ul></section>
|
|
994
994
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getGenre" class="tsd-anchor"></a>
|
|
995
995
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Genre</span><a href="#getGenre" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
996
996
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -1005,7 +1005,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
1005
1005
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
1006
1006
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1007
1007
|
<ul>
|
|
1008
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
1008
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L316">src/lib/device.ts:316</a></li></ul></aside></li></ul></section>
|
|
1009
1009
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getHash" class="tsd-anchor"></a>
|
|
1010
1010
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Hash</span><a href="#getHash" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
1011
1011
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -1020,7 +1020,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
1020
1020
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
1021
1021
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1022
1022
|
<ul>
|
|
1023
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
1023
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L256">src/lib/device.ts:256</a></li></ul></aside></li></ul></section>
|
|
1024
1024
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getMediaType" class="tsd-anchor"></a>
|
|
1025
1025
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Media<wbr/>Type</span><a href="#getMediaType" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
1026
1026
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -1035,7 +1035,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
1035
1035
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
1036
1036
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../enums/NodePyATVMediaType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVMediaType</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1037
1037
|
<ul>
|
|
1038
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
1038
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L266">src/lib/device.ts:266</a></li></ul></aside></li></ul></section>
|
|
1039
1039
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getPosition" class="tsd-anchor"></a>
|
|
1040
1040
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Position</span><a href="#getPosition" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
1041
1041
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -1050,7 +1050,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
1050
1050
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
1051
1051
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1052
1052
|
<ul>
|
|
1053
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
1053
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L336">src/lib/device.ts:336</a></li></ul></aside></li></ul></section>
|
|
1054
1054
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getRepeat" class="tsd-anchor"></a>
|
|
1055
1055
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Repeat</span><a href="#getRepeat" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
1056
1056
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -1065,7 +1065,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
1065
1065
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
1066
1066
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../enums/NodePyATVRepeatState.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVRepeatState</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1067
1067
|
<ul>
|
|
1068
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
1068
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L356">src/lib/device.ts:356</a></li></ul></aside></li></ul></section>
|
|
1069
1069
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getShuffle" class="tsd-anchor"></a>
|
|
1070
1070
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Shuffle</span><a href="#getShuffle" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
1071
1071
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -1080,7 +1080,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
1080
1080
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
1081
1081
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../enums/NodePyATVShuffleState.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVShuffleState</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1082
1082
|
<ul>
|
|
1083
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
1083
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L346">src/lib/device.ts:346</a></li></ul></aside></li></ul></section>
|
|
1084
1084
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getState" class="tsd-anchor"></a>
|
|
1085
1085
|
<h3 class="tsd-anchor-link"><span>get<wbr/>State</span><a href="#getState" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
1086
1086
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -1089,7 +1089,7 @@ Apple TV if this was the last event listener.</p>
|
|
|
1089
1089
|
<div class="tsd-comment tsd-typography"><p>Returns an <a href="../interfaces/NodePyATVState.html">NodePyATVState</a> object representing the current state
|
|
1090
1090
|
of the device. Has an internal cache, which has a default TTL of 5s.
|
|
1091
1091
|
You can change this default value by passing the <code>maxAge</code> option.</p>
|
|
1092
|
-
<pre><code class="language-typescript"><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">getState</span><span class="hl-1">({</span><span class="hl-0">maxAge:</span><span class="hl-1"> </span><span class="hl-
|
|
1092
|
+
<pre><code class="language-typescript"><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">getState</span><span class="hl-1">({</span><span class="hl-0">maxAge:</span><span class="hl-1"> </span><span class="hl-8">10000</span><span class="hl-1">}); </span><span class="hl-7">// cache TTL: 10s</span>
|
|
1093
1093
|
</code></pre>
|
|
1094
1094
|
</div>
|
|
1095
1095
|
<div class="tsd-parameters">
|
|
@@ -1099,7 +1099,7 @@ You can change this default value by passing the <code>maxAge</code> option.</p>
|
|
|
1099
1099
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
1100
1100
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/NodePyATVState.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVState</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1101
1101
|
<ul>
|
|
1102
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
1102
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L199">src/lib/device.ts:199</a></li></ul></aside></li></ul></section>
|
|
1103
1103
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getTitle" class="tsd-anchor"></a>
|
|
1104
1104
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Title</span><a href="#getTitle" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
1105
1105
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -1114,7 +1114,7 @@ You can change this default value by passing the <code>maxAge</code> option.</p>
|
|
|
1114
1114
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
1115
1115
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1116
1116
|
<ul>
|
|
1117
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
1117
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L286">src/lib/device.ts:286</a></li></ul></aside></li></ul></section>
|
|
1118
1118
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getTotalTime" class="tsd-anchor"></a>
|
|
1119
1119
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Total<wbr/>Time</span><a href="#getTotalTime" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
1120
1120
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -1129,7 +1129,7 @@ You can change this default value by passing the <code>maxAge</code> option.</p>
|
|
|
1129
1129
|
<h5>options: <a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
1130
1130
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1131
1131
|
<ul>
|
|
1132
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
1132
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/d5fc29c/src/lib/device.ts#L326">src/lib/device.ts:326</a></li></ul></aside></li></ul></section></section></div>
|
|
1133
1133
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
1134
1134
|
<div class="tsd-navigation settings">
|
|
1135
1135
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -1147,7 +1147,7 @@ You can change this default value by passing the <code>maxAge</code> option.</p>
|
|
|
1147
1147
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
1148
1148
|
<div class="tsd-accordion-details">
|
|
1149
1149
|
<ul>
|
|
1150
|
-
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.1.
|
|
1150
|
+
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.1.1-<wbr/>develop.2</a>
|
|
1151
1151
|
<ul></ul></li></ul></div></details></nav>
|
|
1152
1152
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
1153
1153
|
<ul>
|