@snap/push2web 0.11.0 → 0.12.0
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/Push2WebSDKExtension.js +1 -1
- package/dist/generated-api-client/camera_kit/v3/export.d.ts +0 -59
- package/dist/generated-api-client/camera_kit/v3/export.js +0 -10
- package/dist/generated-api-client/camera_kit/v3/lens.d.ts +0 -55
- package/dist/generated-api-client/camera_kit/v3/lens.js +0 -12
- package/dist/generated-api-client/camera_kit/v3/push_to_device.d.ts +0 -58
- package/dist/generated-api-client/camera_kit/v3/push_to_device.js +0 -16
- package/dist/generated-api-client/core/snap_status_code.d.ts +0 -209
- package/dist/generated-api-client/core/snap_status_code.js +0 -200
- package/dist/generated-api-client/google/protobuf/any.d.ts +0 -105
- package/dist/generated-api-client/google/protobuf/any.js +0 -1
- package/docs/html/.nojekyll +1 -0
- package/docs/html/assets/highlight.css +78 -0
- package/docs/html/assets/main.js +58 -0
- package/docs/html/assets/search.js +1 -0
- package/docs/html/assets/style.css +1367 -0
- package/docs/html/classes/Push2Web.html +159 -0
- package/docs/html/enums/Code.html +198 -0
- package/docs/html/enums/ListenLensPushResponse_ExcludedLens_Code.html +98 -0
- package/docs/html/enums/State.html +79 -0
- package/docs/html/index.html +89 -0
- package/docs/html/interfaces/Lens.html +143 -0
- package/docs/html/modules.html +68 -0
- package/docs/html/types/CommunicationErrorEvent.html +76 -0
- package/docs/html/types/ErrorEvent.html +50 -0
- package/docs/html/types/GenericErrorEvent.html +66 -0
- package/docs/html/types/LensExcludedErrorEvent.html +76 -0
- package/docs/html/types/LensReceivedEvent.html +50 -0
- package/docs/html/types/Push2WebEvents.html +50 -0
- package/docs/html/types/SubscriptionChangedEvent.html +50 -0
- package/docs/html/types/SubscriptionInstance.html +80 -0
- package/docs/md/.nojekyll +1 -0
- package/docs/md/README.md +68 -0
- package/docs/md/classes/Push2Web.md +106 -0
- package/docs/md/enums/Code.md +197 -0
- package/docs/md/enums/ListenLensPushResponse_ExcludedLens_Code.md +57 -0
- package/docs/md/enums/State.md +26 -0
- package/docs/md/interfaces/Lens.md +95 -0
- package/docs/md/modules.md +118 -0
- package/package.json +4 -3
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ListenLensPushResponse_ExcludedLens_Code | CameraKit Web SDK - Push 2 Web - v0.12.0</title><meta name="description" content="Documentation for CameraKit Web SDK - Push 2 Web"/><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">CameraKit Web SDK - Push 2 Web - v0.12.0</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">CameraKit Web SDK - Push 2 Web</a></li>
|
|
16
|
+
<li><a href="ListenLensPushResponse_ExcludedLens_Code.html">ListenLensPushResponse_ExcludedLens_Code</a></li></ul>
|
|
17
|
+
<h1>Enumeration ListenLensPushResponse_ExcludedLens_Code</h1></div>
|
|
18
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
19
|
+
<section class="tsd-panel tsd-index-panel">
|
|
20
|
+
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
21
|
+
<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>
|
|
22
|
+
<div class="tsd-accordion-details">
|
|
23
|
+
<section class="tsd-index-section">
|
|
24
|
+
<h3 class="tsd-index-heading">Enumeration Members</h3>
|
|
25
|
+
<div class="tsd-index-list"><a href="ListenLensPushResponse_ExcludedLens_Code.html#UNSET" 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>UNSET</span></a>
|
|
26
|
+
<a href="ListenLensPushResponse_ExcludedLens_Code.html#UNKNOWN" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>UNKNOWN</span></a>
|
|
27
|
+
<a href="ListenLensPushResponse_ExcludedLens_Code.html#NOT_FOUND" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>NOT_<wbr/>FOUND</span></a>
|
|
28
|
+
<a href="ListenLensPushResponse_ExcludedLens_Code.html#INCOMPATIBLE_LENS_CORE_VERSION" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>INCOMPATIBLE_<wbr/>LENS_<wbr/>CORE_<wbr/>VERSION</span></a>
|
|
29
|
+
<a href="ListenLensPushResponse_ExcludedLens_Code.html#ARCHIVED_OR_INVISIBLE" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>ARCHIVED_<wbr/>OR_<wbr/>INVISIBLE</span></a>
|
|
30
|
+
<a href="ListenLensPushResponse_ExcludedLens_Code.html#CONTAINS_MUSIC" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>CONTAINS_<wbr/>MUSIC</span></a>
|
|
31
|
+
<a href="ListenLensPushResponse_ExcludedLens_Code.html#UNRECOGNIZED" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>UNRECOGNIZED</span></a>
|
|
32
|
+
</div></section></div></details></section></section>
|
|
33
|
+
<section class="tsd-panel-group tsd-member-group">
|
|
34
|
+
<h2>Enumeration Members</h2>
|
|
35
|
+
<section class="tsd-panel tsd-member"><a id="UNSET" class="tsd-anchor"></a>
|
|
36
|
+
<h3 class="tsd-anchor-link"><span>UNSET</span><a href="#UNSET" 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>
|
|
37
|
+
<div class="tsd-signature"><span class="tsd-kind-enum-member">UNSET</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"UNSET"</span></div></section>
|
|
38
|
+
<section class="tsd-panel tsd-member"><a id="UNKNOWN" class="tsd-anchor"></a>
|
|
39
|
+
<h3 class="tsd-anchor-link"><span>UNKNOWN</span><a href="#UNKNOWN" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
40
|
+
<div class="tsd-signature"><span class="tsd-kind-enum-member">UNKNOWN</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"UNKNOWN"</span></div></section>
|
|
41
|
+
<section class="tsd-panel tsd-member"><a id="NOT_FOUND" class="tsd-anchor"></a>
|
|
42
|
+
<h3 class="tsd-anchor-link"><span>NOT_<wbr/>FOUND</span><a href="#NOT_FOUND" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
43
|
+
<div class="tsd-signature"><span class="tsd-kind-enum-member">NOT_<wbr/>FOUND</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"NOT_FOUND"</span></div></section>
|
|
44
|
+
<section class="tsd-panel tsd-member"><a id="INCOMPATIBLE_LENS_CORE_VERSION" class="tsd-anchor"></a>
|
|
45
|
+
<h3 class="tsd-anchor-link"><span>INCOMPATIBLE_<wbr/>LENS_<wbr/>CORE_<wbr/>VERSION</span><a href="#INCOMPATIBLE_LENS_CORE_VERSION" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
46
|
+
<div class="tsd-signature"><span class="tsd-kind-enum-member">INCOMPATIBLE_<wbr/>LENS_<wbr/>CORE_<wbr/>VERSION</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"INCOMPATIBLE_LENS_CORE_VERSION"</span></div></section>
|
|
47
|
+
<section class="tsd-panel tsd-member"><a id="ARCHIVED_OR_INVISIBLE" class="tsd-anchor"></a>
|
|
48
|
+
<h3 class="tsd-anchor-link"><span>ARCHIVED_<wbr/>OR_<wbr/>INVISIBLE</span><a href="#ARCHIVED_OR_INVISIBLE" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
49
|
+
<div class="tsd-signature"><span class="tsd-kind-enum-member">ARCHIVED_<wbr/>OR_<wbr/>INVISIBLE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"ARCHIVED_OR_INVISIBLE"</span></div></section>
|
|
50
|
+
<section class="tsd-panel tsd-member"><a id="CONTAINS_MUSIC" class="tsd-anchor"></a>
|
|
51
|
+
<h3 class="tsd-anchor-link"><span>CONTAINS_<wbr/>MUSIC</span><a href="#CONTAINS_MUSIC" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
52
|
+
<div class="tsd-signature"><span class="tsd-kind-enum-member">CONTAINS_<wbr/>MUSIC</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"CONTAINS_MUSIC"</span></div></section>
|
|
53
|
+
<section class="tsd-panel tsd-member"><a id="UNRECOGNIZED" class="tsd-anchor"></a>
|
|
54
|
+
<h3 class="tsd-anchor-link"><span>UNRECOGNIZED</span><a href="#UNRECOGNIZED" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
55
|
+
<div class="tsd-signature"><span class="tsd-kind-enum-member">UNRECOGNIZED</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"UNRECOGNIZED"</span></div></section></section></div>
|
|
56
|
+
<div class="col-sidebar">
|
|
57
|
+
<div class="page-menu">
|
|
58
|
+
<div class="tsd-navigation settings">
|
|
59
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
60
|
+
<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>
|
|
61
|
+
<div class="tsd-accordion-details">
|
|
62
|
+
<div class="tsd-filter-visibility">
|
|
63
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
64
|
+
<ul id="tsd-filter-options">
|
|
65
|
+
<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>
|
|
66
|
+
<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></ul></form></div>
|
|
67
|
+
<div class="tsd-theme-toggle">
|
|
68
|
+
<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>
|
|
69
|
+
<details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
|
|
70
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary>
|
|
71
|
+
<div class="tsd-accordion-details">
|
|
72
|
+
<ul>
|
|
73
|
+
<li><a href="#UNSET" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>UNSET</span></a></li>
|
|
74
|
+
<li><a href="#UNKNOWN" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>UNKNOWN</span></a></li>
|
|
75
|
+
<li><a href="#NOT_FOUND" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>NOT_<wbr/>FOUND</span></a></li>
|
|
76
|
+
<li><a href="#INCOMPATIBLE_LENS_CORE_VERSION" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>INCOMPATIBLE_<wbr/>LENS_<wbr/>CORE_<wbr/>VERSION</span></a></li>
|
|
77
|
+
<li><a href="#ARCHIVED_OR_INVISIBLE" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>ARCHIVED_<wbr/>OR_<wbr/>INVISIBLE</span></a></li>
|
|
78
|
+
<li><a href="#CONTAINS_MUSIC" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>CONTAINS_<wbr/>MUSIC</span></a></li>
|
|
79
|
+
<li><a href="#UNRECOGNIZED" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>UNRECOGNIZED</span></a></li></ul></div></details></div>
|
|
80
|
+
<div class="site-menu">
|
|
81
|
+
<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>Camera<wbr/>Kit <wbr/>Web SDK -<wbr/> <wbr/>Push 2 <wbr/>Web -<wbr/> v0.12.0</span></a>
|
|
82
|
+
<ul class="tsd-small-nested-navigation">
|
|
83
|
+
<li><a href="State.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>State</span></a></li>
|
|
84
|
+
<li><a href="ListenLensPushResponse_ExcludedLens_Code.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Listen<wbr/>Lens<wbr/>Push<wbr/>Response_<wbr/>Excluded<wbr/>Lens_<wbr/>Code</span></a></li>
|
|
85
|
+
<li><a href="Code.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Code</span></a></li>
|
|
86
|
+
<li><a href="../classes/Push2Web.html"><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>Push2<wbr/>Web</span></a></li>
|
|
87
|
+
<li><a href="../interfaces/Lens.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>Lens</span></a></li>
|
|
88
|
+
<li><a href="../types/GenericErrorEvent.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>Generic<wbr/>Error<wbr/>Event</span></a></li>
|
|
89
|
+
<li><a href="../types/CommunicationErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Communication<wbr/>Error<wbr/>Event</span></a></li>
|
|
90
|
+
<li><a href="../types/LensExcludedErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Lens<wbr/>Excluded<wbr/>Error<wbr/>Event</span></a></li>
|
|
91
|
+
<li><a href="../types/SubscriptionInstance.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Subscription<wbr/>Instance</span></a></li>
|
|
92
|
+
<li><a href="../types/ErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Error<wbr/>Event</span></a></li>
|
|
93
|
+
<li><a href="../types/LensReceivedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Lens<wbr/>Received<wbr/>Event</span></a></li>
|
|
94
|
+
<li><a href="../types/SubscriptionChangedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Subscription<wbr/>Changed<wbr/>Event</span></a></li>
|
|
95
|
+
<li><a href="../types/Push2WebEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Push2<wbr/>Web<wbr/>Events</span></a></li></ul></nav></div></div></div>
|
|
96
|
+
<div class="tsd-generator">
|
|
97
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
98
|
+
<div class="overlay"></div></body></html>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>State | CameraKit Web SDK - Push 2 Web - v0.12.0</title><meta name="description" content="Documentation for CameraKit Web SDK - Push 2 Web"/><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">CameraKit Web SDK - Push 2 Web - v0.12.0</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">CameraKit Web SDK - Push 2 Web</a></li>
|
|
16
|
+
<li><a href="State.html">State</a></li></ul>
|
|
17
|
+
<h1>Enumeration State</h1></div>
|
|
18
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
19
|
+
<section class="tsd-panel tsd-index-panel">
|
|
20
|
+
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
21
|
+
<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>
|
|
22
|
+
<div class="tsd-accordion-details">
|
|
23
|
+
<section class="tsd-index-section">
|
|
24
|
+
<h3 class="tsd-index-heading">Enumeration Members</h3>
|
|
25
|
+
<div class="tsd-index-list"><a href="State.html#Subscribed" 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>Subscribed</span></a>
|
|
26
|
+
<a href="State.html#Unsubscribed" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>Unsubscribed</span></a>
|
|
27
|
+
</div></section></div></details></section></section>
|
|
28
|
+
<section class="tsd-panel-group tsd-member-group">
|
|
29
|
+
<h2>Enumeration Members</h2>
|
|
30
|
+
<section class="tsd-panel tsd-member"><a id="Subscribed" class="tsd-anchor"></a>
|
|
31
|
+
<h3 class="tsd-anchor-link"><span>Subscribed</span><a href="#Subscribed" 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>
|
|
32
|
+
<div class="tsd-signature"><span class="tsd-kind-enum-member">Subscribed</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"Subscribed"</span></div>
|
|
33
|
+
<div class="tsd-comment tsd-typography"><p>The extension is listening for the events about pushed Lens from Lens Studio.</p>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="tsd-comment tsd-typography"></div></section>
|
|
36
|
+
<section class="tsd-panel tsd-member"><a id="Unsubscribed" class="tsd-anchor"></a>
|
|
37
|
+
<h3 class="tsd-anchor-link"><span>Unsubscribed</span><a href="#Unsubscribed" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
38
|
+
<div class="tsd-signature"><span class="tsd-kind-enum-member">Unsubscribed</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"Unsubscribed"</span></div>
|
|
39
|
+
<div class="tsd-comment tsd-typography"><p>The extension is not listening for any events about pushed Lens.</p>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="tsd-comment tsd-typography"></div></section></section></div>
|
|
42
|
+
<div class="col-sidebar">
|
|
43
|
+
<div class="page-menu">
|
|
44
|
+
<div class="tsd-navigation settings">
|
|
45
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
46
|
+
<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>
|
|
47
|
+
<div class="tsd-accordion-details">
|
|
48
|
+
<div class="tsd-filter-visibility">
|
|
49
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
50
|
+
<ul id="tsd-filter-options">
|
|
51
|
+
<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>
|
|
52
|
+
<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></ul></form></div>
|
|
53
|
+
<div class="tsd-theme-toggle">
|
|
54
|
+
<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>
|
|
55
|
+
<details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
|
|
56
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary>
|
|
57
|
+
<div class="tsd-accordion-details">
|
|
58
|
+
<ul>
|
|
59
|
+
<li><a href="#Subscribed" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>Subscribed</span></a></li>
|
|
60
|
+
<li><a href="#Unsubscribed" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>Unsubscribed</span></a></li></ul></div></details></div>
|
|
61
|
+
<div class="site-menu">
|
|
62
|
+
<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>Camera<wbr/>Kit <wbr/>Web SDK -<wbr/> <wbr/>Push 2 <wbr/>Web -<wbr/> v0.12.0</span></a>
|
|
63
|
+
<ul class="tsd-small-nested-navigation">
|
|
64
|
+
<li><a href="State.html" class="current"><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>State</span></a></li>
|
|
65
|
+
<li><a href="ListenLensPushResponse_ExcludedLens_Code.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Listen<wbr/>Lens<wbr/>Push<wbr/>Response_<wbr/>Excluded<wbr/>Lens_<wbr/>Code</span></a></li>
|
|
66
|
+
<li><a href="Code.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Code</span></a></li>
|
|
67
|
+
<li><a href="../classes/Push2Web.html"><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>Push2<wbr/>Web</span></a></li>
|
|
68
|
+
<li><a href="../interfaces/Lens.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>Lens</span></a></li>
|
|
69
|
+
<li><a href="../types/GenericErrorEvent.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>Generic<wbr/>Error<wbr/>Event</span></a></li>
|
|
70
|
+
<li><a href="../types/CommunicationErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Communication<wbr/>Error<wbr/>Event</span></a></li>
|
|
71
|
+
<li><a href="../types/LensExcludedErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Lens<wbr/>Excluded<wbr/>Error<wbr/>Event</span></a></li>
|
|
72
|
+
<li><a href="../types/SubscriptionInstance.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Subscription<wbr/>Instance</span></a></li>
|
|
73
|
+
<li><a href="../types/ErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Error<wbr/>Event</span></a></li>
|
|
74
|
+
<li><a href="../types/LensReceivedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Lens<wbr/>Received<wbr/>Event</span></a></li>
|
|
75
|
+
<li><a href="../types/SubscriptionChangedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Subscription<wbr/>Changed<wbr/>Event</span></a></li>
|
|
76
|
+
<li><a href="../types/Push2WebEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Push2<wbr/>Web<wbr/>Events</span></a></li></ul></nav></div></div></div>
|
|
77
|
+
<div class="tsd-generator">
|
|
78
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
79
|
+
<div class="overlay"></div></body></html>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>CameraKit Web SDK - Push 2 Web - v0.12.0</title><meta name="description" content="Documentation for CameraKit Web SDK - Push 2 Web"/><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">CameraKit Web SDK - Push 2 Web - v0.12.0</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
|
+
<h2>CameraKit Web SDK - Push 2 Web - v0.12.0</h2></div>
|
|
15
|
+
<div class="tsd-panel tsd-typography"><a id="md:snap-camera-kit-web-sdk---push-to-web-extension" class="tsd-anchor"></a><h1><a href="#md:snap-camera-kit-web-sdk---push-to-web-extension">Snap Camera Kit Web SDK - Push to Web Extension</a></h1><p>This extension for <a href="https://www.npmjs.com/package/@snap/camera-kit">Camera Kit Web SDK</a> package, allows users to send lenses created in <a href="https://ar.snap.com/lens-studio">Lens Studio</a> to their web pages. Simply create a lens in Lens Studio and then click the "Send to Camera Kit" button.</p>
|
|
16
|
+
<a id="md:prerequisites" class="tsd-anchor"></a><h2><a href="#md:prerequisites">Prerequisites</a></h2><p>Web pages should be integrated with Snap Login Kit in advance. This will allow users to sign in to your web page using their Snapchat account.</p>
|
|
17
|
+
<p>For quick integration, the Client-Side Only Web Application Integration method can be used. This method does not require any changes to the server-side code of your web page. Instead, it uses JavaScript to interact with the Snap Login Kit API.</p>
|
|
18
|
+
<a id="md:-important-" class="tsd-anchor"></a><h3><a href="#md:-important-">!!! Important !!!</a></h3><pre><code><span class="hl-0">!!! </span><span class="hl-1">ONLY</span><span class="hl-0"> </span><span class="hl-1">STAGING</span><span class="hl-0"> </span><span class="hl-1">LOGIN</span><span class="hl-0"> </span><span class="hl-1">KIT</span><span class="hl-0"> </span><span class="hl-1">CLIENT</span><span class="hl-0"> </span><span class="hl-1">ID</span><span class="hl-0"> </span><span class="hl-1">IS</span><span class="hl-0"> </span><span class="hl-1">SUPPORTED</span><span class="hl-0"> !!!</span>
|
|
19
|
+
</code><button>Copy</button></pre>
|
|
20
|
+
<p><a href="https://docs.snap.com/snap-kit/login-kit/Tutorials/web#requirements">Login Kit</a></p>
|
|
21
|
+
<p><a href="https://docs.snap.com/snap-kit/login-kit/Tutorials/web#client-side-only-web-application-integration">Client-Side Only Web Application Integration</a></p>
|
|
22
|
+
<a id="md:" class="tsd-anchor"></a><h3><a href="#md:"></a></h3><a id="md:getting-started" class="tsd-anchor"></a><h2><a href="#md:getting-started">Getting started</a></h2><pre><code><span class="hl-2">npm</span><span class="hl-0"> </span><span class="hl-2">install</span><span class="hl-0"> @</span><span class="hl-2">snap</span><span class="hl-0">/</span><span class="hl-2">push2web</span>
|
|
23
|
+
</code><button>Copy</button></pre>
|
|
24
|
+
<a id="md:usage" class="tsd-anchor"></a><h2><a href="#md:usage">Usage</a></h2><p>Import the extension object from the package and create a new instance.</p>
|
|
25
|
+
<pre><code class="language-ts"><span class="hl-3">import</span><span class="hl-0"> { </span><span class="hl-2">Push2Web</span><span class="hl-0"> } </span><span class="hl-3">from</span><span class="hl-0"> </span><span class="hl-4">"@snap/push2web"</span><span class="hl-0">;</span><br/><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-1">push2Web</span><span class="hl-0"> = </span><span class="hl-5">new</span><span class="hl-0"> </span><span class="hl-6">Push2Web</span><span class="hl-0">();</span>
|
|
26
|
+
</code><button>Copy</button></pre>
|
|
27
|
+
<p>The following events are available for subscription, if needed.</p>
|
|
28
|
+
<pre><code class="language-ts"><span class="hl-2">push2Web</span><span class="hl-0">.</span><span class="hl-2">events</span><span class="hl-0">.</span><span class="hl-6">addEventListener</span><span class="hl-0">(</span><span class="hl-4">"lensReceived"</span><span class="hl-0">, (</span><span class="hl-2">event</span><span class="hl-0">) </span><span class="hl-5">=></span><span class="hl-0"> { </span><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-1">lensDetails</span><span class="hl-0"> = </span><span class="hl-2">event</span><span class="hl-0">.</span><span class="hl-2">detail</span><span class="hl-0">; });</span><br/><span class="hl-2">push2Web</span><span class="hl-0">.</span><span class="hl-2">events</span><span class="hl-0">.</span><span class="hl-6">addEventListener</span><span class="hl-0">(</span><span class="hl-4">"error"</span><span class="hl-0">, (</span><span class="hl-2">event</span><span class="hl-0">) </span><span class="hl-5">=></span><span class="hl-0"> { </span><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-1">errorDetails</span><span class="hl-0"> = </span><span class="hl-2">event</span><span class="hl-0">.</span><span class="hl-2">detail</span><span class="hl-0">; });</span><br/><span class="hl-2">push2Web</span><span class="hl-0">.</span><span class="hl-2">events</span><span class="hl-0">.</span><span class="hl-6">addEventListener</span><span class="hl-0">(</span><span class="hl-4">"subscriptionChanged"</span><span class="hl-0">, (</span><span class="hl-2">event</span><span class="hl-0">) </span><span class="hl-5">=></span><span class="hl-0"> { </span><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-1">subState</span><span class="hl-0"> = </span><span class="hl-2">event</span><span class="hl-0">.</span><span class="hl-2">detail</span><span class="hl-0">; };)</span>
|
|
29
|
+
</code><button>Copy</button></pre>
|
|
30
|
+
<p>Provide the push2web extension object during the Camera Kit bootstrap. It is essential to be familiar with the <code>@snap/camera-kit</code> package before using the <code>@snap/push2web</code> extension. Please find more details on <a href="https://docs.snap.com/camera-kit/quick-start/integrate-sdk/integrate-sdk-web/web-configuration">Camera Kit Web SDK documentation</a> page.</p>
|
|
31
|
+
<pre><code class="language-ts"><span class="hl-3">import</span><span class="hl-0"> { </span><span class="hl-2">bootstrapCameraKit</span><span class="hl-0"> } </span><span class="hl-3">from</span><span class="hl-0"> </span><span class="hl-4">"@snap/camera-kit"</span><span class="hl-0">;</span><br/><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-6">extensions</span><span class="hl-0"> = (</span><span class="hl-2">container</span><span class="hl-0">) </span><span class="hl-5">=></span><span class="hl-0"> </span><span class="hl-2">container</span><span class="hl-0">.</span><span class="hl-6">provides</span><span class="hl-0">(</span><span class="hl-2">push2Web</span><span class="hl-0">.</span><span class="hl-2">extension</span><span class="hl-0">);</span><br/><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-1">cameraKit</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-6">bootstrapCameraKit</span><span class="hl-0">({ </span><span class="hl-2">apiToken:</span><span class="hl-0"> </span><span class="hl-4">"token from developer portal"</span><span class="hl-0"> }, </span><span class="hl-2">extensions</span><span class="hl-0">);</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-1">cameraKitSession</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-2">cameraKit</span><span class="hl-0">.</span><span class="hl-6">createSession</span><span class="hl-0">();</span>
|
|
32
|
+
</code><button>Copy</button></pre>
|
|
33
|
+
<p>Before pushing any lenses from Lens Studio, a subscription to a network stream must be established. Subscription should be created with the access token received after the user logs in to the web page using Login Kit integration.</p>
|
|
34
|
+
<pre><code class="language-ts"><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-1">loginKitAccessToken</span><span class="hl-0"> = </span><span class="hl-4">"this token will be provided by Login Kit after user login"</span><span class="hl-0">;</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-1">subscription</span><span class="hl-0"> = </span><span class="hl-2">push2Web</span><span class="hl-0">.</span><span class="hl-6">subscribe</span><span class="hl-0">(</span><span class="hl-2">loginKitAccessToken</span><span class="hl-0">, </span><span class="hl-2">cameraKitSession</span><span class="hl-0">, </span><span class="hl-2">cameraKit</span><span class="hl-0">.</span><span class="hl-2">lensRepository</span><span class="hl-0">);</span>
|
|
35
|
+
</code><button>Copy</button></pre>
|
|
36
|
+
<p>To unsubscribe from a stream, just call unsubscribe method on a subscription object.</p>
|
|
37
|
+
<pre><code class="language-ts"><span class="hl-2">subscription</span><span class="hl-0">.</span><span class="hl-6">unsubscribe</span><span class="hl-0">();</span>
|
|
38
|
+
</code><button>Copy</button></pre>
|
|
39
|
+
<a id="md:documentation" class="tsd-anchor"></a><h2><a href="#md:documentation">Documentation</a></h2><p>See <a href="https://docs.snap.com/camera-kit/quick-start/integrate-sdk/integrate-sdk-web/guides/push-2-web">https://docs.snap.com/camera-kit/quick-start/integrate-sdk/integrate-sdk-web/guides/push-2-web</a></p>
|
|
40
|
+
</div></div>
|
|
41
|
+
<div class="col-sidebar">
|
|
42
|
+
<div class="page-menu">
|
|
43
|
+
<div class="tsd-navigation settings">
|
|
44
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
45
|
+
<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>
|
|
46
|
+
<div class="tsd-accordion-details">
|
|
47
|
+
<div class="tsd-filter-visibility">
|
|
48
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
49
|
+
<ul id="tsd-filter-options">
|
|
50
|
+
<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>
|
|
51
|
+
<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></ul></form></div>
|
|
52
|
+
<div class="tsd-theme-toggle">
|
|
53
|
+
<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>
|
|
54
|
+
<details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
|
|
55
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary>
|
|
56
|
+
<div class="tsd-accordion-details">
|
|
57
|
+
<ul>
|
|
58
|
+
<li>
|
|
59
|
+
<ul>
|
|
60
|
+
<li><a href="#md:snap-camera-kit-web-sdk---push-to-web-extension"><span>Snap <wbr/>Camera <wbr/>Kit <wbr/>Web SDK -<wbr/> <wbr/>Push to <wbr/>Web <wbr/>Extension</span></a></li>
|
|
61
|
+
<li>
|
|
62
|
+
<ul>
|
|
63
|
+
<li><a href="#md:prerequisites"><span>Prerequisites</span></a></li>
|
|
64
|
+
<li>
|
|
65
|
+
<ul>
|
|
66
|
+
<li><a href="#md:-important-"><span>!!! <wbr/>Important !!!</span></a></li>
|
|
67
|
+
<li><a href="#md:"><span></span></a></li></ul></li>
|
|
68
|
+
<li><a href="#md:getting-started"><span>Getting started</span></a></li>
|
|
69
|
+
<li><a href="#md:usage"><span>Usage</span></a></li>
|
|
70
|
+
<li><a href="#md:documentation"><span>Documentation</span></a></li></ul></li></ul></li></ul></div></details></div>
|
|
71
|
+
<div class="site-menu">
|
|
72
|
+
<nav class="tsd-navigation"><a href="modules.html" class="current"><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>Camera<wbr/>Kit <wbr/>Web SDK -<wbr/> <wbr/>Push 2 <wbr/>Web -<wbr/> v0.12.0</span></a>
|
|
73
|
+
<ul class="tsd-small-nested-navigation">
|
|
74
|
+
<li><a href="enums/State.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>State</span></a></li>
|
|
75
|
+
<li><a href="enums/ListenLensPushResponse_ExcludedLens_Code.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Listen<wbr/>Lens<wbr/>Push<wbr/>Response_<wbr/>Excluded<wbr/>Lens_<wbr/>Code</span></a></li>
|
|
76
|
+
<li><a href="enums/Code.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Code</span></a></li>
|
|
77
|
+
<li><a href="classes/Push2Web.html"><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>Push2<wbr/>Web</span></a></li>
|
|
78
|
+
<li><a href="interfaces/Lens.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>Lens</span></a></li>
|
|
79
|
+
<li><a href="types/GenericErrorEvent.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>Generic<wbr/>Error<wbr/>Event</span></a></li>
|
|
80
|
+
<li><a href="types/CommunicationErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Communication<wbr/>Error<wbr/>Event</span></a></li>
|
|
81
|
+
<li><a href="types/LensExcludedErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Lens<wbr/>Excluded<wbr/>Error<wbr/>Event</span></a></li>
|
|
82
|
+
<li><a href="types/SubscriptionInstance.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Subscription<wbr/>Instance</span></a></li>
|
|
83
|
+
<li><a href="types/ErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Error<wbr/>Event</span></a></li>
|
|
84
|
+
<li><a href="types/LensReceivedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Lens<wbr/>Received<wbr/>Event</span></a></li>
|
|
85
|
+
<li><a href="types/SubscriptionChangedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Subscription<wbr/>Changed<wbr/>Event</span></a></li>
|
|
86
|
+
<li><a href="types/Push2WebEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Push2<wbr/>Web<wbr/>Events</span></a></li></ul></nav></div></div></div>
|
|
87
|
+
<div class="tsd-generator">
|
|
88
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
89
|
+
<div class="overlay"></div></body></html>
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Lens | CameraKit Web SDK - Push 2 Web - v0.12.0</title><meta name="description" content="Documentation for CameraKit Web SDK - Push 2 Web"/><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">CameraKit Web SDK - Push 2 Web - v0.12.0</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">CameraKit Web SDK - Push 2 Web</a></li>
|
|
16
|
+
<li><a href="Lens.html">Lens</a></li></ul>
|
|
17
|
+
<h1>Interface Lens</h1></div>
|
|
18
|
+
<section class="tsd-panel tsd-hierarchy">
|
|
19
|
+
<h4>Hierarchy</h4>
|
|
20
|
+
<ul class="tsd-hierarchy">
|
|
21
|
+
<li><span class="target">Lens</span></li></ul></section>
|
|
22
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
23
|
+
<section class="tsd-panel tsd-index-panel">
|
|
24
|
+
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
25
|
+
<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>
|
|
26
|
+
<div class="tsd-accordion-details">
|
|
27
|
+
<section class="tsd-index-section">
|
|
28
|
+
<h3 class="tsd-index-heading">Properties</h3>
|
|
29
|
+
<div class="tsd-index-list"><a href="Lens.html#id" 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>id</span></a>
|
|
30
|
+
<a href="Lens.html#name" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>name</span></a>
|
|
31
|
+
<a href="Lens.html#iconUrl" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>icon<wbr/>Url</span></a>
|
|
32
|
+
<a href="Lens.html#vendorData" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>vendor<wbr/>Data</span></a>
|
|
33
|
+
<a href="Lens.html#cameraFacingPreference" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>camera<wbr/>Facing<wbr/>Preference</span></a>
|
|
34
|
+
<a href="Lens.html#preview" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>preview</span></a>
|
|
35
|
+
<a href="Lens.html#lensCreator" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>lens<wbr/>Creator</span></a>
|
|
36
|
+
<a href="Lens.html#snapcode" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>snapcode</span></a>
|
|
37
|
+
</div></section></div></details></section></section>
|
|
38
|
+
<section class="tsd-panel-group tsd-member-group">
|
|
39
|
+
<h2>Properties</h2>
|
|
40
|
+
<section class="tsd-panel tsd-member"><a id="id" class="tsd-anchor"></a>
|
|
41
|
+
<h3 class="tsd-anchor-link"><span>id</span><a href="#id" 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>
|
|
42
|
+
<div class="tsd-signature"><span class="tsd-kind-property">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
43
|
+
<div class="tsd-comment tsd-typography"><p>Non-empty identifier of a unique lens available to be applied in current session.</p>
|
|
44
|
+
<p>NOTE: This value may contain unsafe characters
|
|
45
|
+
and therefore may require additional processing depending on usages.</p>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="tsd-comment tsd-typography"></div></section>
|
|
48
|
+
<section class="tsd-panel tsd-member"><a id="name" class="tsd-anchor"></a>
|
|
49
|
+
<h3 class="tsd-anchor-link"><span>name</span><a href="#name" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
50
|
+
<div class="tsd-signature"><span class="tsd-kind-property">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
51
|
+
<div class="tsd-comment tsd-typography"><p>Human readable name of this lens.</p>
|
|
52
|
+
<p>NOTE: This value may contain unsafe characters
|
|
53
|
+
and therefore may require additional processing depending on usages.</p>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="tsd-comment tsd-typography"></div></section>
|
|
56
|
+
<section class="tsd-panel tsd-member"><a id="iconUrl" class="tsd-anchor"></a>
|
|
57
|
+
<h3 class="tsd-anchor-link"><span>icon<wbr/>Url</span><a href="#iconUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
58
|
+
<div class="tsd-signature"><span class="tsd-kind-property">icon<wbr/>Url</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></div>
|
|
59
|
+
<div class="tsd-comment tsd-typography"><p>Icon resource URI that represents this lens if available.</p>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="tsd-comment tsd-typography"></div></section>
|
|
62
|
+
<section class="tsd-panel tsd-member"><a id="vendorData" class="tsd-anchor"></a>
|
|
63
|
+
<h3 class="tsd-anchor-link"><span>vendor<wbr/>Data</span><a href="#vendorData" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
64
|
+
<div class="tsd-signature"><span class="tsd-kind-property">vendor<wbr/>Data</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>[<span class="tsd-kind-index-signature">key</span>: <span class="tsd-signature-type">string</span>]<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></div>
|
|
65
|
+
<div class="tsd-comment tsd-typography"><p>Vendor specific metadata associated with this lens, empty by default.</p>
|
|
66
|
+
<p>NOTE: Metadata values may contain unsafe characters
|
|
67
|
+
and therefore may require additional processing depending on usages.</p>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="tsd-type-declaration">
|
|
70
|
+
<h4>Type declaration</h4>
|
|
71
|
+
<ul class="tsd-parameters">
|
|
72
|
+
<li class="tsd-parameter-index-signature">
|
|
73
|
+
<h5><span class="tsd-signature-symbol">[</span><span class="tsd-kind-parameter">key</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
74
|
+
<div class="tsd-comment tsd-typography"></div></section>
|
|
75
|
+
<section class="tsd-panel tsd-member"><a id="cameraFacingPreference" class="tsd-anchor"></a>
|
|
76
|
+
<h3 class="tsd-anchor-link"><span>camera<wbr/>Facing<wbr/>Preference</span><a href="#cameraFacingPreference" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
77
|
+
<div class="tsd-signature"><span class="tsd-kind-property">camera<wbr/>Facing<wbr/>Preference</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">Lens_CameraFacing</span></div>
|
|
78
|
+
<div class="tsd-comment tsd-typography"><p>Specifies a [Lens_CameraFacing] that this lens is designed for.</p>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="tsd-comment tsd-typography"></div></section>
|
|
81
|
+
<section class="tsd-panel tsd-member"><a id="preview" class="tsd-anchor"></a>
|
|
82
|
+
<h3 class="tsd-anchor-link"><span>preview</span><a href="#preview" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
83
|
+
<div class="tsd-signature"><span class="tsd-kind-property">preview</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 ">Preview</span></div>
|
|
84
|
+
<div class="tsd-comment tsd-typography"><p>Preview representing this lens, if available.</p>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="tsd-comment tsd-typography"></div></section>
|
|
87
|
+
<section class="tsd-panel tsd-member"><a id="lensCreator" class="tsd-anchor"></a>
|
|
88
|
+
<h3 class="tsd-anchor-link"><span>lens<wbr/>Creator</span><a href="#lensCreator" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
89
|
+
<div class="tsd-signature"><span class="tsd-kind-property">lens<wbr/>Creator</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 ">LensCreator</span></div>
|
|
90
|
+
<div class="tsd-comment tsd-typography"><p>Information about the lens creator.</p>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="tsd-comment tsd-typography"></div></section>
|
|
93
|
+
<section class="tsd-panel tsd-member"><a id="snapcode" class="tsd-anchor"></a>
|
|
94
|
+
<h3 class="tsd-anchor-link"><span>snapcode</span><a href="#snapcode" 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">snapcode</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 ">Snapcode</span></div>
|
|
96
|
+
<div class="tsd-comment tsd-typography"><p>A <a href="https://scan.snapchat.com/snapcodes">snapcode</a> that represents the lens if available.</p>
|
|
97
|
+
<p>The snapcode points to the lens in the Snapchat app, when used on mobile, or a dedicated web page.</p>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="tsd-comment tsd-typography"></div></section></section></div>
|
|
100
|
+
<div class="col-sidebar">
|
|
101
|
+
<div class="page-menu">
|
|
102
|
+
<div class="tsd-navigation settings">
|
|
103
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
104
|
+
<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>
|
|
105
|
+
<div class="tsd-accordion-details">
|
|
106
|
+
<div class="tsd-filter-visibility">
|
|
107
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
108
|
+
<ul id="tsd-filter-options">
|
|
109
|
+
<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>
|
|
110
|
+
<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></ul></form></div>
|
|
111
|
+
<div class="tsd-theme-toggle">
|
|
112
|
+
<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>
|
|
113
|
+
<details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
|
|
114
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary>
|
|
115
|
+
<div class="tsd-accordion-details">
|
|
116
|
+
<ul>
|
|
117
|
+
<li><a href="#id" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>id</span></a></li>
|
|
118
|
+
<li><a href="#name" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>name</span></a></li>
|
|
119
|
+
<li><a href="#iconUrl" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>icon<wbr/>Url</span></a></li>
|
|
120
|
+
<li><a href="#vendorData" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>vendor<wbr/>Data</span></a></li>
|
|
121
|
+
<li><a href="#cameraFacingPreference" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>camera<wbr/>Facing<wbr/>Preference</span></a></li>
|
|
122
|
+
<li><a href="#preview" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>preview</span></a></li>
|
|
123
|
+
<li><a href="#lensCreator" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>lens<wbr/>Creator</span></a></li>
|
|
124
|
+
<li><a href="#snapcode" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>snapcode</span></a></li></ul></div></details></div>
|
|
125
|
+
<div class="site-menu">
|
|
126
|
+
<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>Camera<wbr/>Kit <wbr/>Web SDK -<wbr/> <wbr/>Push 2 <wbr/>Web -<wbr/> v0.12.0</span></a>
|
|
127
|
+
<ul class="tsd-small-nested-navigation">
|
|
128
|
+
<li><a href="../enums/State.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>State</span></a></li>
|
|
129
|
+
<li><a href="../enums/ListenLensPushResponse_ExcludedLens_Code.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Listen<wbr/>Lens<wbr/>Push<wbr/>Response_<wbr/>Excluded<wbr/>Lens_<wbr/>Code</span></a></li>
|
|
130
|
+
<li><a href="../enums/Code.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Code</span></a></li>
|
|
131
|
+
<li><a href="../classes/Push2Web.html"><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>Push2<wbr/>Web</span></a></li>
|
|
132
|
+
<li><a href="Lens.html" class="current"><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>Lens</span></a></li>
|
|
133
|
+
<li><a href="../types/GenericErrorEvent.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>Generic<wbr/>Error<wbr/>Event</span></a></li>
|
|
134
|
+
<li><a href="../types/CommunicationErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Communication<wbr/>Error<wbr/>Event</span></a></li>
|
|
135
|
+
<li><a href="../types/LensExcludedErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Lens<wbr/>Excluded<wbr/>Error<wbr/>Event</span></a></li>
|
|
136
|
+
<li><a href="../types/SubscriptionInstance.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Subscription<wbr/>Instance</span></a></li>
|
|
137
|
+
<li><a href="../types/ErrorEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Error<wbr/>Event</span></a></li>
|
|
138
|
+
<li><a href="../types/LensReceivedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Lens<wbr/>Received<wbr/>Event</span></a></li>
|
|
139
|
+
<li><a href="../types/SubscriptionChangedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Subscription<wbr/>Changed<wbr/>Event</span></a></li>
|
|
140
|
+
<li><a href="../types/Push2WebEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Push2<wbr/>Web<wbr/>Events</span></a></li></ul></nav></div></div></div>
|
|
141
|
+
<div class="tsd-generator">
|
|
142
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
143
|
+
<div class="overlay"></div></body></html>
|