@acrobits/ipc-sdk 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,421 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IPCManager | Acrobits IPC SDK</title><meta name="description" content="Documentation for Acrobits IPC SDK"/><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 defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-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">Acrobits IPC SDK</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-content">
13
+ <div class="tsd-page-title">
14
+ <ul class="tsd-breadcrumb">
15
+ <li><a href="../modules.html">Acrobits IPC SDK</a></li>
16
+ <li><a href="IPCManager.html">IPCManager</a></li></ul>
17
+ <h1>Class IPCManager</h1></div>
18
+ <section class="tsd-panel tsd-comment">
19
+ <div class="tsd-comment tsd-typography"><p>A class that manages the IPC communication between the <code>Client</code> and the <code>Host</code>.</p>
20
+ </div>
21
+ <div class="tsd-comment tsd-typography">
22
+ <h4>Remarks</h4><p>Ideally, there should only be one instance of the IPCManager in the app. It is recommended to
23
+ create the instance as a singleton and use it throughout the app.</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">IPCManager</span></li></ul></section><aside class="tsd-sources">
29
+ <ul>
30
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:27</li></ul></aside>
31
+ <section class="tsd-panel-group tsd-index-group">
32
+ <section class="tsd-panel tsd-index-panel">
33
+ <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
34
+ <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>
35
+ <div class="tsd-accordion-details">
36
+ <section class="tsd-index-section">
37
+ <h3 class="tsd-index-heading">Constructors</h3>
38
+ <div class="tsd-index-list"><a href="IPCManager.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></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)"></path></g></svg><span>constructor</span></a>
39
+ </div></section>
40
+ <section class="tsd-index-section">
41
+ <h3 class="tsd-index-heading">Properties</h3>
42
+ <div class="tsd-index-list"><a href="IPCManager.html#cloudId" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g></svg><span>cloud<wbr/>Id?</span></a>
43
+ <a href="IPCManager.html#helper" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>helper</span></a>
44
+ <a href="IPCManager.html#host" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>host?</span></a>
45
+ <a href="IPCManager.html#listeners" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>listeners</span></a>
46
+ <a href="IPCManager.html#logger" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>logger</span></a>
47
+ </div></section>
48
+ <section class="tsd-index-section">
49
+ <h3 class="tsd-index-heading">Accessors</h3>
50
+ <div class="tsd-index-list"><a href="IPCManager.html#context" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></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)"></path></g></svg><span>context</span></a>
51
+ <a href="IPCManager.html#isConnected" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>is<wbr/>Connected</span></a>
52
+ <a href="IPCManager.html#negotiatedVersion" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>negotiated<wbr/>Version</span></a>
53
+ </div></section>
54
+ <section class="tsd-index-section">
55
+ <h3 class="tsd-index-heading">Methods</h3>
56
+ <div class="tsd-index-list"><a href="IPCManager.html#_evaluateContext" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></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)"></path></g></svg><span>#evaluate<wbr/>Context</span></a>
57
+ <a href="IPCManager.html#badgeUpdate" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>badge<wbr/>Update</span></a>
58
+ <a href="IPCManager.html#determineContext" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>determine<wbr/>Context</span></a>
59
+ <a href="IPCManager.html#initiateConnection" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>initiate<wbr/>Connection</span></a>
60
+ <a href="IPCManager.html#matchContacts" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>match<wbr/>Contacts</span></a>
61
+ <a href="IPCManager.html#onBadgeQueryRequest" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>on<wbr/>Badge<wbr/>Query<wbr/>Request</span></a>
62
+ <a href="IPCManager.html#onHostInForeground" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>on<wbr/>Host<wbr/>In<wbr/>Foreground</span></a>
63
+ <a href="IPCManager.html#requestPushToken" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>request<wbr/>Push<wbr/>Token</span></a>
64
+ <a href="IPCManager.html#selectContacts" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>select<wbr/>Contacts</span></a>
65
+ </div></section></div></details></section></section>
66
+ <section class="tsd-panel-group tsd-member-group">
67
+ <h2>Constructors</h2>
68
+ <section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a>
69
+ <h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" id="icon-anchor"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></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"></path></g></svg></a></h3>
70
+ <ul class="tsd-signatures">
71
+ <li class="tsd-signature tsd-anchor-link" id="constructor.new_IPCManager"><span class="tsd-kind-constructor-signature">new IPCManager</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">logger</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="IPCManager.html" class="tsd-signature-type tsd-kind-class">IPCManager</a><a href="#constructor.new_IPCManager" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
72
+ <li class="tsd-description">
73
+ <div class="tsd-comment tsd-typography"><p>A class that manages the IPC communication between the <code>Client</code> and the <code>Host</code>.</p>
74
+ </div>
75
+ <div class="tsd-parameters">
76
+ <h4 class="tsd-parameters-title">Parameters</h4>
77
+ <ul class="tsd-parameter-list">
78
+ <li>
79
+ <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">logger</span>: <a href="../interfaces/ILogger.html" class="tsd-signature-type tsd-kind-interface">ILogger</a></h5>
80
+ <div class="tsd-comment tsd-typography"><p>An optional logger instance to use for logging. If not provided, a default logger
81
+ will be used.</p>
82
+ </div>
83
+ <div class="tsd-comment tsd-typography"></div></li></ul></div>
84
+ <h4 class="tsd-returns-title">Returns <a href="IPCManager.html" class="tsd-signature-type tsd-kind-class">IPCManager</a></h4>
85
+ <div class="tsd-comment tsd-typography">
86
+ <h4>Remarks</h4><p>Ideally, there should only be one instance of the IPCManager in the app. It is recommended to
87
+ create the instance as a singleton and use it throughout the app.</p>
88
+ </div><aside class="tsd-sources">
89
+ <ul>
90
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:75</li></ul></aside></li></ul></section></section>
91
+ <section class="tsd-panel-group tsd-member-group">
92
+ <h2>Properties</h2>
93
+ <section class="tsd-panel tsd-member"><a id="cloudId" class="tsd-anchor"></a>
94
+ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>cloud<wbr/>Id</span><a href="#cloudId" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
95
+ <div class="tsd-signature"><span class="tsd-kind-property">cloud<wbr/>Id</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
96
+ <div class="tsd-comment tsd-typography"><p>The cloud ID of the <code>Host</code> app the <code>Client</code> is embedded in.</p>
97
+ </div>
98
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
99
+ <ul>
100
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:36</li></ul></aside></section>
101
+ <section class="tsd-panel tsd-member tsd-is-private"><a id="helper" class="tsd-anchor"></a>
102
+ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>helper</span><a href="#helper" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
103
+ <div class="tsd-signature"><span class="tsd-kind-property">helper</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">IpcHelper</span></div><aside class="tsd-sources">
104
+ <ul>
105
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:39</li></ul></aside></section>
106
+ <section class="tsd-panel tsd-member"><a id="host" class="tsd-anchor"></a>
107
+ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>host</span><a href="#host" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
108
+ <div class="tsd-signature"><span class="tsd-kind-property">host</span><span class="tsd-signature-symbol">?:</span> <a href="../types/HostType.html" class="tsd-signature-type tsd-kind-type-alias">HostType</a></div>
109
+ <div class="tsd-comment tsd-typography"><p>The type of the <code>Host</code> app the <code>Client</code> is embedded in.</p>
110
+ </div>
111
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
112
+ <ul>
113
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:31</li></ul></aside></section>
114
+ <section class="tsd-panel tsd-member tsd-is-private"><a id="listeners" class="tsd-anchor"></a>
115
+ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>listeners</span><a href="#listeners" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
116
+ <div class="tsd-signature"><span class="tsd-kind-property">listeners</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">Map</span><span class="tsd-signature-symbol">&lt;</span><a href="../enums/IPCEvents.html" class="tsd-signature-type tsd-kind-enum">IPCEvents</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type ">Set</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">args</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources">
117
+ <ul>
118
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:41</li></ul></aside></section>
119
+ <section class="tsd-panel tsd-member tsd-is-private"><a id="logger" class="tsd-anchor"></a>
120
+ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>logger</span><a href="#logger" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
121
+ <div class="tsd-signature"><span class="tsd-kind-property">logger</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/ILogger.html" class="tsd-signature-type tsd-kind-interface">ILogger</a></div><aside class="tsd-sources">
122
+ <ul>
123
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:38</li></ul></aside></section></section>
124
+ <section class="tsd-panel-group tsd-member-group">
125
+ <h2>Accessors</h2>
126
+ <section class="tsd-panel tsd-member"><a id="context" class="tsd-anchor"></a>
127
+ <h3 class="tsd-anchor-link"><span>context</span><a href="#context" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
128
+ <ul class="tsd-signatures">
129
+ <li class="tsd-signature" id="context.context-1"><span class="tsd-signature-symbol">get</span> context<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">&quot;host&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;standalone&quot;</span></li>
130
+ <li class="tsd-description">
131
+ <div class="tsd-comment tsd-typography"><p>Returns whether the app is running inside a native WebView (<code>host</code> context) or as a
132
+ <code>standalone</code> app.</p>
133
+ </div>
134
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;host&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;standalone&quot;</span></h4>
135
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
136
+ <ul>
137
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:47</li></ul></aside></li></ul></section>
138
+ <section class="tsd-panel tsd-member"><a id="isConnected" class="tsd-anchor"></a>
139
+ <h3 class="tsd-anchor-link"><span>is<wbr/>Connected</span><a href="#isConnected" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
140
+ <ul class="tsd-signatures">
141
+ <li class="tsd-signature" id="isConnected.isConnected-1"><span class="tsd-signature-symbol">get</span> isConnected<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
142
+ <li class="tsd-description">
143
+ <div class="tsd-comment tsd-typography"><p>Determines if the app is connected to a <code>Host</code> app.</p>
144
+ </div>
145
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
146
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
147
+ <ul>
148
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:54</li></ul></aside></li></ul></section>
149
+ <section class="tsd-panel tsd-member"><a id="negotiatedVersion" class="tsd-anchor"></a>
150
+ <h3 class="tsd-anchor-link"><span>negotiated<wbr/>Version</span><a href="#negotiatedVersion" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
151
+ <ul class="tsd-signatures">
152
+ <li class="tsd-signature" id="negotiatedVersion.negotiatedVersion-1"><span class="tsd-signature-symbol">get</span> negotiatedVersion<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/IpcProtocolVersion.html" class="tsd-signature-type tsd-kind-type-alias">IpcProtocolVersion</a></li>
153
+ <li class="tsd-description">
154
+ <div class="tsd-comment tsd-typography"><p>The negotiated IPC protocol version.</p>
155
+ </div>
156
+ <h4 class="tsd-returns-title">Returns <a href="../types/IpcProtocolVersion.html" class="tsd-signature-type tsd-kind-type-alias">IpcProtocolVersion</a></h4>
157
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
158
+ <ul>
159
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:61</li></ul></aside></li></ul></section></section>
160
+ <section class="tsd-panel-group tsd-member-group">
161
+ <h2>Methods</h2>
162
+ <section class="tsd-panel tsd-member tsd-is-private"><a id="_evaluateContext" class="tsd-anchor"></a>
163
+ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>#evaluate<wbr/>Context</span><a href="#_evaluateContext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
164
+ <ul class="tsd-signatures tsd-is-private">
165
+ <li class="tsd-signature tsd-anchor-link" id="_evaluateContext._evaluateContext-1"><span class="tsd-kind-call-signature">#evaluate<wbr/>Context</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">context</span><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">&quot;host&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;standalone&quot;</span><a href="#_evaluateContext._evaluateContext-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
166
+ <li class="tsd-description">
167
+ <div class="tsd-parameters">
168
+ <h4 class="tsd-parameters-title">Parameters</h4>
169
+ <ul class="tsd-parameter-list">
170
+ <li>
171
+ <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">context</span>: <span class="tsd-signature-type ">AppContext</span></h5></li></ul></div>
172
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;host&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;standalone&quot;</span></h4><aside class="tsd-sources">
173
+ <ul>
174
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:264</li></ul></aside></li></ul></section>
175
+ <section class="tsd-panel tsd-member"><a id="badgeUpdate" class="tsd-anchor"></a>
176
+ <h3 class="tsd-anchor-link"><span>badge<wbr/>Update</span><a href="#badgeUpdate" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
177
+ <ul class="tsd-signatures">
178
+ <li class="tsd-signature tsd-anchor-link" id="badgeUpdate.badgeUpdate-1"><span class="tsd-kind-call-signature">badge<wbr/>Update</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">count</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#badgeUpdate.badgeUpdate-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
179
+ <li class="tsd-description">
180
+ <div class="tsd-comment tsd-typography"><p>Sends the current badge count to the <code>Host</code> app.</p>
181
+ </div>
182
+ <div class="tsd-parameters">
183
+ <h4 class="tsd-parameters-title">Parameters</h4>
184
+ <ul class="tsd-parameter-list">
185
+ <li>
186
+ <h5><span class="tsd-kind-parameter">count</span>: <span class="tsd-signature-type">number</span></h5>
187
+ <div class="tsd-comment tsd-typography"><p>The count to update the badge to.</p>
188
+ </div>
189
+ <div class="tsd-comment tsd-typography"></div></li></ul></div>
190
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
191
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
192
+ <ul>
193
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:229</li></ul></aside></li></ul></section>
194
+ <section class="tsd-panel tsd-member"><a id="determineContext" class="tsd-anchor"></a>
195
+ <h3 class="tsd-anchor-link"><span>determine<wbr/>Context</span><a href="#determineContext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
196
+ <ul class="tsd-signatures">
197
+ <li class="tsd-signature tsd-anchor-link" id="determineContext.determineContext-1"><span class="tsd-kind-call-signature">determine<wbr/>Context</span><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">&lt;</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;host&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;standalone&quot;</span><span class="tsd-signature-symbol">&gt;</span><a href="#determineContext.determineContext-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
198
+ <li class="tsd-description">
199
+ <div class="tsd-comment tsd-typography"><p>Determines if the app is embedded in a Host app or native CSP clients.</p>
200
+ </div>
201
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;host&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;standalone&quot;</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A promise with <a href="../types/IPCContext.html" class="tsd-kind-type-alias">IPCContext</a> the app is running under.</p>
202
+
203
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
204
+ <ul>
205
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:98</li></ul></aside></li></ul></section>
206
+ <section class="tsd-panel tsd-member"><a id="initiateConnection" class="tsd-anchor"></a>
207
+ <h3 class="tsd-anchor-link"><span>initiate<wbr/>Connection</span><a href="#initiateConnection" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
208
+ <ul class="tsd-signatures">
209
+ <li class="tsd-signature tsd-anchor-link" id="initiateConnection.initiateConnection-1"><span class="tsd-kind-call-signature">initiate<wbr/>Connection</span><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">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#initiateConnection.initiateConnection-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
210
+ <li class="tsd-description">
211
+ <div class="tsd-comment tsd-typography"><p>Initiates the IPC handshake with the <code>Host</code> app.</p>
212
+ </div>
213
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
214
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
215
+ <ul>
216
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:109</li></ul></aside></li></ul></section>
217
+ <section class="tsd-panel tsd-member"><a id="matchContacts" class="tsd-anchor"></a>
218
+ <h3 class="tsd-anchor-link"><span>match<wbr/>Contacts</span><a href="#matchContacts" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
219
+ <ul class="tsd-signatures">
220
+ <li class="tsd-signature tsd-anchor-link" id="matchContacts.matchContacts-1"><span class="tsd-kind-call-signature">match<wbr/>Contacts</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">contacts</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">&lt;</span><a href="../interfaces/DetailedContactItem.html" class="tsd-signature-type tsd-kind-interface">DetailedContactItem</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#matchContacts.matchContacts-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
221
+ <li class="tsd-description">
222
+ <div class="tsd-comment tsd-typography"><p>Matches batch of <a href="../types/ContactItem.html" class="tsd-kind-type-alias">ContactItem</a> objects against the Host&#39;s contact list to fetch detailed
223
+ contact information.</p>
224
+ </div>
225
+ <div class="tsd-parameters">
226
+ <h4 class="tsd-parameters-title">Parameters</h4>
227
+ <ul class="tsd-parameter-list">
228
+ <li>
229
+ <h5><span class="tsd-kind-parameter">contacts</span>: <a href="../types/ContactItem.html" class="tsd-signature-type tsd-kind-type-alias">ContactItem</a><span class="tsd-signature-symbol">[]</span></h5>
230
+ <div class="tsd-comment tsd-typography"><p>List of <a href="../types/ContactItem.html" class="tsd-kind-type-alias">ContactItem</a> collection to match against the Host&#39;s contact
231
+ list.</p>
232
+ </div>
233
+ <div class="tsd-comment tsd-typography"></div></li></ul></div>
234
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DetailedContactItem.html" class="tsd-signature-type tsd-kind-interface">DetailedContactItem</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A collection of <a href="../interfaces/DetailedContactItem.html" class="tsd-kind-interface">DetailedContactItem</a> objects which were matched against the
235
+ Host&#39;s contact list.</p>
236
+
237
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
238
+ <ul>
239
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:209</li></ul></aside></li></ul></section>
240
+ <section class="tsd-panel tsd-member"><a id="onBadgeQueryRequest" class="tsd-anchor"></a>
241
+ <h3 class="tsd-anchor-link"><span>on<wbr/>Badge<wbr/>Query<wbr/>Request</span><a href="#onBadgeQueryRequest" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
242
+ <ul class="tsd-signatures">
243
+ <li class="tsd-signature tsd-anchor-link" id="onBadgeQueryRequest.onBadgeQueryRequest-1"><span class="tsd-kind-call-signature">on<wbr/>Badge<wbr/>Query<wbr/>Request</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/UnsubscribeCallback.html" class="tsd-signature-type tsd-kind-type-alias">UnsubscribeCallback</a><a href="#onBadgeQueryRequest.onBadgeQueryRequest-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
244
+ <li class="tsd-description">
245
+ <div class="tsd-comment tsd-typography"><p>Registers a callback to be invoked when a <a href="../enums/IPCEvents.html#BadgeQuery" class="tsd-kind-enum-member">BadgeQuery</a> is received.</p>
246
+ </div>
247
+ <div class="tsd-parameters">
248
+ <h4 class="tsd-parameters-title">Parameters</h4>
249
+ <ul class="tsd-parameter-list">
250
+ <li>
251
+ <h5><span class="tsd-kind-parameter">callback</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></h5>
252
+ <div class="tsd-comment tsd-typography"><p>A callback function to be invoked when a <a href="../enums/IPCEvents.html#BadgeQuery" class="tsd-kind-enum-member">BadgeQuery</a> event
253
+ is received.</p>
254
+ </div>
255
+ <div class="tsd-comment tsd-typography"></div>
256
+ <ul class="tsd-parameters">
257
+ <li class="tsd-parameter-signature">
258
+ <ul class="tsd-signatures">
259
+ <li class="tsd-signature"><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>
260
+ <li class="tsd-description">
261
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div>
262
+ <h4 class="tsd-returns-title">Returns <a href="../types/UnsubscribeCallback.html" class="tsd-signature-type tsd-kind-type-alias">UnsubscribeCallback</a></h4><p>An unsubscribe callback to remove the listener.</p>
263
+
264
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
265
+ <ul>
266
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:241</li></ul></aside></li></ul></section>
267
+ <section class="tsd-panel tsd-member"><a id="onHostInForeground" class="tsd-anchor"></a>
268
+ <h3 class="tsd-anchor-link"><span>on<wbr/>Host<wbr/>In<wbr/>Foreground</span><a href="#onHostInForeground" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
269
+ <ul class="tsd-signatures">
270
+ <li class="tsd-signature tsd-anchor-link" id="onHostInForeground.onHostInForeground-1"><span class="tsd-kind-call-signature">on<wbr/>Host<wbr/>In<wbr/>Foreground</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/UnsubscribeCallback.html" class="tsd-signature-type tsd-kind-type-alias">UnsubscribeCallback</a><a href="#onHostInForeground.onHostInForeground-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
271
+ <li class="tsd-description">
272
+ <div class="tsd-comment tsd-typography"><p>Registers a callback to be invoked when a <a href="../enums/IPCEvents.html#HostInForeground" class="tsd-kind-enum-member">HostInForeground</a> event is received.</p>
273
+ </div>
274
+ <div class="tsd-parameters">
275
+ <h4 class="tsd-parameters-title">Parameters</h4>
276
+ <ul class="tsd-parameter-list">
277
+ <li>
278
+ <h5><span class="tsd-kind-parameter">callback</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></h5>
279
+ <div class="tsd-comment tsd-typography"><p>A callback function to be invoked when a <a href="../enums/IPCEvents.html#HostInForeground" class="tsd-kind-enum-member">HostInForeground</a>
280
+ event is received.</p>
281
+ </div>
282
+ <div class="tsd-comment tsd-typography"></div>
283
+ <ul class="tsd-parameters">
284
+ <li class="tsd-parameter-signature">
285
+ <ul class="tsd-signatures">
286
+ <li class="tsd-signature"><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>
287
+ <li class="tsd-description">
288
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div>
289
+ <h4 class="tsd-returns-title">Returns <a href="../types/UnsubscribeCallback.html" class="tsd-signature-type tsd-kind-type-alias">UnsubscribeCallback</a></h4><p>An unsubscribe callback to remove the listener.</p>
290
+
291
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
292
+ <ul>
293
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:256</li></ul></aside></li></ul></section>
294
+ <section class="tsd-panel tsd-member"><a id="requestPushToken" class="tsd-anchor"></a>
295
+ <h3 class="tsd-anchor-link"><span>request<wbr/>Push<wbr/>Token</span><a href="#requestPushToken" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
296
+ <ul class="tsd-signatures">
297
+ <li class="tsd-signature tsd-anchor-link" id="requestPushToken.requestPushToken-1"><span class="tsd-kind-call-signature">request<wbr/>Push<wbr/>Token</span><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">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><a href="#requestPushToken.requestPushToken-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
298
+ <li class="tsd-description">
299
+ <div class="tsd-comment tsd-typography"><p>Requests the <code>Host</code> app to provide the Push Token for the current device.</p>
300
+ </div>
301
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A promise with the Push Token as <code>string</code>.</p>
302
+
303
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
304
+ <ul>
305
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:219</li></ul></aside></li></ul></section>
306
+ <section class="tsd-panel tsd-member"><a id="selectContacts" class="tsd-anchor"></a>
307
+ <h3 class="tsd-anchor-link"><span>select<wbr/>Contacts</span><a href="#selectContacts" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
308
+ <ul class="tsd-signatures">
309
+ <li class="tsd-signature tsd-anchor-link" id="selectContacts.selectContacts-1"><span class="tsd-kind-call-signature">select<wbr/>Contacts</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">corelationId</span>, <span class="tsd-kind-parameter">mode</span><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">&lt;</span><a href="../types/ContactItem.html" class="tsd-signature-type tsd-kind-type-alias">ContactItem</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#selectContacts.selectContacts-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
310
+ <li class="tsd-description">
311
+ <div class="tsd-comment tsd-typography"><p>Requests the <code>Host</code> app to open the contact selection UI.</p>
312
+ </div>
313
+ <div class="tsd-parameters">
314
+ <h4 class="tsd-parameters-title">Parameters</h4>
315
+ <ul class="tsd-parameter-list">
316
+ <li>
317
+ <h5><span class="tsd-kind-parameter">corelationId</span>: <span class="tsd-signature-type">number</span></h5>
318
+ <div class="tsd-comment tsd-typography"><p>An identifier for the message stream</p>
319
+ </div>
320
+ <div class="tsd-comment tsd-typography"></div></li>
321
+ <li>
322
+ <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">mode</span>: <span class="tsd-signature-type">&quot;single&quot;</span></h5>
323
+ <div class="tsd-comment tsd-typography"><p><em>Optional</em>. Whether to allow <code>single</code> or <code>multi</code> contact selection.</p>
324
+ </div>
325
+ <div class="tsd-comment tsd-typography"></div></li></ul></div>
326
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/ContactItem.html" class="tsd-signature-type tsd-kind-type-alias">ContactItem</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A collection of <a href="../types/ContactItem.html" class="tsd-kind-type-alias">ContactItem</a> objects which the user selected along with the
327
+ <code>corelationId</code>.</p>
328
+
329
+ <div class="tsd-comment tsd-typography">
330
+ <h4>Remarks</h4><p>When requesting a <code>single</code> contact, the <code>Host</code> app will return immediately
331
+ after contact selection.</p>
332
+ </div><aside class="tsd-sources">
333
+ <ul>
334
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:153</li></ul></aside></li>
335
+ <li class="tsd-signature tsd-anchor-link" id="selectContacts.selectContacts-2"><span class="tsd-kind-call-signature">select<wbr/>Contacts</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">streamId</span>, <span class="tsd-kind-parameter">mode</span>, <span class="tsd-kind-parameter">currentContacts</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">&lt;</span><a href="../types/ContactItem.html" class="tsd-signature-type tsd-kind-type-alias">ContactItem</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#selectContacts.selectContacts-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
336
+ <li class="tsd-description">
337
+ <div class="tsd-comment tsd-typography"><p>Requests the <code>Host</code> app to open the contact selection UI.</p>
338
+ </div>
339
+ <div class="tsd-parameters">
340
+ <h4 class="tsd-parameters-title">Parameters</h4>
341
+ <ul class="tsd-parameter-list">
342
+ <li>
343
+ <h5><span class="tsd-kind-parameter">streamId</span>: <span class="tsd-signature-type">number</span></h5></li>
344
+ <li>
345
+ <h5><span class="tsd-kind-parameter">mode</span>: <span class="tsd-signature-type">&quot;multi&quot;</span></h5>
346
+ <div class="tsd-comment tsd-typography"><p>Whether to allow <code>single</code> or <code>multi</code> contact selection.</p>
347
+ </div>
348
+ <div class="tsd-comment tsd-typography"></div></li>
349
+ <li>
350
+ <h5><span class="tsd-kind-parameter">currentContacts</span>: <a href="../types/ContactItem.html" class="tsd-signature-type tsd-kind-type-alias">ContactItem</a><span class="tsd-signature-symbol">[]</span></h5>
351
+ <div class="tsd-comment tsd-typography"><p>A list of <a href="../types/ContactItem.html" class="tsd-kind-type-alias">ContactItem</a> objects that are currently selected.
352
+ This is used to highlight the current contacts from the selection UI.</p>
353
+ </div>
354
+ <div class="tsd-comment tsd-typography"></div></li></ul></div>
355
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/ContactItem.html" class="tsd-signature-type tsd-kind-type-alias">ContactItem</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A collection of <a href="../types/ContactItem.html" class="tsd-kind-type-alias">ContactItem</a> objects which the user selected along with the
356
+ <code>corelationId</code>.</p>
357
+
358
+ <div class="tsd-comment tsd-typography">
359
+ <h4>Remarks</h4><p>When requesting a <code>multi</code> contact, the user will have to manually close the contact selection
360
+ UI. The <code>Host</code> app will return the selected contacts when the user closes the UI.</p>
361
+ <p>When requesting a <code>multi</code> contact, the <code>currentContacts</code> parameter is required. This will
362
+ be used to highlight the contacts that are already selected.</p>
363
+ </div><aside class="tsd-sources">
364
+ <ul>
365
+ <li>Defined in ipc-sdk/src/lib/sdk.ts:173</li></ul></aside></li></ul></section></section></div>
366
+ <div class="col-sidebar">
367
+ <div class="page-menu">
368
+ <div class="tsd-navigation settings">
369
+ <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
370
+ <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)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
371
+ <div class="tsd-accordion-details">
372
+ <div class="tsd-filter-visibility">
373
+ <h4 class="uppercase">Member Visibility</h4><form>
374
+ <ul id="tsd-filter-options">
375
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><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>Protected</span></label></li>
376
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><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>Private</span></label></li>
377
+ <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>
378
+ <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>
379
+ <div class="tsd-theme-toggle">
380
+ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
381
+ <details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
382
+ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary>
383
+ <div class="tsd-accordion-details">
384
+ <ul>
385
+ <li><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-512"></use></svg><span>constructor</span></a></li>
386
+ <li><a href="#cloudId" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>cloud<wbr/>Id</span></a></li>
387
+ <li><a href="#helper" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>helper</span></a></li>
388
+ <li><a href="#host" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>host</span></a></li>
389
+ <li><a href="#listeners" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>listeners</span></a></li>
390
+ <li><a href="#logger" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>logger</span></a></li>
391
+ <li><a href="#context" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>context</span></a></li>
392
+ <li><a href="#isConnected" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>is<wbr/>Connected</span></a></li>
393
+ <li><a href="#negotiatedVersion" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>negotiated<wbr/>Version</span></a></li>
394
+ <li><a href="#_evaluateContext" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>#evaluate<wbr/>Context</span></a></li>
395
+ <li><a href="#badgeUpdate" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>badge<wbr/>Update</span></a></li>
396
+ <li><a href="#determineContext" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>determine<wbr/>Context</span></a></li>
397
+ <li><a href="#initiateConnection" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>initiate<wbr/>Connection</span></a></li>
398
+ <li><a href="#matchContacts" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>match<wbr/>Contacts</span></a></li>
399
+ <li><a href="#onBadgeQueryRequest" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>on<wbr/>Badge<wbr/>Query<wbr/>Request</span></a></li>
400
+ <li><a href="#onHostInForeground" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>on<wbr/>Host<wbr/>In<wbr/>Foreground</span></a></li>
401
+ <li><a href="#requestPushToken" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>request<wbr/>Push<wbr/>Token</span></a></li>
402
+ <li><a href="#selectContacts" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>select<wbr/>Contacts</span></a></li></ul></div></details></div>
403
+ <div class="site-menu">
404
+ <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>Acrobits IPC SDK</span></a>
405
+ <ul class="tsd-small-nested-navigation">
406
+ <li><a href="../enums/IPCEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g></svg><span>IPCEvents</span></a></li>
407
+ <li><a href="IPCManager.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><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"></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)"></path></g></svg><span>IPCManager</span></a></li>
408
+ <li><a href="../interfaces/BaseContactItem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g></svg><span>Base<wbr/>Contact<wbr/>Item</span></a></li>
409
+ <li><a href="../interfaces/CloudUsernameContactItem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Cloud<wbr/>Username<wbr/>Contact<wbr/>Item</span></a></li>
410
+ <li><a href="../interfaces/DetailedContactItem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Detailed<wbr/>Contact<wbr/>Item</span></a></li>
411
+ <li><a href="../interfaces/ILogger.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>ILogger</span></a></li>
412
+ <li><a href="../interfaces/SipUriContactItem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Sip<wbr/>Uri<wbr/>Contact<wbr/>Item</span></a></li>
413
+ <li><a href="../types/ContactItem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g></svg><span>Contact<wbr/>Item</span></a></li>
414
+ <li><a href="../types/ContactLabel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Contact<wbr/>Label</span></a></li>
415
+ <li><a href="../types/HostType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Host<wbr/>Type</span></a></li>
416
+ <li><a href="../types/IPCContext.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>IPCContext</span></a></li>
417
+ <li><a href="../types/IpcProtocolVersion.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Ipc<wbr/>Protocol<wbr/>Version</span></a></li>
418
+ <li><a href="../types/UnsubscribeCallback.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Unsubscribe<wbr/>Callback</span></a></li></ul></nav></div></div></div>
419
+ <div class="tsd-generator">
420
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
421
+ <div class="overlay"></div></body></html>