@sebbo2002/node-pyatv 6.0.0-develop.2 → 6.0.0-develop.3
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/dist/bin/check.cjs +10 -0
- package/dist/bin/check.cjs.map +1 -0
- package/dist/bin/check.d.ts +2 -1
- package/dist/bin/check.js +4 -45
- package/dist/bin/check.js.map +1 -1
- package/dist/chunk-TZSWUAOB.js +7 -0
- package/dist/chunk-TZSWUAOB.js.map +1 -0
- package/dist/lib/index.cjs +7 -0
- package/dist/lib/index.cjs.map +1 -0
- package/dist/lib/{device.d.ts → index.d.cts} +340 -4
- package/dist/lib/index.d.ts +806 -6
- package/dist/lib/index.js +1 -7
- package/dist/lib/index.js.map +1 -1
- package/package.json +18 -9
- package/.editorconfig +0 -12
- package/.eslintignore +0 -4
- package/.eslintrc +0 -60
- package/.mocharc.yml +0 -7
- package/.nycrc +0 -32
- package/CHANGELOG.md +0 -295
- package/check.sh +0 -5
- package/dist/examples/push.d.ts +0 -1
- package/dist/examples/push.js +0 -51
- package/dist/examples/push.js.map +0 -1
- package/dist/lib/device-event.d.ts +0 -44
- package/dist/lib/device-event.js +0 -47
- package/dist/lib/device-event.js.map +0 -1
- package/dist/lib/device-events.d.ts +0 -30
- package/dist/lib/device-events.js +0 -237
- package/dist/lib/device-events.js.map +0 -1
- package/dist/lib/device.js +0 -793
- package/dist/lib/device.js.map +0 -1
- package/dist/lib/fake-spawn.d.ts +0 -43
- package/dist/lib/fake-spawn.js +0 -85
- package/dist/lib/fake-spawn.js.map +0 -1
- package/dist/lib/instance.d.ts +0 -97
- package/dist/lib/instance.js +0 -208
- package/dist/lib/instance.js.map +0 -1
- package/dist/lib/tools.d.ts +0 -12
- package/dist/lib/tools.js +0 -319
- package/dist/lib/tools.js.map +0 -1
- package/dist/lib/types.d.ts +0 -204
- package/dist/lib/types.js +0 -108
- package/dist/lib/types.js.map +0 -1
- package/docs/coverage/base.css +0 -224
- package/docs/coverage/block-navigation.js +0 -87
- package/docs/coverage/cobertura-coverage.xml +0 -2889
- package/docs/coverage/device-event.ts.html +0 -256
- package/docs/coverage/device-events.ts.html +0 -970
- package/docs/coverage/device.ts.html +0 -2518
- package/docs/coverage/fake-spawn.ts.html +0 -448
- package/docs/coverage/favicon.png +0 -0
- package/docs/coverage/index.html +0 -221
- package/docs/coverage/index.ts.html +0 -172
- package/docs/coverage/instance.ts.html +0 -718
- package/docs/coverage/prettify.css +0 -1
- package/docs/coverage/prettify.js +0 -2
- package/docs/coverage/sort-arrow-sprite.png +0 -0
- package/docs/coverage/sorter.js +0 -196
- package/docs/coverage/tools.ts.html +0 -1222
- package/docs/coverage/types.ts.html +0 -775
- package/docs/reference/.nojekyll +0 -1
- package/docs/reference/assets/highlight.css +0 -99
- package/docs/reference/assets/main.js +0 -58
- package/docs/reference/assets/search.js +0 -1
- package/docs/reference/assets/style.css +0 -1280
- package/docs/reference/classes/NodePyATVDevice.html +0 -1266
- package/docs/reference/classes/NodePyATVDeviceEvent.html +0 -123
- package/docs/reference/classes/NodePyATVInstance.html +0 -240
- package/docs/reference/enums/NodePyATVDeviceState.html +0 -97
- package/docs/reference/enums/NodePyATVExecutableType.html +0 -69
- package/docs/reference/enums/NodePyATVKeys.html +0 -216
- package/docs/reference/enums/NodePyATVListenerState.html +0 -83
- package/docs/reference/enums/NodePyATVMediaType.html +0 -83
- package/docs/reference/enums/NodePyATVPowerState.html +0 -69
- package/docs/reference/enums/NodePyATVProtocol.html +0 -83
- package/docs/reference/enums/NodePyATVRepeatState.html +0 -76
- package/docs/reference/enums/NodePyATVShuffleState.html +0 -76
- package/docs/reference/index.html +0 -139
- package/docs/reference/interfaces/NodePyATVDeviceOptions.html +0 -232
- package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +0 -193
- package/docs/reference/interfaces/NodePyATVFindOptions.html +0 -124
- package/docs/reference/interfaces/NodePyATVGetStateOptions.html +0 -66
- package/docs/reference/interfaces/NodePyATVInstanceOptions.html +0 -113
- package/docs/reference/interfaces/NodePyATVService.html +0 -73
- package/docs/reference/interfaces/NodePyATVState.html +0 -164
- package/docs/reference/interfaces/NodePyATVVersionResponse.html +0 -73
- package/docs/reference/modules.html +0 -106
- package/docs/reference/types/NodePyATVEventValueType.html +0 -66
- package/docs/tests/assets/MaterialIcons-Regular.woff +0 -0
- package/docs/tests/assets/MaterialIcons-Regular.woff2 +0 -0
- package/docs/tests/assets/app.css +0 -14
- package/docs/tests/assets/app.js +0 -2
- package/docs/tests/assets/app.js.LICENSE.txt +0 -55
- package/docs/tests/assets/roboto-light-webfont.woff +0 -0
- package/docs/tests/assets/roboto-light-webfont.woff2 +0 -0
- package/docs/tests/assets/roboto-medium-webfont.woff +0 -0
- package/docs/tests/assets/roboto-medium-webfont.woff2 +0 -0
- package/docs/tests/assets/roboto-regular-webfont.woff +0 -0
- package/docs/tests/assets/roboto-regular-webfont.woff2 +0 -0
- package/docs/tests/index.html +0 -2
- package/docs/tests/mochawesome.json +0 -4823
- package/release.config.cjs +0 -51
- package/src/bin/check.ts +0 -41
- package/src/examples/push.ts +0 -46
- package/src/lib/device-event.ts +0 -57
- package/src/lib/device-events.ts +0 -295
- package/src/lib/device.ts +0 -811
- package/src/lib/fake-spawn.ts +0 -121
- package/src/lib/index.ts +0 -29
- package/src/lib/instance.ts +0 -211
- package/src/lib/tools.ts +0 -379
- package/src/lib/types.ts +0 -230
- package/test/device-event.ts +0 -88
- package/test/device-events.ts +0 -502
- package/test/device.ts +0 -826
- package/test/instance.ts +0 -428
- package/test/tools.ts +0 -301
- package/tsconfig.json +0 -19
- package/typedoc.json +0 -15
|
@@ -1,1266 +0,0 @@
|
|
|
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 - v6.0.0-develop.2</title><meta name="description" content="Documentation for node-pyatv - v6.0.0-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
|
-
<div class="tsd-toolbar-contents container">
|
|
3
|
-
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
|
-
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon 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
|
-
<div class="field">
|
|
6
|
-
<div id="tsd-toolbar-links"></div></div>
|
|
7
|
-
<ul class="results">
|
|
8
|
-
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v6.0.0-develop.2</a></div>
|
|
10
|
-
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon 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>
|
|
11
|
-
<div class="container container-main">
|
|
12
|
-
<div class="col-8 col-content">
|
|
13
|
-
<div class="tsd-page-title">
|
|
14
|
-
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">node-pyatv - v6.0.0-develop.2</a></li>
|
|
16
|
-
<li><a href="NodePyATVDevice.html">NodePyATVDevice</a></li></ul>
|
|
17
|
-
<h1>Class NodePyATVDevice</h1></div>
|
|
18
|
-
<section class="tsd-panel tsd-comment">
|
|
19
|
-
<div class="tsd-comment tsd-typography"><p>Represents an Apple TV. Use <a href="NodePyATVDevice.html#getState">getState</a> to query the current state (e.g. media
|
|
20
|
-
type and title). You can also use the attribute methods (e.g. <a href="NodePyATVDevice.html#getTitle">getTitle</a> to get
|
|
21
|
-
the state. If you want realtime updates, subscribe to it's events with an
|
|
22
|
-
<code>EventEmitter</code> like API, so for example by using <a href="NodePyATVDevice.html#on">on</a>, <a href="NodePyATVDevice.html#once">once</a> or <a href="NodePyATVDevice.html#addListener">addListener</a>.
|
|
23
|
-
It's also possible to send key commands by using <a href="NodePyATVDevice.html#pressKey">pressKey</a> or methods like <a href="NodePyATVDevice.html#pause">pause</a>.</p>
|
|
24
|
-
</div></section>
|
|
25
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
26
|
-
<h4>Hierarchy</h4>
|
|
27
|
-
<ul class="tsd-hierarchy">
|
|
28
|
-
<li><span class="target">NodePyATVDevice</span></li></ul></section>
|
|
29
|
-
<section class="tsd-panel">
|
|
30
|
-
<h4>Implements</h4>
|
|
31
|
-
<ul class="tsd-hierarchy">
|
|
32
|
-
<li><span class="tsd-signature-type">EventEmitter</span></li></ul></section><aside class="tsd-sources">
|
|
33
|
-
<ul>
|
|
34
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L30">src/lib/device.ts:30</a></li></ul></aside>
|
|
35
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
36
|
-
<section class="tsd-panel tsd-index-panel">
|
|
37
|
-
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
38
|
-
<h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex=0><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></svg> Index</h5></summary>
|
|
39
|
-
<div class="tsd-accordion-details">
|
|
40
|
-
<section class="tsd-index-section">
|
|
41
|
-
<h3 class="tsd-index-heading">Constructors</h3>
|
|
42
|
-
<div class="tsd-index-list"><a href="NodePyATVDevice.html#constructor" class="tsd-index-link tsd-kind-constructor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-512-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-512-text"></path></svg><span>constructor</span></a>
|
|
43
|
-
</div></section>
|
|
44
|
-
<section class="tsd-index-section">
|
|
45
|
-
<h3 class="tsd-index-heading">Accessors</h3>
|
|
46
|
-
<div class="tsd-index-list"><a href="NodePyATVDevice.html#debug" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-262144-path"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)" id="icon-262144-text"></path></svg><span>debug</span></a>
|
|
47
|
-
<a href="NodePyATVDevice.html#host" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>host</span></a>
|
|
48
|
-
<a href="NodePyATVDevice.html#id" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>id</span></a>
|
|
49
|
-
<a href="NodePyATVDevice.html#model" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>model</span></a>
|
|
50
|
-
<a href="NodePyATVDevice.html#modelName" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>model<wbr/>Name</span></a>
|
|
51
|
-
<a href="NodePyATVDevice.html#name" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>name</span></a>
|
|
52
|
-
<a href="NodePyATVDevice.html#os" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>os</span></a>
|
|
53
|
-
<a href="NodePyATVDevice.html#protocol" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>protocol</span></a>
|
|
54
|
-
<a href="NodePyATVDevice.html#services" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>services</span></a>
|
|
55
|
-
<a href="NodePyATVDevice.html#version" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>version</span></a>
|
|
56
|
-
</div></section>
|
|
57
|
-
<section class="tsd-index-section">
|
|
58
|
-
<h3 class="tsd-index-heading">Methods - Basic</h3>
|
|
59
|
-
<div class="tsd-index-list"><a href="NodePyATVDevice.html#toJSON" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-2048-path"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)" id="icon-2048-text"></path></svg><span>toJSON</span></a>
|
|
60
|
-
<a href="NodePyATVDevice.html#toString" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>to<wbr/>String</span></a>
|
|
61
|
-
</div></section>
|
|
62
|
-
<section class="tsd-index-section">
|
|
63
|
-
<h3 class="tsd-index-heading">Methods - Control</h3>
|
|
64
|
-
<div class="tsd-index-list"><a href="NodePyATVDevice.html#down" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>down</span></a>
|
|
65
|
-
<a href="NodePyATVDevice.html#home" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>home</span></a>
|
|
66
|
-
<a href="NodePyATVDevice.html#homeHold" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>home<wbr/>Hold</span></a>
|
|
67
|
-
<a href="NodePyATVDevice.html#left" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>left</span></a>
|
|
68
|
-
<a href="NodePyATVDevice.html#menu" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>menu</span></a>
|
|
69
|
-
<a href="NodePyATVDevice.html#next" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>next</span></a>
|
|
70
|
-
<a href="NodePyATVDevice.html#pause" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>pause</span></a>
|
|
71
|
-
<a href="NodePyATVDevice.html#play" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>play</span></a>
|
|
72
|
-
<a href="NodePyATVDevice.html#playPause" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>play<wbr/>Pause</span></a>
|
|
73
|
-
<a href="NodePyATVDevice.html#pressKey" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>press<wbr/>Key</span></a>
|
|
74
|
-
<a href="NodePyATVDevice.html#previous" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>previous</span></a>
|
|
75
|
-
<a href="NodePyATVDevice.html#right" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>right</span></a>
|
|
76
|
-
<a href="NodePyATVDevice.html#select" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>select</span></a>
|
|
77
|
-
<a href="NodePyATVDevice.html#skipBackward" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>skip<wbr/>Backward</span></a>
|
|
78
|
-
<a href="NodePyATVDevice.html#skipForward" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>skip<wbr/>Forward</span></a>
|
|
79
|
-
<a href="NodePyATVDevice.html#stop" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>stop</span></a>
|
|
80
|
-
<a href="NodePyATVDevice.html#suspend" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>suspend</span></a>
|
|
81
|
-
<a href="NodePyATVDevice.html#topMenu" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>top<wbr/>Menu</span></a>
|
|
82
|
-
<a href="NodePyATVDevice.html#turnOff" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>turn<wbr/>Off</span></a>
|
|
83
|
-
<a href="NodePyATVDevice.html#turnOn" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>turn<wbr/>On</span></a>
|
|
84
|
-
<a href="NodePyATVDevice.html#up" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>up</span></a>
|
|
85
|
-
<a href="NodePyATVDevice.html#volumeDown" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>volume<wbr/>Down</span></a>
|
|
86
|
-
<a href="NodePyATVDevice.html#volumeUp" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>volume<wbr/>Up</span></a>
|
|
87
|
-
<a href="NodePyATVDevice.html#wakeup" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>wakeup</span></a>
|
|
88
|
-
</div></section>
|
|
89
|
-
<section class="tsd-index-section">
|
|
90
|
-
<h3 class="tsd-index-heading">Methods - Event</h3>
|
|
91
|
-
<div class="tsd-index-list"><a href="NodePyATVDevice.html#addListener" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>add<wbr/>Listener</span></a>
|
|
92
|
-
<a href="NodePyATVDevice.html#emit" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>emit</span></a>
|
|
93
|
-
<a href="NodePyATVDevice.html#eventNames" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>event<wbr/>Names</span></a>
|
|
94
|
-
<a href="NodePyATVDevice.html#getMaxListeners" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Max<wbr/>Listeners</span></a>
|
|
95
|
-
<a href="NodePyATVDevice.html#listenerCount" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>listener<wbr/>Count</span></a>
|
|
96
|
-
<a href="NodePyATVDevice.html#listeners" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>listeners</span></a>
|
|
97
|
-
<a href="NodePyATVDevice.html#off" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>off</span></a>
|
|
98
|
-
<a href="NodePyATVDevice.html#on" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>on</span></a>
|
|
99
|
-
<a href="NodePyATVDevice.html#once" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>once</span></a>
|
|
100
|
-
<a href="NodePyATVDevice.html#prependListener" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>prepend<wbr/>Listener</span></a>
|
|
101
|
-
<a href="NodePyATVDevice.html#prependOnceListener" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>prepend<wbr/>Once<wbr/>Listener</span></a>
|
|
102
|
-
<a href="NodePyATVDevice.html#rawListeners" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>raw<wbr/>Listeners</span></a>
|
|
103
|
-
<a href="NodePyATVDevice.html#removeAllListeners" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>remove<wbr/>All<wbr/>Listeners</span></a>
|
|
104
|
-
<a href="NodePyATVDevice.html#removeListener" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>remove<wbr/>Listener</span></a>
|
|
105
|
-
<a href="NodePyATVDevice.html#setMaxListeners" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>set<wbr/>Max<wbr/>Listeners</span></a>
|
|
106
|
-
</div></section>
|
|
107
|
-
<section class="tsd-index-section">
|
|
108
|
-
<h3 class="tsd-index-heading">Methods - Other</h3>
|
|
109
|
-
<div class="tsd-index-list"><a href="NodePyATVDevice.html#launchApp" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>launch<wbr/>App</span></a>
|
|
110
|
-
<a href="NodePyATVDevice.html#listApps" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>list<wbr/>Apps</span></a>
|
|
111
|
-
</div></section>
|
|
112
|
-
<section class="tsd-index-section">
|
|
113
|
-
<h3 class="tsd-index-heading">Methods - State</h3>
|
|
114
|
-
<div class="tsd-index-list"><a href="NodePyATVDevice.html#clearState" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>clear<wbr/>State</span></a>
|
|
115
|
-
<a href="NodePyATVDevice.html#getAlbum" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Album</span></a>
|
|
116
|
-
<a href="NodePyATVDevice.html#getApp" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>App</span></a>
|
|
117
|
-
<a href="NodePyATVDevice.html#getAppId" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>App<wbr/>Id</span></a>
|
|
118
|
-
<a href="NodePyATVDevice.html#getArtist" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Artist</span></a>
|
|
119
|
-
<a href="NodePyATVDevice.html#getDateTime" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Date<wbr/>Time</span></a>
|
|
120
|
-
<a href="NodePyATVDevice.html#getDeviceState" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Device<wbr/>State</span></a>
|
|
121
|
-
<a href="NodePyATVDevice.html#getGenre" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Genre</span></a>
|
|
122
|
-
<a href="NodePyATVDevice.html#getHash" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Hash</span></a>
|
|
123
|
-
<a href="NodePyATVDevice.html#getMediaType" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Media<wbr/>Type</span></a>
|
|
124
|
-
<a href="NodePyATVDevice.html#getPosition" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Position</span></a>
|
|
125
|
-
<a href="NodePyATVDevice.html#getRepeat" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Repeat</span></a>
|
|
126
|
-
<a href="NodePyATVDevice.html#getShuffle" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Shuffle</span></a>
|
|
127
|
-
<a href="NodePyATVDevice.html#getState" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>State</span></a>
|
|
128
|
-
<a href="NodePyATVDevice.html#getTitle" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Title</span></a>
|
|
129
|
-
<a href="NodePyATVDevice.html#getTotalTime" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Total<wbr/>Time</span></a>
|
|
130
|
-
</div></section></div></details></section></section>
|
|
131
|
-
<section class="tsd-panel-group tsd-member-group">
|
|
132
|
-
<h2>Constructors</h2>
|
|
133
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a>
|
|
134
|
-
<h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" 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"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
|
135
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
|
136
|
-
<li class="tsd-signature tsd-anchor-link" id="constructor.new_NodePyATVDevice">new <wbr/>Node<wbr/>PyATVDevice<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">: </span><a href="../interfaces/NodePyATVDeviceOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVDeviceOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a><a href="#constructor.new_NodePyATVDevice" 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></li>
|
|
137
|
-
<li class="tsd-description">
|
|
138
|
-
<div class="tsd-parameters">
|
|
139
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
140
|
-
<ul class="tsd-parameter-list">
|
|
141
|
-
<li>
|
|
142
|
-
<h5>options: <a href="../interfaces/NodePyATVDeviceOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVDeviceOptions</a></h5></li></ul></div>
|
|
143
|
-
<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">
|
|
144
|
-
<ul>
|
|
145
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L35">src/lib/device.ts:35</a></li></ul></aside></li></ul></section></section>
|
|
146
|
-
<section class="tsd-panel-group tsd-member-group">
|
|
147
|
-
<h2>Accessors</h2>
|
|
148
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="debug" class="tsd-anchor"></a>
|
|
149
|
-
<h3 class="tsd-anchor-link"><span>debug</span><a href="#debug" 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>
|
|
150
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
151
|
-
<li class="tsd-signature" id="debug.debug-1"><span class="tsd-signature-symbol">get</span> debug<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><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></li>
|
|
152
|
-
<li class="tsd-description">
|
|
153
|
-
<div class="tsd-comment tsd-typography"><p>Returns true, if debugging is enabled. Returns the custom
|
|
154
|
-
logging method, if one was specified. Otherwise, if debug
|
|
155
|
-
log is disabled, returns undefined.</p>
|
|
156
|
-
</div>
|
|
157
|
-
<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">
|
|
158
|
-
<ul>
|
|
159
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L145">src/lib/device.ts:145</a></li></ul></aside></li>
|
|
160
|
-
<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>
|
|
161
|
-
<li class="tsd-description">
|
|
162
|
-
<div class="tsd-comment tsd-typography"><p>Enable or disable debugging or set a custom
|
|
163
|
-
debugging method to use.</p>
|
|
164
|
-
</div>
|
|
165
|
-
<div class="tsd-parameters">
|
|
166
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
167
|
-
<ul class="tsd-parameter-list">
|
|
168
|
-
<li>
|
|
169
|
-
<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>
|
|
170
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
171
|
-
<ul>
|
|
172
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L155">src/lib/device.ts:155</a></li></ul></aside></li></ul></section>
|
|
173
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="host" class="tsd-anchor"></a>
|
|
174
|
-
<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>
|
|
175
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
176
|
-
<li class="tsd-signature" id="host.host-1"><span class="tsd-signature-symbol">get</span> host<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
|
177
|
-
<li class="tsd-description">
|
|
178
|
-
<div class="tsd-comment tsd-typography"><p>Get the IP address of the Apple TV.</p>
|
|
179
|
-
</div>
|
|
180
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
181
|
-
<ul>
|
|
182
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L61">src/lib/device.ts:61</a></li></ul></aside></li></ul></section>
|
|
183
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="id" class="tsd-anchor"></a>
|
|
184
|
-
<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>
|
|
185
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
186
|
-
<li class="tsd-signature" id="id.id-1"><span class="tsd-signature-symbol">get</span> id<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li>
|
|
187
|
-
<li class="tsd-description">
|
|
188
|
-
<div class="tsd-comment tsd-typography"><p>Get the ID of the Apple TV.</p>
|
|
189
|
-
</div>
|
|
190
|
-
<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">
|
|
191
|
-
<ul>
|
|
192
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L68">src/lib/device.ts:68</a></li></ul></aside></li></ul></section>
|
|
193
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="model" class="tsd-anchor"></a>
|
|
194
|
-
<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>
|
|
195
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
196
|
-
<li class="tsd-signature" id="model.model-1"><span class="tsd-signature-symbol">get</span> model<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li>
|
|
197
|
-
<li class="tsd-description">
|
|
198
|
-
<div class="tsd-comment tsd-typography"><p>Get the model identifier of the device. Only set, if the
|
|
199
|
-
device was found using find(). Requires pyatv ≧ 0.10.3.</p>
|
|
200
|
-
|
|
201
|
-
<h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">model</span><span class="hl-1"> → </span><span class="hl-3">"Gen4K"</span>
|
|
202
|
-
</code></pre>
|
|
203
|
-
</div>
|
|
204
|
-
<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">
|
|
205
|
-
<ul>
|
|
206
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L85">src/lib/device.ts:85</a></li></ul></aside></li></ul></section>
|
|
207
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="modelName" class="tsd-anchor"></a>
|
|
208
|
-
<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>
|
|
209
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
210
|
-
<li class="tsd-signature" id="modelName.modelName-1"><span class="tsd-signature-symbol">get</span> modelName<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li>
|
|
211
|
-
<li class="tsd-description">
|
|
212
|
-
<div class="tsd-comment tsd-typography"><p>Get the model name of the device. Only set, if the device
|
|
213
|
-
was found with find(). Requires pyatv ≧ 0.10.3.</p>
|
|
214
|
-
|
|
215
|
-
<h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">modelName</span><span class="hl-1"> → </span><span class="hl-3">"Apple TV 4K"</span>
|
|
216
|
-
</code></pre>
|
|
217
|
-
</div>
|
|
218
|
-
<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">
|
|
219
|
-
<ul>
|
|
220
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L95">src/lib/device.ts:95</a></li></ul></aside></li></ul></section>
|
|
221
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="name" class="tsd-anchor"></a>
|
|
222
|
-
<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>
|
|
223
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
224
|
-
<li class="tsd-signature" id="name.name-1"><span class="tsd-signature-symbol">get</span> name<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
|
225
|
-
<li class="tsd-description">
|
|
226
|
-
<div class="tsd-comment tsd-typography"><p>Get the name of the Apple TV.</p>
|
|
227
|
-
<pre><code class="language-typescript"><span class="hl-2">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">'@sebbo2002/node-pyatv'</span><span class="hl-1">;</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">devices</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1">.</span><span class="hl-6">find</span><span class="hl-1">();</span><br/><span class="hl-0">devices</span><span class="hl-1">.</span><span class="hl-6">forEach</span><span class="hl-1">(</span><span class="hl-0">device</span><span class="hl-1"> </span><span class="hl-4">=></span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">name</span><span class="hl-1">)</span><br/><span class="hl-1">);</span>
|
|
228
|
-
</code></pre>
|
|
229
|
-
</div>
|
|
230
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
231
|
-
<ul>
|
|
232
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L54">src/lib/device.ts:54</a></li></ul></aside></li></ul></section>
|
|
233
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="os" class="tsd-anchor"></a>
|
|
234
|
-
<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>
|
|
235
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
236
|
-
<li class="tsd-signature" id="os.os-1"><span class="tsd-signature-symbol">get</span> os<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li>
|
|
237
|
-
<li class="tsd-description">
|
|
238
|
-
<div class="tsd-comment tsd-typography"><p>Get the operating system of the device. Only set, if the
|
|
239
|
-
device was found with find(). Requires pyatv ≧ 0.10.3.</p>
|
|
240
|
-
|
|
241
|
-
<h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">os</span><span class="hl-1"> → </span><span class="hl-3">"TvOS"</span>
|
|
242
|
-
</code></pre>
|
|
243
|
-
</div>
|
|
244
|
-
<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">
|
|
245
|
-
<ul>
|
|
246
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L105">src/lib/device.ts:105</a></li></ul></aside></li></ul></section>
|
|
247
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="protocol" class="tsd-anchor"></a>
|
|
248
|
-
<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>
|
|
249
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
250
|
-
<li class="tsd-signature" id="protocol.protocol-1"><span class="tsd-signature-symbol">get</span> protocol<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><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></li>
|
|
251
|
-
<li class="tsd-description">
|
|
252
|
-
<div class="tsd-comment tsd-typography"><p>Get the used protocol to connect to the Apple TV.</p>
|
|
253
|
-
</div>
|
|
254
|
-
<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">
|
|
255
|
-
<ul>
|
|
256
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L75">src/lib/device.ts:75</a></li></ul></aside></li></ul></section>
|
|
257
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="services" class="tsd-anchor"></a>
|
|
258
|
-
<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>
|
|
259
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
260
|
-
<li class="tsd-signature" id="services.services-1"><span class="tsd-signature-symbol">get</span> services<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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></li>
|
|
261
|
-
<li class="tsd-description">
|
|
262
|
-
<div class="tsd-comment tsd-typography"><p>Returns a list of services supported by the device. Ony set, if
|
|
263
|
-
the device was found during a scan using find(). Requires
|
|
264
|
-
pyatv ≧ 0.10.3.</p>
|
|
265
|
-
|
|
266
|
-
<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>
|
|
267
|
-
</code></pre>
|
|
268
|
-
</div>
|
|
269
|
-
<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">
|
|
270
|
-
<ul>
|
|
271
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L135">src/lib/device.ts:135</a></li></ul></aside></li></ul></section>
|
|
272
|
-
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="version" class="tsd-anchor"></a>
|
|
273
|
-
<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>
|
|
274
|
-
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
275
|
-
<li class="tsd-signature" id="version.version-1"><span class="tsd-signature-symbol">get</span> version<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li>
|
|
276
|
-
<li class="tsd-description">
|
|
277
|
-
<div class="tsd-comment tsd-typography"><p>Get the device version. Only set, if the device was found
|
|
278
|
-
during a scan using find(). Requires pyatv ≧ 0.10.3.</p>
|
|
279
|
-
|
|
280
|
-
<h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">version</span><span class="hl-1"> → </span><span class="hl-3">"15.5.1"</span>
|
|
281
|
-
</code></pre>
|
|
282
|
-
</div>
|
|
283
|
-
<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">
|
|
284
|
-
<ul>
|
|
285
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L115">src/lib/device.ts:115</a></li></ul></aside></li></ul></section></section>
|
|
286
|
-
<section class="tsd-panel-group tsd-member-group">
|
|
287
|
-
<h2>Basic Methods</h2>
|
|
288
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toJSON" class="tsd-anchor"></a>
|
|
289
|
-
<h3 class="tsd-anchor-link"><span>toJSON</span><a href="#toJSON" 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>
|
|
290
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
291
|
-
<li class="tsd-signature tsd-anchor-link" id="toJSON.toJSON-1">toJSON<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span> </span>host<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>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><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><a href="#toJSON.toJSON-1" 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></li>
|
|
292
|
-
<li class="tsd-description">
|
|
293
|
-
<div class="tsd-comment tsd-typography"><p>Returns an object with <code>name</code>, <code>host</code>, <code>id</code> and <code>protocol</code>.
|
|
294
|
-
Can be used to initiate a new device instance.</p>
|
|
295
|
-
</div>
|
|
296
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span><br/><span> </span>host<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>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><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h4>
|
|
297
|
-
<ul class="tsd-parameters">
|
|
298
|
-
<li class="tsd-parameter">
|
|
299
|
-
<h5>host<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li>
|
|
300
|
-
<li class="tsd-parameter">
|
|
301
|
-
<h5>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li>
|
|
302
|
-
<li class="tsd-parameter">
|
|
303
|
-
<h5>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li>
|
|
304
|
-
<li class="tsd-parameter">
|
|
305
|
-
<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">
|
|
306
|
-
<ul>
|
|
307
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L170">src/lib/device.ts:170</a></li></ul></aside></li></ul></section>
|
|
308
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toString" class="tsd-anchor"></a>
|
|
309
|
-
<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>
|
|
310
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
311
|
-
<li class="tsd-signature tsd-anchor-link" id="toString.toString-1">to<wbr/>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#toString.toString-1" 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></li>
|
|
312
|
-
<li class="tsd-description">
|
|
313
|
-
<div class="tsd-comment tsd-typography"><p>Returns a string. Just for debugging, etc.</p>
|
|
314
|
-
</div>
|
|
315
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
316
|
-
<ul>
|
|
317
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L184">src/lib/device.ts:184</a></li></ul></aside></li></ul></section></section>
|
|
318
|
-
<section class="tsd-panel-group tsd-member-group">
|
|
319
|
-
<h2>Control Methods</h2>
|
|
320
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="down" class="tsd-anchor"></a>
|
|
321
|
-
<h3 class="tsd-anchor-link"><span>down</span><a href="#down" 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>
|
|
322
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
323
|
-
<li class="tsd-signature tsd-anchor-link" id="down.down-1">down<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#down.down-1" 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></li>
|
|
324
|
-
<li class="tsd-description">
|
|
325
|
-
<div class="tsd-comment tsd-typography"><p>Send the "down" command</p>
|
|
326
|
-
</div>
|
|
327
|
-
<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">
|
|
328
|
-
<ul>
|
|
329
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L462">src/lib/device.ts:462</a></li></ul></aside></li></ul></section>
|
|
330
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="home" class="tsd-anchor"></a>
|
|
331
|
-
<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>
|
|
332
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
333
|
-
<li class="tsd-signature tsd-anchor-link" id="home.home-1">home<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#home.home-1" 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></li>
|
|
334
|
-
<li class="tsd-description">
|
|
335
|
-
<div class="tsd-comment tsd-typography"><p>Send the "home" command</p>
|
|
336
|
-
</div>
|
|
337
|
-
<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">
|
|
338
|
-
<ul>
|
|
339
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L470">src/lib/device.ts:470</a></li></ul></aside></li></ul></section>
|
|
340
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="homeHold" class="tsd-anchor"></a>
|
|
341
|
-
<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>
|
|
342
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
343
|
-
<li class="tsd-signature tsd-anchor-link" id="homeHold.homeHold-1">home<wbr/>Hold<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#homeHold.homeHold-1" 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></li>
|
|
344
|
-
<li class="tsd-description">
|
|
345
|
-
<div class="tsd-comment tsd-typography"><p>Send the "homeHold" command</p>
|
|
346
|
-
</div>
|
|
347
|
-
<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">
|
|
348
|
-
<ul>
|
|
349
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L478">src/lib/device.ts:478</a></li></ul></aside></li></ul></section>
|
|
350
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="left" class="tsd-anchor"></a>
|
|
351
|
-
<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>
|
|
352
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
353
|
-
<li class="tsd-signature tsd-anchor-link" id="left.left-1">left<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#left.left-1" 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></li>
|
|
354
|
-
<li class="tsd-description">
|
|
355
|
-
<div class="tsd-comment tsd-typography"><p>Send the "left" command</p>
|
|
356
|
-
</div>
|
|
357
|
-
<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">
|
|
358
|
-
<ul>
|
|
359
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L486">src/lib/device.ts:486</a></li></ul></aside></li></ul></section>
|
|
360
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="menu" class="tsd-anchor"></a>
|
|
361
|
-
<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>
|
|
362
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
363
|
-
<li class="tsd-signature tsd-anchor-link" id="menu.menu-1">menu<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#menu.menu-1" 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></li>
|
|
364
|
-
<li class="tsd-description">
|
|
365
|
-
<div class="tsd-comment tsd-typography"><p>Send the "menu" command</p>
|
|
366
|
-
</div>
|
|
367
|
-
<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">
|
|
368
|
-
<ul>
|
|
369
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L494">src/lib/device.ts:494</a></li></ul></aside></li></ul></section>
|
|
370
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="next" class="tsd-anchor"></a>
|
|
371
|
-
<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>
|
|
372
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
373
|
-
<li class="tsd-signature tsd-anchor-link" id="next.next-1">next<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#next.next-1" 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></li>
|
|
374
|
-
<li class="tsd-description">
|
|
375
|
-
<div class="tsd-comment tsd-typography"><p>Send the "next" command</p>
|
|
376
|
-
</div>
|
|
377
|
-
<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">
|
|
378
|
-
<ul>
|
|
379
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L502">src/lib/device.ts:502</a></li></ul></aside></li></ul></section>
|
|
380
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="pause" class="tsd-anchor"></a>
|
|
381
|
-
<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>
|
|
382
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
383
|
-
<li class="tsd-signature tsd-anchor-link" id="pause.pause-1">pause<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#pause.pause-1" 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></li>
|
|
384
|
-
<li class="tsd-description">
|
|
385
|
-
<div class="tsd-comment tsd-typography"><p>Send the "pause" command</p>
|
|
386
|
-
</div>
|
|
387
|
-
<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">
|
|
388
|
-
<ul>
|
|
389
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L510">src/lib/device.ts:510</a></li></ul></aside></li></ul></section>
|
|
390
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="play" class="tsd-anchor"></a>
|
|
391
|
-
<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>
|
|
392
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
393
|
-
<li class="tsd-signature tsd-anchor-link" id="play.play-1">play<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#play.play-1" 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></li>
|
|
394
|
-
<li class="tsd-description">
|
|
395
|
-
<div class="tsd-comment tsd-typography"><p>Send the "play" command</p>
|
|
396
|
-
</div>
|
|
397
|
-
<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">
|
|
398
|
-
<ul>
|
|
399
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L518">src/lib/device.ts:518</a></li></ul></aside></li></ul></section>
|
|
400
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="playPause" class="tsd-anchor"></a>
|
|
401
|
-
<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>
|
|
402
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
403
|
-
<li class="tsd-signature tsd-anchor-link" id="playPause.playPause-1">play<wbr/>Pause<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#playPause.playPause-1" 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></li>
|
|
404
|
-
<li class="tsd-description">
|
|
405
|
-
<div class="tsd-comment tsd-typography"><p>Send the "playPause" command</p>
|
|
406
|
-
</div>
|
|
407
|
-
<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">
|
|
408
|
-
<ul>
|
|
409
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L526">src/lib/device.ts:526</a></li></ul></aside></li></ul></section>
|
|
410
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="pressKey" class="tsd-anchor"></a>
|
|
411
|
-
<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>
|
|
412
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
413
|
-
<li class="tsd-signature tsd-anchor-link" id="pressKey.pressKey-1">press<wbr/>Key<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><a href="../enums/NodePyATVKeys.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVKeys</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#pressKey.pressKey-1" 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></li>
|
|
414
|
-
<li class="tsd-description">
|
|
415
|
-
<div class="tsd-comment tsd-typography"><p>Send a key press to the Apple TV</p>
|
|
416
|
-
<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">pressKey</span><span class="hl-1">(</span><span class="hl-0">NodePyATVKeys</span><span class="hl-1">.</span><span class="hl-0">home</span><span class="hl-1">);</span>
|
|
417
|
-
</code></pre>
|
|
418
|
-
<br />
|
|
419
|
-
|
|
420
|
-
<pre><code class="language-javascript"><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">pressKey</span><span class="hl-1">(</span><span class="hl-3">'home'</span><span class="hl-1">);</span>
|
|
421
|
-
</code></pre>
|
|
422
|
-
</div>
|
|
423
|
-
<div class="tsd-parameters">
|
|
424
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
425
|
-
<ul class="tsd-parameter-list">
|
|
426
|
-
<li>
|
|
427
|
-
<h5>key: <a href="../enums/NodePyATVKeys.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVKeys</a></h5></li></ul></div>
|
|
428
|
-
<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">
|
|
429
|
-
<ul>
|
|
430
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L442">src/lib/device.ts:442</a></li></ul></aside></li></ul></section>
|
|
431
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="previous" class="tsd-anchor"></a>
|
|
432
|
-
<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>
|
|
433
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
434
|
-
<li class="tsd-signature tsd-anchor-link" id="previous.previous-1">previous<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#previous.previous-1" 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></li>
|
|
435
|
-
<li class="tsd-description">
|
|
436
|
-
<div class="tsd-comment tsd-typography"><p>Send the "previous" command</p>
|
|
437
|
-
</div>
|
|
438
|
-
<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">
|
|
439
|
-
<ul>
|
|
440
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L534">src/lib/device.ts:534</a></li></ul></aside></li></ul></section>
|
|
441
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="right" class="tsd-anchor"></a>
|
|
442
|
-
<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>
|
|
443
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
444
|
-
<li class="tsd-signature tsd-anchor-link" id="right.right-1">right<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#right.right-1" 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></li>
|
|
445
|
-
<li class="tsd-description">
|
|
446
|
-
<div class="tsd-comment tsd-typography"><p>Send the "right" command</p>
|
|
447
|
-
</div>
|
|
448
|
-
<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">
|
|
449
|
-
<ul>
|
|
450
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L542">src/lib/device.ts:542</a></li></ul></aside></li></ul></section>
|
|
451
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="select" class="tsd-anchor"></a>
|
|
452
|
-
<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>
|
|
453
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
454
|
-
<li class="tsd-signature tsd-anchor-link" id="select.select-1">select<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#select.select-1" 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></li>
|
|
455
|
-
<li class="tsd-description">
|
|
456
|
-
<div class="tsd-comment tsd-typography"><p>Send the "select" command</p>
|
|
457
|
-
</div>
|
|
458
|
-
<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">
|
|
459
|
-
<ul>
|
|
460
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L550">src/lib/device.ts:550</a></li></ul></aside></li></ul></section>
|
|
461
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="skipBackward" class="tsd-anchor"></a>
|
|
462
|
-
<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>
|
|
463
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
464
|
-
<li class="tsd-signature tsd-anchor-link" id="skipBackward.skipBackward-1">skip<wbr/>Backward<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#skipBackward.skipBackward-1" 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></li>
|
|
465
|
-
<li class="tsd-description">
|
|
466
|
-
<div class="tsd-comment tsd-typography"><p>Send the "skipBackward" command</p>
|
|
467
|
-
</div>
|
|
468
|
-
<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">
|
|
469
|
-
<ul>
|
|
470
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L558">src/lib/device.ts:558</a></li></ul></aside></li></ul></section>
|
|
471
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="skipForward" class="tsd-anchor"></a>
|
|
472
|
-
<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>
|
|
473
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
474
|
-
<li class="tsd-signature tsd-anchor-link" id="skipForward.skipForward-1">skip<wbr/>Forward<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#skipForward.skipForward-1" 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></li>
|
|
475
|
-
<li class="tsd-description">
|
|
476
|
-
<div class="tsd-comment tsd-typography"><p>Send the "skipForward" command</p>
|
|
477
|
-
</div>
|
|
478
|
-
<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">
|
|
479
|
-
<ul>
|
|
480
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L566">src/lib/device.ts:566</a></li></ul></aside></li></ul></section>
|
|
481
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="stop" class="tsd-anchor"></a>
|
|
482
|
-
<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>
|
|
483
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
484
|
-
<li class="tsd-signature tsd-anchor-link" id="stop.stop-1">stop<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#stop.stop-1" 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></li>
|
|
485
|
-
<li class="tsd-description">
|
|
486
|
-
<div class="tsd-comment tsd-typography"><p>Send the "stop" command</p>
|
|
487
|
-
</div>
|
|
488
|
-
<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">
|
|
489
|
-
<ul>
|
|
490
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L574">src/lib/device.ts:574</a></li></ul></aside></li></ul></section>
|
|
491
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="suspend" class="tsd-anchor"></a>
|
|
492
|
-
<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>
|
|
493
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
494
|
-
<li class="tsd-signature tsd-anchor-link" id="suspend.suspend-1">suspend<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#suspend.suspend-1" 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></li>
|
|
495
|
-
<li class="tsd-description">
|
|
496
|
-
<div class="tsd-comment tsd-typography"><p>Send the "suspend" command</p>
|
|
497
|
-
|
|
498
|
-
<h3>Deprecated</h3></div>
|
|
499
|
-
<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">
|
|
500
|
-
<ul>
|
|
501
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L583">src/lib/device.ts:583</a></li></ul></aside></li></ul></section>
|
|
502
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="topMenu" class="tsd-anchor"></a>
|
|
503
|
-
<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>
|
|
504
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
505
|
-
<li class="tsd-signature tsd-anchor-link" id="topMenu.topMenu-1">top<wbr/>Menu<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#topMenu.topMenu-1" 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></li>
|
|
506
|
-
<li class="tsd-description">
|
|
507
|
-
<div class="tsd-comment tsd-typography"><p>Send the "topMenu" command</p>
|
|
508
|
-
</div>
|
|
509
|
-
<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">
|
|
510
|
-
<ul>
|
|
511
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L591">src/lib/device.ts:591</a></li></ul></aside></li></ul></section>
|
|
512
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="turnOff" class="tsd-anchor"></a>
|
|
513
|
-
<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>
|
|
514
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
515
|
-
<li class="tsd-signature tsd-anchor-link" id="turnOff.turnOff-1">turn<wbr/>Off<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#turnOff.turnOff-1" 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></li>
|
|
516
|
-
<li class="tsd-description">
|
|
517
|
-
<div class="tsd-comment tsd-typography"><p>Send the "turn_off" command</p>
|
|
518
|
-
</div>
|
|
519
|
-
<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">
|
|
520
|
-
<ul>
|
|
521
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L632">src/lib/device.ts:632</a></li></ul></aside></li></ul></section>
|
|
522
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="turnOn" class="tsd-anchor"></a>
|
|
523
|
-
<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>
|
|
524
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
525
|
-
<li class="tsd-signature tsd-anchor-link" id="turnOn.turnOn-1">turn<wbr/>On<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#turnOn.turnOn-1" 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></li>
|
|
526
|
-
<li class="tsd-description">
|
|
527
|
-
<div class="tsd-comment tsd-typography"><p>Send the "turn_on" command</p>
|
|
528
|
-
</div>
|
|
529
|
-
<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">
|
|
530
|
-
<ul>
|
|
531
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L640">src/lib/device.ts:640</a></li></ul></aside></li></ul></section>
|
|
532
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="up" class="tsd-anchor"></a>
|
|
533
|
-
<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>
|
|
534
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
535
|
-
<li class="tsd-signature tsd-anchor-link" id="up.up-1">up<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#up.up-1" 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></li>
|
|
536
|
-
<li class="tsd-description">
|
|
537
|
-
<div class="tsd-comment tsd-typography"><p>Send the "up" command</p>
|
|
538
|
-
</div>
|
|
539
|
-
<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">
|
|
540
|
-
<ul>
|
|
541
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L599">src/lib/device.ts:599</a></li></ul></aside></li></ul></section>
|
|
542
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="volumeDown" class="tsd-anchor"></a>
|
|
543
|
-
<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>
|
|
544
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
545
|
-
<li class="tsd-signature tsd-anchor-link" id="volumeDown.volumeDown-1">volume<wbr/>Down<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#volumeDown.volumeDown-1" 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></li>
|
|
546
|
-
<li class="tsd-description">
|
|
547
|
-
<div class="tsd-comment tsd-typography"><p>Send the "volumeDown" command</p>
|
|
548
|
-
</div>
|
|
549
|
-
<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">
|
|
550
|
-
<ul>
|
|
551
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L607">src/lib/device.ts:607</a></li></ul></aside></li></ul></section>
|
|
552
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="volumeUp" class="tsd-anchor"></a>
|
|
553
|
-
<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>
|
|
554
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
555
|
-
<li class="tsd-signature tsd-anchor-link" id="volumeUp.volumeUp-1">volume<wbr/>Up<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#volumeUp.volumeUp-1" 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></li>
|
|
556
|
-
<li class="tsd-description">
|
|
557
|
-
<div class="tsd-comment tsd-typography"><p>Send the "volumeUp" command</p>
|
|
558
|
-
</div>
|
|
559
|
-
<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">
|
|
560
|
-
<ul>
|
|
561
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L615">src/lib/device.ts:615</a></li></ul></aside></li></ul></section>
|
|
562
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="wakeup" class="tsd-anchor"></a>
|
|
563
|
-
<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>
|
|
564
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
565
|
-
<li class="tsd-signature tsd-anchor-link" id="wakeup.wakeup-1">wakeup<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#wakeup.wakeup-1" 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></li>
|
|
566
|
-
<li class="tsd-description">
|
|
567
|
-
<div class="tsd-comment tsd-typography"><p>Send the "wakeup" command</p>
|
|
568
|
-
|
|
569
|
-
<h3>Deprecated</h3></div>
|
|
570
|
-
<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">
|
|
571
|
-
<ul>
|
|
572
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L624">src/lib/device.ts:624</a></li></ul></aside></li></ul></section></section>
|
|
573
|
-
<section class="tsd-panel-group tsd-member-group">
|
|
574
|
-
<h2>Event Methods</h2>
|
|
575
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="addListener" class="tsd-anchor"></a>
|
|
576
|
-
<h3 class="tsd-anchor-link"><span>add<wbr/>Listener</span><a href="#addListener" 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>
|
|
577
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
578
|
-
<li class="tsd-signature tsd-anchor-link" id="addListener.addListener-1">add<wbr/>Listener<span class="tsd-signature-symbol">(</span>event<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>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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><a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a><a href="#addListener.addListener-1" 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></li>
|
|
579
|
-
<li class="tsd-description">
|
|
580
|
-
<div class="tsd-comment tsd-typography"><p>Add an event listener. Will start the event subscription with the
|
|
581
|
-
Apple TV as long as there are listeners for any event registered.</p>
|
|
582
|
-
</div>
|
|
583
|
-
<div class="tsd-parameters">
|
|
584
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
585
|
-
<ul class="tsd-parameter-list">
|
|
586
|
-
<li>
|
|
587
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li>
|
|
588
|
-
<li>
|
|
589
|
-
<h5>listener: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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>
|
|
590
|
-
<ul class="tsd-parameters">
|
|
591
|
-
<li class="tsd-parameter-signature">
|
|
592
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
593
|
-
<li class="tsd-signature"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
594
|
-
<li class="tsd-description">
|
|
595
|
-
<div class="tsd-parameters">
|
|
596
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
597
|
-
<ul class="tsd-parameter-list">
|
|
598
|
-
<li>
|
|
599
|
-
<h5>event: <a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a></h5></li></ul></div>
|
|
600
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div>
|
|
601
|
-
<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">
|
|
602
|
-
<p>Implementation of EventEmitter.addListener</p>
|
|
603
|
-
<ul>
|
|
604
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L660">src/lib/device.ts:660</a></li></ul></aside></li></ul></section>
|
|
605
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="emit" class="tsd-anchor"></a>
|
|
606
|
-
<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>
|
|
607
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
608
|
-
<li class="tsd-signature tsd-anchor-link" id="emit.emit-1">emit<span class="tsd-signature-symbol">(</span>event<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>, payload<span class="tsd-signature-symbol">: </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#emit.emit-1" 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></li>
|
|
609
|
-
<li class="tsd-description">
|
|
610
|
-
<div class="tsd-comment tsd-typography"><p>Emit an event.</p>
|
|
611
|
-
</div>
|
|
612
|
-
<div class="tsd-parameters">
|
|
613
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
614
|
-
<ul class="tsd-parameter-list">
|
|
615
|
-
<li>
|
|
616
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li>
|
|
617
|
-
<li>
|
|
618
|
-
<h5>payload: <a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a></h5></li></ul></div>
|
|
619
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
620
|
-
<p>Implementation of EventEmitter.emit</p>
|
|
621
|
-
<ul>
|
|
622
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L671">src/lib/device.ts:671</a></li></ul></aside></li></ul></section>
|
|
623
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="eventNames" class="tsd-anchor"></a>
|
|
624
|
-
<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>
|
|
625
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
626
|
-
<li class="tsd-signature tsd-anchor-link" id="eventNames.eventNames-1">event<wbr/>Names<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#eventNames.eventNames-1" 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></li>
|
|
627
|
-
<li class="tsd-description">
|
|
628
|
-
<div class="tsd-comment tsd-typography"><p>Get all event names which are currently known.</p>
|
|
629
|
-
</div>
|
|
630
|
-
<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">
|
|
631
|
-
<p>Implementation of EventEmitter.eventNames</p>
|
|
632
|
-
<ul>
|
|
633
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L679">src/lib/device.ts:679</a></li></ul></aside></li></ul></section>
|
|
634
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getMaxListeners" class="tsd-anchor"></a>
|
|
635
|
-
<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>
|
|
636
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
637
|
-
<li class="tsd-signature tsd-anchor-link" id="getMaxListeners.getMaxListeners-1">get<wbr/>Max<wbr/>Listeners<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#getMaxListeners.getMaxListeners-1" 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></li>
|
|
638
|
-
<li class="tsd-description">
|
|
639
|
-
<div class="tsd-comment tsd-typography"><p>Get max number of listeners allowed</p>
|
|
640
|
-
</div>
|
|
641
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources">
|
|
642
|
-
<p>Implementation of EventEmitter.getMaxListeners</p>
|
|
643
|
-
<ul>
|
|
644
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L687">src/lib/device.ts:687</a></li></ul></aside></li></ul></section>
|
|
645
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="listenerCount" class="tsd-anchor"></a>
|
|
646
|
-
<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>
|
|
647
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
648
|
-
<li class="tsd-signature tsd-anchor-link" id="listenerCount.listenerCount-1">listener<wbr/>Count<span class="tsd-signature-symbol">(</span>event<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><span class="tsd-signature-type">number</span><a href="#listenerCount.listenerCount-1" 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></li>
|
|
649
|
-
<li class="tsd-description">
|
|
650
|
-
<div class="tsd-comment tsd-typography"><p>Get number of listeners for event</p>
|
|
651
|
-
</div>
|
|
652
|
-
<div class="tsd-parameters">
|
|
653
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
654
|
-
<ul class="tsd-parameter-list">
|
|
655
|
-
<li>
|
|
656
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li></ul></div>
|
|
657
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources">
|
|
658
|
-
<p>Implementation of EventEmitter.listenerCount</p>
|
|
659
|
-
<ul>
|
|
660
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L696">src/lib/device.ts:696</a></li></ul></aside></li></ul></section>
|
|
661
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="listeners" class="tsd-anchor"></a>
|
|
662
|
-
<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>
|
|
663
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
664
|
-
<li class="tsd-signature tsd-anchor-link" id="listeners.listeners-1">listeners<span class="tsd-signature-symbol">(</span>event<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><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">[]</span><a href="#listeners.listeners-1" 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></li>
|
|
665
|
-
<li class="tsd-description">
|
|
666
|
-
<div class="tsd-comment tsd-typography"><p>Get listeners for event. Will also return
|
|
667
|
-
node-pyatv wrappers (e.g. once)</p>
|
|
668
|
-
</div>
|
|
669
|
-
<div class="tsd-parameters">
|
|
670
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
671
|
-
<ul class="tsd-parameter-list">
|
|
672
|
-
<li>
|
|
673
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li></ul></div>
|
|
674
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
|
675
|
-
<p>Implementation of EventEmitter.listeners</p>
|
|
676
|
-
<ul>
|
|
677
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L708">src/lib/device.ts:708</a></li></ul></aside></li></ul></section>
|
|
678
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="off" class="tsd-anchor"></a>
|
|
679
|
-
<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>
|
|
680
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
681
|
-
<li class="tsd-signature tsd-anchor-link" id="off.off-1">off<span class="tsd-signature-symbol">(</span>event<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>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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><a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a><a href="#off.off-1" 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></li>
|
|
682
|
-
<li class="tsd-description">
|
|
683
|
-
<div class="tsd-comment tsd-typography"><p>Remove an event listener. Will stop the event subscription with the
|
|
684
|
-
Apple TV if this was the last event listener.</p>
|
|
685
|
-
</div>
|
|
686
|
-
<div class="tsd-parameters">
|
|
687
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
688
|
-
<ul class="tsd-parameter-list">
|
|
689
|
-
<li>
|
|
690
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li>
|
|
691
|
-
<li>
|
|
692
|
-
<h5>listener: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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>
|
|
693
|
-
<ul class="tsd-parameters">
|
|
694
|
-
<li class="tsd-parameter-signature">
|
|
695
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
696
|
-
<li class="tsd-signature"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
697
|
-
<li class="tsd-description">
|
|
698
|
-
<div class="tsd-parameters">
|
|
699
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
700
|
-
<ul class="tsd-parameter-list">
|
|
701
|
-
<li>
|
|
702
|
-
<h5>event: <span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a></h5></li></ul></div>
|
|
703
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div>
|
|
704
|
-
<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">
|
|
705
|
-
<p>Implementation of EventEmitter.off</p>
|
|
706
|
-
<ul>
|
|
707
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L719">src/lib/device.ts:719</a></li></ul></aside></li></ul></section>
|
|
708
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="on" class="tsd-anchor"></a>
|
|
709
|
-
<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>
|
|
710
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
711
|
-
<li class="tsd-signature tsd-anchor-link" id="on.on-1">on<span class="tsd-signature-symbol">(</span>event<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>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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><a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a><a href="#on.on-1" 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></li>
|
|
712
|
-
<li class="tsd-description">
|
|
713
|
-
<div class="tsd-comment tsd-typography"><p>Add an event listener. Will start the event subscription with the
|
|
714
|
-
Apple TV as long as there are listeners for any event registered.</p>
|
|
715
|
-
</div>
|
|
716
|
-
<div class="tsd-parameters">
|
|
717
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
718
|
-
<ul class="tsd-parameter-list">
|
|
719
|
-
<li>
|
|
720
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li>
|
|
721
|
-
<li>
|
|
722
|
-
<h5>listener: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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>
|
|
723
|
-
<ul class="tsd-parameters">
|
|
724
|
-
<li class="tsd-parameter-signature">
|
|
725
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
726
|
-
<li class="tsd-signature"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
727
|
-
<li class="tsd-description">
|
|
728
|
-
<div class="tsd-parameters">
|
|
729
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
730
|
-
<ul class="tsd-parameter-list">
|
|
731
|
-
<li>
|
|
732
|
-
<h5>event: <span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a></h5></li></ul></div>
|
|
733
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div>
|
|
734
|
-
<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">
|
|
735
|
-
<p>Implementation of EventEmitter.on</p>
|
|
736
|
-
<ul>
|
|
737
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L731">src/lib/device.ts:731</a></li></ul></aside></li></ul></section>
|
|
738
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="once" class="tsd-anchor"></a>
|
|
739
|
-
<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>
|
|
740
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
741
|
-
<li class="tsd-signature tsd-anchor-link" id="once.once-1">once<span class="tsd-signature-symbol">(</span>event<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>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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><a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a><a href="#once.once-1" 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></li>
|
|
742
|
-
<li class="tsd-description">
|
|
743
|
-
<div class="tsd-comment tsd-typography"><p>Add an event listener. Will start the event subscription with the
|
|
744
|
-
Apple TV as long as there are listeners for any event registered.
|
|
745
|
-
Removes the listener automatically after the first occurrence.</p>
|
|
746
|
-
</div>
|
|
747
|
-
<div class="tsd-parameters">
|
|
748
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
749
|
-
<ul class="tsd-parameter-list">
|
|
750
|
-
<li>
|
|
751
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li>
|
|
752
|
-
<li>
|
|
753
|
-
<h5>listener: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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>
|
|
754
|
-
<ul class="tsd-parameters">
|
|
755
|
-
<li class="tsd-parameter-signature">
|
|
756
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
757
|
-
<li class="tsd-signature"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
758
|
-
<li class="tsd-description">
|
|
759
|
-
<div class="tsd-parameters">
|
|
760
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
761
|
-
<ul class="tsd-parameter-list">
|
|
762
|
-
<li>
|
|
763
|
-
<h5>event: <span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a></h5></li></ul></div>
|
|
764
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div>
|
|
765
|
-
<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">
|
|
766
|
-
<p>Implementation of EventEmitter.once</p>
|
|
767
|
-
<ul>
|
|
768
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L744">src/lib/device.ts:744</a></li></ul></aside></li></ul></section>
|
|
769
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="prependListener" class="tsd-anchor"></a>
|
|
770
|
-
<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>
|
|
771
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
772
|
-
<li class="tsd-signature tsd-anchor-link" id="prependListener.prependListener-1">prepend<wbr/>Listener<span class="tsd-signature-symbol">(</span>event<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>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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><a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a><a href="#prependListener.prependListener-1" 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></li>
|
|
773
|
-
<li class="tsd-description">
|
|
774
|
-
<div class="tsd-parameters">
|
|
775
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
776
|
-
<ul class="tsd-parameter-list">
|
|
777
|
-
<li>
|
|
778
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li>
|
|
779
|
-
<li>
|
|
780
|
-
<h5>listener: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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>
|
|
781
|
-
<ul class="tsd-parameters">
|
|
782
|
-
<li class="tsd-parameter-signature">
|
|
783
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
784
|
-
<li class="tsd-signature"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
785
|
-
<li class="tsd-description">
|
|
786
|
-
<div class="tsd-parameters">
|
|
787
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
788
|
-
<ul class="tsd-parameter-list">
|
|
789
|
-
<li>
|
|
790
|
-
<h5>event: <span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a></h5></li></ul></div>
|
|
791
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div>
|
|
792
|
-
<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">
|
|
793
|
-
<p>Implementation of EventEmitter.prependListener</p>
|
|
794
|
-
<ul>
|
|
795
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L754">src/lib/device.ts:754</a></li></ul></aside></li></ul></section>
|
|
796
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="prependOnceListener" class="tsd-anchor"></a>
|
|
797
|
-
<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>
|
|
798
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
799
|
-
<li class="tsd-signature tsd-anchor-link" id="prependOnceListener.prependOnceListener-1">prepend<wbr/>Once<wbr/>Listener<span class="tsd-signature-symbol">(</span>event<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>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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><a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a><a href="#prependOnceListener.prependOnceListener-1" 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></li>
|
|
800
|
-
<li class="tsd-description">
|
|
801
|
-
<div class="tsd-parameters">
|
|
802
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
803
|
-
<ul class="tsd-parameter-list">
|
|
804
|
-
<li>
|
|
805
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li>
|
|
806
|
-
<li>
|
|
807
|
-
<h5>listener: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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>
|
|
808
|
-
<ul class="tsd-parameters">
|
|
809
|
-
<li class="tsd-parameter-signature">
|
|
810
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
811
|
-
<li class="tsd-signature"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
812
|
-
<li class="tsd-description">
|
|
813
|
-
<div class="tsd-parameters">
|
|
814
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
815
|
-
<ul class="tsd-parameter-list">
|
|
816
|
-
<li>
|
|
817
|
-
<h5>event: <span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol"> | </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a></h5></li></ul></div>
|
|
818
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div>
|
|
819
|
-
<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">
|
|
820
|
-
<p>Implementation of EventEmitter.prependOnceListener</p>
|
|
821
|
-
<ul>
|
|
822
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L764">src/lib/device.ts:764</a></li></ul></aside></li></ul></section>
|
|
823
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="rawListeners" class="tsd-anchor"></a>
|
|
824
|
-
<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>
|
|
825
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
826
|
-
<li class="tsd-signature tsd-anchor-link" id="rawListeners.rawListeners-1">raw<wbr/>Listeners<span class="tsd-signature-symbol">(</span>event<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><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">[]</span><a href="#rawListeners.rawListeners-1" 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></li>
|
|
827
|
-
<li class="tsd-description">
|
|
828
|
-
<div class="tsd-parameters">
|
|
829
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
830
|
-
<ul class="tsd-parameter-list">
|
|
831
|
-
<li>
|
|
832
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li></ul></div>
|
|
833
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
|
834
|
-
<p>Implementation of EventEmitter.rawListeners</p>
|
|
835
|
-
<ul>
|
|
836
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L774">src/lib/device.ts:774</a></li></ul></aside></li></ul></section>
|
|
837
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="removeAllListeners" class="tsd-anchor"></a>
|
|
838
|
-
<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>
|
|
839
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
840
|
-
<li class="tsd-signature tsd-anchor-link" id="removeAllListeners.removeAllListeners-1">remove<wbr/>All<wbr/>Listeners<span class="tsd-signature-symbol">(</span>event<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><a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a><a href="#removeAllListeners.removeAllListeners-1" 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></li>
|
|
841
|
-
<li class="tsd-description">
|
|
842
|
-
<div class="tsd-comment tsd-typography"><p>Removes all listeners, either for the given event or
|
|
843
|
-
for every event. Will stop the event subscription with
|
|
844
|
-
the Apple TV if this was the last event listener.</p>
|
|
845
|
-
</div>
|
|
846
|
-
<div class="tsd-parameters">
|
|
847
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
848
|
-
<ul class="tsd-parameter-list">
|
|
849
|
-
<li>
|
|
850
|
-
<h5><code class="tsd-tag ts-flagOptional">Optional</code> event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li></ul></div>
|
|
851
|
-
<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">
|
|
852
|
-
<p>Implementation of EventEmitter.removeAllListeners</p>
|
|
853
|
-
<ul>
|
|
854
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L786">src/lib/device.ts:786</a></li></ul></aside></li></ul></section>
|
|
855
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="removeListener" class="tsd-anchor"></a>
|
|
856
|
-
<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>
|
|
857
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
858
|
-
<li class="tsd-signature tsd-anchor-link" id="removeListener.removeListener-1">remove<wbr/>Listener<span class="tsd-signature-symbol">(</span>event<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>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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><a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a><a href="#removeListener.removeListener-1" 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></li>
|
|
859
|
-
<li class="tsd-description">
|
|
860
|
-
<div class="tsd-comment tsd-typography"><p>Remove an event listener. Will stop the event subscription with the
|
|
861
|
-
Apple TV if this was the last event listener.</p>
|
|
862
|
-
</div>
|
|
863
|
-
<div class="tsd-parameters">
|
|
864
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
865
|
-
<ul class="tsd-parameter-list">
|
|
866
|
-
<li>
|
|
867
|
-
<h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5></li>
|
|
868
|
-
<li>
|
|
869
|
-
<h5>listener: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><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>
|
|
870
|
-
<ul class="tsd-parameters">
|
|
871
|
-
<li class="tsd-parameter-signature">
|
|
872
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
873
|
-
<li class="tsd-signature"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
874
|
-
<li class="tsd-description">
|
|
875
|
-
<div class="tsd-parameters">
|
|
876
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
877
|
-
<ul class="tsd-parameter-list">
|
|
878
|
-
<li>
|
|
879
|
-
<h5>event: <a href="NodePyATVDeviceEvent.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDeviceEvent</a></h5></li></ul></div>
|
|
880
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div>
|
|
881
|
-
<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">
|
|
882
|
-
<p>Implementation of EventEmitter.removeListener</p>
|
|
883
|
-
<ul>
|
|
884
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L798">src/lib/device.ts:798</a></li></ul></aside></li></ul></section>
|
|
885
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setMaxListeners" class="tsd-anchor"></a>
|
|
886
|
-
<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>
|
|
887
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
888
|
-
<li class="tsd-signature tsd-anchor-link" id="setMaxListeners.setMaxListeners-1">set<wbr/>Max<wbr/>Listeners<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="NodePyATVDevice.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVDevice</a><a href="#setMaxListeners.setMaxListeners-1" 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></li>
|
|
889
|
-
<li class="tsd-description">
|
|
890
|
-
<div class="tsd-parameters">
|
|
891
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
892
|
-
<ul class="tsd-parameter-list">
|
|
893
|
-
<li>
|
|
894
|
-
<h5>n: <span class="tsd-signature-type">number</span></h5></li></ul></div>
|
|
895
|
-
<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">
|
|
896
|
-
<p>Implementation of EventEmitter.setMaxListeners</p>
|
|
897
|
-
<ul>
|
|
898
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L807">src/lib/device.ts:807</a></li></ul></aside></li></ul></section></section>
|
|
899
|
-
<section class="tsd-panel-group tsd-member-group">
|
|
900
|
-
<h2>Other Methods</h2>
|
|
901
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="launchApp" class="tsd-anchor"></a>
|
|
902
|
-
<h3 class="tsd-anchor-link"><span>launch<wbr/>App</span><a href="#launchApp" 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>
|
|
903
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
904
|
-
<li class="tsd-signature tsd-anchor-link" id="launchApp.launchApp-1">launch<wbr/>App<span class="tsd-signature-symbol">(</span>id<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">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#launchApp.launchApp-1" 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></li>
|
|
905
|
-
<li class="tsd-description">
|
|
906
|
-
<div class="tsd-comment tsd-typography"><p>Launch an application. Probably requires <code>companionCredentials</code>, see
|
|
907
|
-
<a href="https://pyatv.dev/documentation/atvremote/#apps">https://pyatv.dev/documentation/atvremote/#apps</a> for more details.</p>
|
|
908
|
-
</div>
|
|
909
|
-
<div class="tsd-parameters">
|
|
910
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
911
|
-
<ul class="tsd-parameter-list">
|
|
912
|
-
<li>
|
|
913
|
-
<h5>id: <span class="tsd-signature-type">string</span></h5>
|
|
914
|
-
<div class="tsd-comment tsd-typography"><p>App identifier, e.g. <code>com.netflix.Netflix</code></p>
|
|
915
|
-
</div></li></ul></div>
|
|
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">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
917
|
-
<ul>
|
|
918
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L649">src/lib/device.ts:649</a></li></ul></aside></li></ul></section>
|
|
919
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="listApps" class="tsd-anchor"></a>
|
|
920
|
-
<h3 class="tsd-anchor-link"><span>list<wbr/>Apps</span><a href="#listApps" 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
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
922
|
-
<li class="tsd-signature tsd-anchor-link" id="listApps.listApps-1">list<wbr/>Apps<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">NodePyATVApp</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><a href="#listApps.listApps-1" 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></li>
|
|
923
|
-
<li class="tsd-description">
|
|
924
|
-
<div class="tsd-comment tsd-typography"><p>Returns the list of installed apps on the Apple TV. Probably requires <code>companionCredentials</code>,
|
|
925
|
-
see <a href="https://pyatv.dev/documentation/atvremote/#apps">https://pyatv.dev/documentation/atvremote/#apps</a> for more details.</p>
|
|
926
|
-
</div>
|
|
927
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">NodePyATVApp</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
928
|
-
<ul>
|
|
929
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L386">src/lib/device.ts:386</a></li></ul></aside></li></ul></section></section>
|
|
930
|
-
<section class="tsd-panel-group tsd-member-group">
|
|
931
|
-
<h2>State Methods</h2>
|
|
932
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="clearState" class="tsd-anchor"></a>
|
|
933
|
-
<h3 class="tsd-anchor-link"><span>clear<wbr/>State</span><a href="#clearState" 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>
|
|
934
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
935
|
-
<li class="tsd-signature tsd-anchor-link" id="clearState.clearState-1">clear<wbr/>State<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><a href="#clearState.clearState-1" 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></li>
|
|
936
|
-
<li class="tsd-description">
|
|
937
|
-
<div class="tsd-comment tsd-typography"><p>Removes the state node-pyatv cached for this device.</p>
|
|
938
|
-
</div>
|
|
939
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
940
|
-
<ul>
|
|
941
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L234">src/lib/device.ts:234</a></li></ul></aside></li></ul></section>
|
|
942
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getAlbum" class="tsd-anchor"></a>
|
|
943
|
-
<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>
|
|
944
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
945
|
-
<li class="tsd-signature tsd-anchor-link" id="getAlbum.getAlbum-1">get<wbr/>Album<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getAlbum.getAlbum-1" 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></li>
|
|
946
|
-
<li class="tsd-description">
|
|
947
|
-
<div class="tsd-comment tsd-typography"><p>Returns the album of the current playing media</p>
|
|
948
|
-
</div>
|
|
949
|
-
<div class="tsd-parameters">
|
|
950
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
951
|
-
<ul class="tsd-parameter-list">
|
|
952
|
-
<li>
|
|
953
|
-
<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>
|
|
954
|
-
<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">
|
|
955
|
-
<ul>
|
|
956
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L307">src/lib/device.ts:307</a></li></ul></aside></li></ul></section>
|
|
957
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getApp" class="tsd-anchor"></a>
|
|
958
|
-
<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>
|
|
959
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
960
|
-
<li class="tsd-signature tsd-anchor-link" id="getApp.getApp-1">get<wbr/>App<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getApp.getApp-1" 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></li>
|
|
961
|
-
<li class="tsd-description">
|
|
962
|
-
<div class="tsd-comment tsd-typography"><p>Returns the currently used app</p>
|
|
963
|
-
</div>
|
|
964
|
-
<div class="tsd-parameters">
|
|
965
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
966
|
-
<ul class="tsd-parameter-list">
|
|
967
|
-
<li>
|
|
968
|
-
<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>
|
|
969
|
-
<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">
|
|
970
|
-
<ul>
|
|
971
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L367">src/lib/device.ts:367</a></li></ul></aside></li></ul></section>
|
|
972
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getAppId" class="tsd-anchor"></a>
|
|
973
|
-
<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>
|
|
974
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
975
|
-
<li class="tsd-signature tsd-anchor-link" id="getAppId.getAppId-1">get<wbr/>App<wbr/>Id<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getAppId.getAppId-1" 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></li>
|
|
976
|
-
<li class="tsd-description">
|
|
977
|
-
<div class="tsd-comment tsd-typography"><p>Returns the id of the currently used app</p>
|
|
978
|
-
</div>
|
|
979
|
-
<div class="tsd-parameters">
|
|
980
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
981
|
-
<ul class="tsd-parameter-list">
|
|
982
|
-
<li>
|
|
983
|
-
<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>
|
|
984
|
-
<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">
|
|
985
|
-
<ul>
|
|
986
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L377">src/lib/device.ts:377</a></li></ul></aside></li></ul></section>
|
|
987
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getArtist" class="tsd-anchor"></a>
|
|
988
|
-
<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>
|
|
989
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
990
|
-
<li class="tsd-signature tsd-anchor-link" id="getArtist.getArtist-1">get<wbr/>Artist<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getArtist.getArtist-1" 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></li>
|
|
991
|
-
<li class="tsd-description">
|
|
992
|
-
<div class="tsd-comment tsd-typography"><p>Returns the artist of the current playing media</p>
|
|
993
|
-
</div>
|
|
994
|
-
<div class="tsd-parameters">
|
|
995
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
996
|
-
<ul class="tsd-parameter-list">
|
|
997
|
-
<li>
|
|
998
|
-
<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>
|
|
999
|
-
<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">
|
|
1000
|
-
<ul>
|
|
1001
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L297">src/lib/device.ts:297</a></li></ul></aside></li></ul></section>
|
|
1002
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getDateTime" class="tsd-anchor"></a>
|
|
1003
|
-
<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>
|
|
1004
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1005
|
-
<li class="tsd-signature tsd-anchor-link" id="getDateTime.getDateTime-1">get<wbr/>Date<wbr/>Time<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getDateTime.getDateTime-1" 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></li>
|
|
1006
|
-
<li class="tsd-description">
|
|
1007
|
-
<div class="tsd-comment tsd-typography"><p>Get the date and time when the state was last updated.</p>
|
|
1008
|
-
</div>
|
|
1009
|
-
<div class="tsd-parameters">
|
|
1010
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1011
|
-
<ul class="tsd-parameter-list">
|
|
1012
|
-
<li>
|
|
1013
|
-
<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>
|
|
1014
|
-
<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">
|
|
1015
|
-
<ul>
|
|
1016
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L247">src/lib/device.ts:247</a></li></ul></aside></li></ul></section>
|
|
1017
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getDeviceState" class="tsd-anchor"></a>
|
|
1018
|
-
<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>
|
|
1019
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1020
|
-
<li class="tsd-signature tsd-anchor-link" id="getDeviceState.getDeviceState-1">get<wbr/>Device<wbr/>State<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getDeviceState.getDeviceState-1" 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></li>
|
|
1021
|
-
<li class="tsd-description">
|
|
1022
|
-
<div class="tsd-comment tsd-typography"><p>Get the state of this device (e.g. playing, etc.)</p>
|
|
1023
|
-
</div>
|
|
1024
|
-
<div class="tsd-parameters">
|
|
1025
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1026
|
-
<ul class="tsd-parameter-list">
|
|
1027
|
-
<li>
|
|
1028
|
-
<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>
|
|
1029
|
-
<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">
|
|
1030
|
-
<ul>
|
|
1031
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L277">src/lib/device.ts:277</a></li></ul></aside></li></ul></section>
|
|
1032
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getGenre" class="tsd-anchor"></a>
|
|
1033
|
-
<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>
|
|
1034
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1035
|
-
<li class="tsd-signature tsd-anchor-link" id="getGenre.getGenre-1">get<wbr/>Genre<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getGenre.getGenre-1" 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></li>
|
|
1036
|
-
<li class="tsd-description">
|
|
1037
|
-
<div class="tsd-comment tsd-typography"><p>Returns the genre of the current playing media</p>
|
|
1038
|
-
</div>
|
|
1039
|
-
<div class="tsd-parameters">
|
|
1040
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1041
|
-
<ul class="tsd-parameter-list">
|
|
1042
|
-
<li>
|
|
1043
|
-
<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>
|
|
1044
|
-
<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">
|
|
1045
|
-
<ul>
|
|
1046
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L317">src/lib/device.ts:317</a></li></ul></aside></li></ul></section>
|
|
1047
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getHash" class="tsd-anchor"></a>
|
|
1048
|
-
<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>
|
|
1049
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1050
|
-
<li class="tsd-signature tsd-anchor-link" id="getHash.getHash-1">get<wbr/>Hash<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getHash.getHash-1" 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></li>
|
|
1051
|
-
<li class="tsd-description">
|
|
1052
|
-
<div class="tsd-comment tsd-typography"><p>Get the hash of the current media</p>
|
|
1053
|
-
</div>
|
|
1054
|
-
<div class="tsd-parameters">
|
|
1055
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1056
|
-
<ul class="tsd-parameter-list">
|
|
1057
|
-
<li>
|
|
1058
|
-
<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>
|
|
1059
|
-
<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">
|
|
1060
|
-
<ul>
|
|
1061
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L257">src/lib/device.ts:257</a></li></ul></aside></li></ul></section>
|
|
1062
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getMediaType" class="tsd-anchor"></a>
|
|
1063
|
-
<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>
|
|
1064
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1065
|
-
<li class="tsd-signature tsd-anchor-link" id="getMediaType.getMediaType-1">get<wbr/>Media<wbr/>Type<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getMediaType.getMediaType-1" 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></li>
|
|
1066
|
-
<li class="tsd-description">
|
|
1067
|
-
<div class="tsd-comment tsd-typography"><p>Get the media type of the current media</p>
|
|
1068
|
-
</div>
|
|
1069
|
-
<div class="tsd-parameters">
|
|
1070
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1071
|
-
<ul class="tsd-parameter-list">
|
|
1072
|
-
<li>
|
|
1073
|
-
<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>
|
|
1074
|
-
<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">
|
|
1075
|
-
<ul>
|
|
1076
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L267">src/lib/device.ts:267</a></li></ul></aside></li></ul></section>
|
|
1077
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getPosition" class="tsd-anchor"></a>
|
|
1078
|
-
<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>
|
|
1079
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1080
|
-
<li class="tsd-signature tsd-anchor-link" id="getPosition.getPosition-1">get<wbr/>Position<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getPosition.getPosition-1" 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></li>
|
|
1081
|
-
<li class="tsd-description">
|
|
1082
|
-
<div class="tsd-comment tsd-typography"><p>Returns the title of the current playing media</p>
|
|
1083
|
-
</div>
|
|
1084
|
-
<div class="tsd-parameters">
|
|
1085
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1086
|
-
<ul class="tsd-parameter-list">
|
|
1087
|
-
<li>
|
|
1088
|
-
<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>
|
|
1089
|
-
<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">
|
|
1090
|
-
<ul>
|
|
1091
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L337">src/lib/device.ts:337</a></li></ul></aside></li></ul></section>
|
|
1092
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getRepeat" class="tsd-anchor"></a>
|
|
1093
|
-
<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>
|
|
1094
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1095
|
-
<li class="tsd-signature tsd-anchor-link" id="getRepeat.getRepeat-1">get<wbr/>Repeat<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getRepeat.getRepeat-1" 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></li>
|
|
1096
|
-
<li class="tsd-description">
|
|
1097
|
-
<div class="tsd-comment tsd-typography"><p>Returns the repeat state</p>
|
|
1098
|
-
</div>
|
|
1099
|
-
<div class="tsd-parameters">
|
|
1100
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1101
|
-
<ul class="tsd-parameter-list">
|
|
1102
|
-
<li>
|
|
1103
|
-
<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>
|
|
1104
|
-
<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">
|
|
1105
|
-
<ul>
|
|
1106
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L357">src/lib/device.ts:357</a></li></ul></aside></li></ul></section>
|
|
1107
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getShuffle" class="tsd-anchor"></a>
|
|
1108
|
-
<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>
|
|
1109
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1110
|
-
<li class="tsd-signature tsd-anchor-link" id="getShuffle.getShuffle-1">get<wbr/>Shuffle<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getShuffle.getShuffle-1" 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></li>
|
|
1111
|
-
<li class="tsd-description">
|
|
1112
|
-
<div class="tsd-comment tsd-typography"><p>Returns the shuffle state</p>
|
|
1113
|
-
</div>
|
|
1114
|
-
<div class="tsd-parameters">
|
|
1115
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1116
|
-
<ul class="tsd-parameter-list">
|
|
1117
|
-
<li>
|
|
1118
|
-
<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>
|
|
1119
|
-
<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">
|
|
1120
|
-
<ul>
|
|
1121
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L347">src/lib/device.ts:347</a></li></ul></aside></li></ul></section>
|
|
1122
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getState" class="tsd-anchor"></a>
|
|
1123
|
-
<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>
|
|
1124
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1125
|
-
<li class="tsd-signature tsd-anchor-link" id="getState.getState-1">get<wbr/>State<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getState.getState-1" 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></li>
|
|
1126
|
-
<li class="tsd-description">
|
|
1127
|
-
<div class="tsd-comment tsd-typography"><p>Returns an <a href="../interfaces/NodePyATVState.html">NodePyATVState</a> object representing the current state
|
|
1128
|
-
of the device. Has an internal cache, which has a default TTL of 5s.
|
|
1129
|
-
You can change this default value by passing the <code>maxAge</code> option.</p>
|
|
1130
|
-
<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>
|
|
1131
|
-
</code></pre>
|
|
1132
|
-
</div>
|
|
1133
|
-
<div class="tsd-parameters">
|
|
1134
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1135
|
-
<ul class="tsd-parameter-list">
|
|
1136
|
-
<li>
|
|
1137
|
-
<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>
|
|
1138
|
-
<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">
|
|
1139
|
-
<ul>
|
|
1140
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L200">src/lib/device.ts:200</a></li></ul></aside></li></ul></section>
|
|
1141
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getTitle" class="tsd-anchor"></a>
|
|
1142
|
-
<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>
|
|
1143
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1144
|
-
<li class="tsd-signature tsd-anchor-link" id="getTitle.getTitle-1">get<wbr/>Title<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getTitle.getTitle-1" 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></li>
|
|
1145
|
-
<li class="tsd-description">
|
|
1146
|
-
<div class="tsd-comment tsd-typography"><p>Returns the title of the current playing media</p>
|
|
1147
|
-
</div>
|
|
1148
|
-
<div class="tsd-parameters">
|
|
1149
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1150
|
-
<ul class="tsd-parameter-list">
|
|
1151
|
-
<li>
|
|
1152
|
-
<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>
|
|
1153
|
-
<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">
|
|
1154
|
-
<ul>
|
|
1155
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L287">src/lib/device.ts:287</a></li></ul></aside></li></ul></section>
|
|
1156
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getTotalTime" class="tsd-anchor"></a>
|
|
1157
|
-
<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>
|
|
1158
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
1159
|
-
<li class="tsd-signature tsd-anchor-link" id="getTotalTime.getTotalTime-1">get<wbr/>Total<wbr/>Time<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVGetStateOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVGetStateOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><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><a href="#getTotalTime.getTotalTime-1" 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></li>
|
|
1160
|
-
<li class="tsd-description">
|
|
1161
|
-
<div class="tsd-comment tsd-typography"><p>Returns the media length of the current playing media</p>
|
|
1162
|
-
</div>
|
|
1163
|
-
<div class="tsd-parameters">
|
|
1164
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1165
|
-
<ul class="tsd-parameter-list">
|
|
1166
|
-
<li>
|
|
1167
|
-
<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>
|
|
1168
|
-
<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">
|
|
1169
|
-
<ul>
|
|
1170
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/680d1de/src/lib/device.ts#L327">src/lib/device.ts:327</a></li></ul></aside></li></ul></section></section></div>
|
|
1171
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
1172
|
-
<div class="tsd-navigation settings">
|
|
1173
|
-
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
1174
|
-
<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> Settings</h3></summary>
|
|
1175
|
-
<div class="tsd-accordion-details">
|
|
1176
|
-
<div class="tsd-filter-visibility">
|
|
1177
|
-
<h4 class="uppercase">Member Visibility</h4><form>
|
|
1178
|
-
<ul id="tsd-filter-options">
|
|
1179
|
-
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
|
|
1180
|
-
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
|
|
1181
|
-
<div class="tsd-theme-toggle">
|
|
1182
|
-
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
1183
|
-
<nav class="tsd-navigation primary">
|
|
1184
|
-
<details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
|
|
1185
|
-
<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>
|
|
1186
|
-
<div class="tsd-accordion-details">
|
|
1187
|
-
<ul>
|
|
1188
|
-
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v6.0.0-<wbr/>develop.2</a>
|
|
1189
|
-
<ul></ul></li></ul></div></details></nav>
|
|
1190
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
1191
|
-
<ul>
|
|
1192
|
-
<li class="current tsd-kind-class"><a href="NodePyATVDevice.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg><span>Node<wbr/>PyATVDevice</span></a>
|
|
1193
|
-
<ul>
|
|
1194
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="NodePyATVDevice.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-512-path"></use><use href="#icon-512-text"></use></svg>constructor</a></li>
|
|
1195
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#debug" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>debug</a></li>
|
|
1196
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#host" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>host</a></li>
|
|
1197
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#id" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>id</a></li>
|
|
1198
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#model" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>model</a></li>
|
|
1199
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#modelName" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>model<wbr/>Name</a></li>
|
|
1200
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#name" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>name</a></li>
|
|
1201
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#os" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>os</a></li>
|
|
1202
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#protocol" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>protocol</a></li>
|
|
1203
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#services" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>services</a></li>
|
|
1204
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#version" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>version</a></li>
|
|
1205
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#addListener" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>add<wbr/>Listener</a></li>
|
|
1206
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#clearState" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>clear<wbr/>State</a></li>
|
|
1207
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#down" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>down</a></li>
|
|
1208
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#emit" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>emit</a></li>
|
|
1209
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#eventNames" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>event<wbr/>Names</a></li>
|
|
1210
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getAlbum" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Album</a></li>
|
|
1211
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getApp" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>App</a></li>
|
|
1212
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getAppId" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>App<wbr/>Id</a></li>
|
|
1213
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getArtist" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Artist</a></li>
|
|
1214
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getDateTime" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Date<wbr/>Time</a></li>
|
|
1215
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getDeviceState" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Device<wbr/>State</a></li>
|
|
1216
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getGenre" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Genre</a></li>
|
|
1217
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getHash" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Hash</a></li>
|
|
1218
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getMaxListeners" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Max<wbr/>Listeners</a></li>
|
|
1219
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getMediaType" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Media<wbr/>Type</a></li>
|
|
1220
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getPosition" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Position</a></li>
|
|
1221
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getRepeat" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Repeat</a></li>
|
|
1222
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getShuffle" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Shuffle</a></li>
|
|
1223
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getState" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>State</a></li>
|
|
1224
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getTitle" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Title</a></li>
|
|
1225
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#getTotalTime" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Total<wbr/>Time</a></li>
|
|
1226
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#home" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>home</a></li>
|
|
1227
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#homeHold" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>home<wbr/>Hold</a></li>
|
|
1228
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#launchApp" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>launch<wbr/>App</a></li>
|
|
1229
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#left" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>left</a></li>
|
|
1230
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#listApps" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>list<wbr/>Apps</a></li>
|
|
1231
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#listenerCount" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>listener<wbr/>Count</a></li>
|
|
1232
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#listeners" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>listeners</a></li>
|
|
1233
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#menu" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>menu</a></li>
|
|
1234
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#next" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>next</a></li>
|
|
1235
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#off" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>off</a></li>
|
|
1236
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#on" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>on</a></li>
|
|
1237
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#once" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>once</a></li>
|
|
1238
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#pause" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>pause</a></li>
|
|
1239
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#play" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>play</a></li>
|
|
1240
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#playPause" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>play<wbr/>Pause</a></li>
|
|
1241
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#prependListener" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>prepend<wbr/>Listener</a></li>
|
|
1242
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#prependOnceListener" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>prepend<wbr/>Once<wbr/>Listener</a></li>
|
|
1243
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#pressKey" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>press<wbr/>Key</a></li>
|
|
1244
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#previous" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>previous</a></li>
|
|
1245
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#rawListeners" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>raw<wbr/>Listeners</a></li>
|
|
1246
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#removeAllListeners" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>remove<wbr/>All<wbr/>Listeners</a></li>
|
|
1247
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#removeListener" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>remove<wbr/>Listener</a></li>
|
|
1248
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#right" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>right</a></li>
|
|
1249
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#select" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>select</a></li>
|
|
1250
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#setMaxListeners" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>set<wbr/>Max<wbr/>Listeners</a></li>
|
|
1251
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#skipBackward" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>skip<wbr/>Backward</a></li>
|
|
1252
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#skipForward" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>skip<wbr/>Forward</a></li>
|
|
1253
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#stop" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>stop</a></li>
|
|
1254
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#suspend" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>suspend</a></li>
|
|
1255
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#toJSON" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>toJSON</a></li>
|
|
1256
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#toString" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>to<wbr/>String</a></li>
|
|
1257
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#topMenu" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>top<wbr/>Menu</a></li>
|
|
1258
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#turnOff" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>turn<wbr/>Off</a></li>
|
|
1259
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#turnOn" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>turn<wbr/>On</a></li>
|
|
1260
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#up" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>up</a></li>
|
|
1261
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#volumeDown" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>volume<wbr/>Down</a></li>
|
|
1262
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#volumeUp" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>volume<wbr/>Up</a></li>
|
|
1263
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#wakeup" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>wakeup</a></li></ul></li></ul></nav></div></div>
|
|
1264
|
-
<div class="container tsd-generator">
|
|
1265
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
1266
|
-
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|