@snap/camera-kit 1.0.1 → 1.2.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/README.md +1 -1
- package/dist/CameraKit.d.ts +17 -6
- package/dist/CameraKit.d.ts.map +1 -1
- package/dist/CameraKit.js +26 -4
- package/dist/CameraKit.js.map +1 -1
- package/dist/RootServices.d.ts +6 -2
- package/dist/RootServices.d.ts.map +1 -1
- package/dist/RootServices.js.map +1 -1
- package/dist/bootstrapCameraKit.d.ts.map +1 -1
- package/dist/bootstrapCameraKit.js +6 -2
- package/dist/bootstrapCameraKit.js.map +1 -1
- package/dist/clients/remoteApiSpecsClient.d.ts +10 -0
- package/dist/clients/remoteApiSpecsClient.d.ts.map +1 -0
- package/dist/clients/remoteApiSpecsClient.js +6 -0
- package/dist/clients/remoteApiSpecsClient.js.map +1 -0
- package/dist/common/typeguards.d.ts +3 -0
- package/dist/common/typeguards.d.ts.map +1 -1
- package/dist/common/typeguards.js +12 -0
- package/dist/common/typeguards.js.map +1 -1
- package/dist/configuration.d.ts +115 -0
- package/dist/configuration.d.ts.map +1 -1
- package/dist/configuration.js +1 -0
- package/dist/configuration.js.map +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.js.map +1 -1
- package/dist/extensions/extensionRequestContext.d.ts +6 -0
- package/dist/extensions/extensionRequestContext.d.ts.map +1 -1
- package/dist/extensions/extensionRequestContext.js +3 -2
- package/dist/extensions/extensionRequestContext.js.map +1 -1
- package/dist/geo/geoDataProvider.d.ts +32 -0
- package/dist/geo/geoDataProvider.d.ts.map +1 -0
- package/dist/geo/geoDataProvider.js +25 -0
- package/dist/geo/geoDataProvider.js.map +1 -0
- package/dist/geo/registerGeoDataProvider.d.ts +11 -0
- package/dist/geo/registerGeoDataProvider.d.ts.map +1 -0
- package/dist/geo/registerGeoDataProvider.js +22 -0
- package/dist/geo/registerGeoDataProvider.js.map +1 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/lens-core-module/generated-types.d.ts +28 -0
- package/dist/lens-core-module/generated-types.d.ts.map +1 -1
- package/dist/lens-core-module/generated-types.js.map +1 -1
- package/dist/lens-core-module/lensCore.d.ts.map +1 -1
- package/dist/lens-core-module/lensCore.js +1 -0
- package/dist/lens-core-module/lensCore.js.map +1 -1
- package/dist/lensCoreWasmVersions.js +3 -3
- package/dist/lensCoreWasmVersions.js.map +1 -1
- package/dist/platform/platformInfo.d.ts.map +1 -1
- package/dist/platform/platformInfo.js +1 -1
- package/dist/platform/platformInfo.js.map +1 -1
- package/dist/remote-configuration/cofHandler.js.map +1 -1
- package/dist/remote-configuration/remoteConfiguration.d.ts +4 -0
- package/dist/remote-configuration/remoteConfiguration.d.ts.map +1 -1
- package/dist/remote-configuration/remoteConfiguration.js +10 -0
- package/dist/remote-configuration/remoteConfiguration.js.map +1 -1
- package/dist/session/CameraKitSession.d.ts +9 -9
- package/dist/session/CameraKitSession.d.ts.map +1 -1
- package/dist/session/CameraKitSession.js +4 -2
- package/dist/session/CameraKitSession.js.map +1 -1
- package/dist/session/LensKeyboard.d.ts +75 -31
- package/dist/session/LensKeyboard.d.ts.map +1 -1
- package/dist/session/LensKeyboard.js +60 -38
- package/dist/session/LensKeyboard.js.map +1 -1
- package/dist/uri-handlers/UriHandlers.d.ts.map +1 -0
- package/dist/uri-handlers/UriHandlers.js.map +1 -0
- package/dist/uri-handlers/internal-handlers/httpUriHandler.d.ts +42 -0
- package/dist/uri-handlers/internal-handlers/httpUriHandler.d.ts.map +1 -0
- package/dist/uri-handlers/internal-handlers/httpUriHandler.js +149 -0
- package/dist/uri-handlers/internal-handlers/httpUriHandler.js.map +1 -0
- package/dist/uri-handlers/internal-handlers/httpValidators.d.ts +9 -0
- package/dist/uri-handlers/internal-handlers/httpValidators.d.ts.map +1 -0
- package/dist/uri-handlers/internal-handlers/httpValidators.js +115 -0
- package/dist/uri-handlers/internal-handlers/httpValidators.js.map +1 -0
- package/dist/{extensions/RemoteApiServices.d.ts → uri-handlers/internal-handlers/remoteApiUriHandler.d.ts} +8 -8
- package/dist/uri-handlers/internal-handlers/remoteApiUriHandler.d.ts.map +1 -0
- package/dist/uri-handlers/internal-handlers/remoteApiUriHandler.js +121 -0
- package/dist/uri-handlers/internal-handlers/remoteApiUriHandler.js.map +1 -0
- package/dist/{extensions → uri-handlers}/uriHandlersRegister.d.ts +6 -4
- package/dist/uri-handlers/uriHandlersRegister.d.ts.map +1 -0
- package/dist/{extensions → uri-handlers}/uriHandlersRegister.js +13 -3
- package/dist/uri-handlers/uriHandlersRegister.js.map +1 -0
- package/dist/uri-handlers/uriRequestProcessor.d.ts +37 -0
- package/dist/uri-handlers/uriRequestProcessor.d.ts.map +1 -0
- package/dist/uri-handlers/uriRequestProcessor.js +69 -0
- package/dist/uri-handlers/uriRequestProcessor.js.map +1 -0
- package/docs/html/assets/hierarchy.js +1 -0
- package/docs/html/assets/highlight.css +9 -2
- package/docs/html/assets/icons.js +18 -0
- package/docs/html/assets/icons.svg +1 -0
- package/docs/html/assets/main.js +5 -4
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +1422 -1226
- package/docs/html/classes/CameraKit.html +18 -16
- package/docs/html/classes/CameraKitSession.html +79 -51
- package/docs/html/classes/CameraKitSource.html +18 -18
- package/docs/html/classes/LensPerformanceMeasurement.html +11 -11
- package/docs/html/classes/LensPerformanceMetrics.html +8 -7
- package/docs/html/classes/LensRepository.html +25 -23
- package/docs/html/classes/Transform2D.html +9 -9
- package/docs/html/classes/TypedCustomEvent.html +5 -4
- package/docs/html/classes/TypedEventTarget.html +6 -6
- package/docs/html/enums/Lens_CameraFacing.html +5 -5
- package/docs/html/functions/bootstrapCameraKit.html +11 -10
- package/docs/html/functions/createExtension.html +7 -6
- package/docs/html/functions/createImageSource.html +5 -5
- package/docs/html/functions/createMediaStreamSource.html +5 -5
- package/docs/html/functions/createVideoSource.html +5 -5
- package/docs/html/functions/estimateLensPerformance.html +2 -2
- package/docs/html/functions/filePickerFactory.html +2 -2
- package/docs/html/functions/getExtensionRequestContext.html +3 -0
- package/docs/html/functions/lensSourcesFactory.html +5 -4
- package/docs/html/functions/remoteApiServicesFactory.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +111 -88
- package/docs/html/interfaces/BitmojiUserInfo.html +3 -3
- package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +40 -21
- package/docs/html/interfaces/CameraKitDeviceOptions.html +7 -7
- package/docs/html/interfaces/CameraKitSourceInfo.html +7 -7
- package/docs/html/interfaces/CameraKitSourceSubscriber.html +4 -4
- package/docs/html/interfaces/ComputedFrameMetrics.html +6 -6
- package/docs/html/interfaces/CreateSessionOptions.html +7 -7
- package/docs/html/interfaces/EstimatedLensPerformance.html +5 -5
- package/docs/html/interfaces/Font.html +6 -0
- package/docs/html/interfaces/FriendUserInfo.html +4 -4
- package/docs/html/interfaces/FunctionSourceOptions.html +4 -4
- package/docs/html/interfaces/Keyboard.html +29 -0
- package/docs/html/interfaces/KeyboardActiveEvent.html +12 -0
- package/docs/html/interfaces/Lens.html +21 -21
- package/docs/html/interfaces/LensCreator.html +3 -3
- package/docs/html/interfaces/LensHttpRequest.html +16 -0
- package/docs/html/interfaces/LensLaunchData.html +6 -6
- package/docs/html/interfaces/LensSource.html +5 -5
- package/docs/html/interfaces/LensUserData.html +10 -10
- package/docs/html/interfaces/LoadAssetRequest.html +10 -10
- package/docs/html/interfaces/MediaStreamSourceOptions.html +11 -11
- package/docs/html/interfaces/Preview.html +4 -4
- package/docs/html/interfaces/RemoteApiRequest.html +10 -10
- package/docs/html/interfaces/RemoteApiResponse.html +8 -8
- package/docs/html/interfaces/RemoteApiService.html +9 -9
- package/docs/html/interfaces/Snapcode.html +6 -6
- package/docs/html/interfaces/UriCancelRequest.html +3 -3
- package/docs/html/interfaces/UriRequest.html +7 -7
- package/docs/html/interfaces/UriResponse.html +6 -6
- package/docs/html/interfaces/VideoSourceOptions.html +9 -9
- package/docs/html/modules.html +1 -99
- package/docs/html/types/ArgumentValidationError.html +2 -2
- package/docs/html/types/AssetLoader.html +4 -4
- package/docs/html/types/AssetResponse.html +1 -1
- package/docs/html/types/AssetTiming.html +2 -2
- package/docs/html/types/BenchmarkError.html +1 -1
- package/docs/html/types/BootstrapError.html +2 -2
- package/docs/html/types/CacheKeyNotFoundError.html +1 -1
- package/docs/html/types/CameraKitSessionEventListener.html +2 -2
- package/docs/html/types/CameraKitSessionEvents.html +4 -3
- package/docs/html/types/CameraKitSourceError.html +1 -1
- package/docs/html/types/ConfigurationError.html +2 -2
- package/docs/html/types/FetchHandler.html +1 -1
- package/docs/html/types/FilePicker.html +5 -5
- package/docs/html/types/FilePickerOptions.html +2 -2
- package/docs/html/types/FilePickerResult.html +2 -2
- package/docs/html/types/KeyboardEventListener.html +2 -0
- package/docs/html/types/KeyboardEvents.html +2 -2
- package/docs/html/types/LegalError.html +1 -1
- package/docs/html/types/LensAbortError.html +6 -5
- package/docs/html/types/LensAssetError.html +2 -2
- package/docs/html/types/LensContentValidationError.html +1 -1
- package/docs/html/types/LensError.html +1 -1
- package/docs/html/types/LensExecutionError.html +6 -5
- package/docs/html/types/LensHttpHandler.html +9 -0
- package/docs/html/types/LensImagePickerError.html +2 -2
- package/docs/html/types/LensLaunchParams.html +2 -2
- package/docs/html/types/LensMetricsEvents.html +2 -2
- package/docs/html/types/LensPerformanceCluster.html +1 -1
- package/docs/html/types/LensView.html +3 -3
- package/docs/html/types/LensWait.html +2 -2
- package/docs/html/types/Matrix.html +2 -2
- package/docs/html/types/PersistentStoreError.html +2 -2
- package/docs/html/types/PlatformNotSupportedError.html +3 -3
- package/docs/html/types/PublicContainer.html +2 -2
- package/docs/html/types/PublicServices.html +2 -2
- package/docs/html/types/RemoteApiCancelRequestHandler.html +2 -2
- package/docs/html/types/RemoteApiRequestHandler.html +2 -2
- package/docs/html/types/RemoteApiServices.html +1 -1
- package/docs/html/types/RemoteApiStatus.html +2 -2
- package/docs/html/types/RenderTarget.html +3 -3
- package/docs/html/types/Uri.html +1 -1
- package/docs/html/types/WebGLError.html +1 -1
- package/docs/html/types/Zodiac.html +1 -1
- package/docs/html/variables/extensionRequestContext.html +3 -2
- package/docs/md/README.md +5 -3
- package/docs/md/classes/CameraKit.md +26 -37
- package/docs/md/classes/CameraKitSession.md +150 -108
- package/docs/md/classes/CameraKitSource.md +46 -37
- package/docs/md/classes/LensPerformanceMeasurement.md +18 -26
- package/docs/md/classes/LensPerformanceMetrics.md +8 -10
- package/docs/md/classes/LensRepository.md +66 -45
- package/docs/md/classes/Transform2D.md +19 -26
- package/docs/md/classes/TypedCustomEvent.md +24 -32
- package/docs/md/classes/TypedEventTarget.md +43 -54
- package/docs/md/enumerations/Lens_CameraFacing.md +31 -0
- package/docs/md/functions/bootstrapCameraKit.md +66 -0
- package/docs/md/functions/createExtension.md +50 -0
- package/docs/md/functions/createImageSource.md +30 -0
- package/docs/md/functions/createMediaStreamSource.md +30 -0
- package/docs/md/functions/createVideoSource.md +31 -0
- package/docs/md/functions/estimateLensPerformance.md +18 -0
- package/docs/md/functions/filePickerFactory.md +22 -0
- package/docs/md/functions/getExtensionRequestContext.md +21 -0
- package/docs/md/functions/lensSourcesFactory.md +37 -0
- package/docs/md/functions/remoteApiServicesFactory.md +19 -0
- package/docs/md/globals.md +124 -0
- package/docs/md/interfaces/BitmojiUserInfo.md +9 -12
- package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +99 -40
- package/docs/md/interfaces/CameraKitDeviceOptions.md +11 -17
- package/docs/md/interfaces/CameraKitSourceInfo.md +14 -20
- package/docs/md/interfaces/CameraKitSourceSubscriber.md +23 -28
- package/docs/md/interfaces/ComputedFrameMetrics.md +13 -19
- package/docs/md/interfaces/CreateSessionOptions.md +10 -13
- package/docs/md/interfaces/EstimatedLensPerformance.md +10 -14
- package/docs/md/interfaces/Font.md +25 -0
- package/docs/md/interfaces/FriendUserInfo.md +12 -16
- package/docs/md/interfaces/FunctionSourceOptions.md +6 -8
- package/docs/md/interfaces/Keyboard.md +137 -0
- package/docs/md/interfaces/KeyboardActiveEvent.md +46 -0
- package/docs/md/interfaces/Lens.md +26 -37
- package/docs/md/interfaces/LensCreator.md +6 -8
- package/docs/md/interfaces/LensHttpRequest.md +60 -0
- package/docs/md/interfaces/LensLaunchData.md +13 -17
- package/docs/md/interfaces/LensSource.md +26 -27
- package/docs/md/interfaces/LensUserData.md +30 -40
- package/docs/md/interfaces/LoadAssetRequest.md +13 -18
- package/docs/md/interfaces/MediaStreamSourceOptions.md +15 -22
- package/docs/md/interfaces/Preview.md +6 -8
- package/docs/md/interfaces/RemoteApiRequest.md +12 -17
- package/docs/md/interfaces/RemoteApiResponse.md +10 -14
- package/docs/md/interfaces/RemoteApiService.md +20 -19
- package/docs/md/interfaces/Snapcode.md +8 -11
- package/docs/md/interfaces/UriCancelRequest.md +7 -10
- package/docs/md/interfaces/UriRequest.md +15 -22
- package/docs/md/interfaces/UriResponse.md +14 -20
- package/docs/md/interfaces/VideoSourceOptions.md +13 -19
- package/docs/md/type-aliases/ArgumentValidationError.md +11 -0
- package/docs/md/type-aliases/AssetLoader.md +26 -0
- package/docs/md/type-aliases/AssetResponse.md +9 -0
- package/docs/md/type-aliases/AssetTiming.md +18 -0
- package/docs/md/type-aliases/BenchmarkError.md +9 -0
- package/docs/md/type-aliases/BootstrapError.md +12 -0
- package/docs/md/type-aliases/CacheKeyNotFoundError.md +9 -0
- package/docs/md/type-aliases/CameraKitSessionEventListener.md +11 -0
- package/docs/md/type-aliases/CameraKitSessionEvents.md +17 -0
- package/docs/md/type-aliases/CameraKitSourceError.md +9 -0
- package/docs/md/type-aliases/ConfigurationError.md +11 -0
- package/docs/md/type-aliases/FetchHandler.md +27 -0
- package/docs/md/type-aliases/FilePicker.md +32 -0
- package/docs/md/type-aliases/FilePickerOptions.md +11 -0
- package/docs/md/type-aliases/FilePickerResult.md +11 -0
- package/docs/md/type-aliases/KeyboardEventListener.md +11 -0
- package/docs/md/type-aliases/KeyboardEvents.md +11 -0
- package/docs/md/type-aliases/LegalError.md +9 -0
- package/docs/md/type-aliases/LensAbortError.md +22 -0
- package/docs/md/type-aliases/LensAssetError.md +11 -0
- package/docs/md/type-aliases/LensContentValidationError.md +9 -0
- package/docs/md/type-aliases/LensError.md +9 -0
- package/docs/md/type-aliases/LensExecutionError.md +23 -0
- package/docs/md/type-aliases/LensHttpHandler.md +41 -0
- package/docs/md/type-aliases/LensImagePickerError.md +12 -0
- package/docs/md/type-aliases/LensLaunchParams.md +11 -0
- package/docs/md/type-aliases/LensMetricsEvents.md +13 -0
- package/docs/md/type-aliases/LensPerformanceCluster.md +9 -0
- package/docs/md/type-aliases/LensView.md +21 -0
- package/docs/md/type-aliases/LensWait.md +13 -0
- package/docs/md/type-aliases/Matrix.md +12 -0
- package/docs/md/type-aliases/PersistentStoreError.md +11 -0
- package/docs/md/type-aliases/PlatformNotSupportedError.md +13 -0
- package/docs/md/type-aliases/PublicContainer.md +12 -0
- package/docs/md/type-aliases/PublicServices.md +11 -0
- package/docs/md/type-aliases/RemoteApiCancelRequestHandler.md +15 -0
- package/docs/md/type-aliases/RemoteApiRequestHandler.md +24 -0
- package/docs/md/type-aliases/RemoteApiServices.md +9 -0
- package/docs/md/type-aliases/RemoteApiStatus.md +11 -0
- package/docs/md/type-aliases/RenderTarget.md +14 -0
- package/docs/md/type-aliases/Uri.md +9 -0
- package/docs/md/type-aliases/WebGLError.md +9 -0
- package/docs/md/type-aliases/Zodiac.md +9 -0
- package/docs/md/variables/extensionRequestContext.md +15 -0
- package/package.json +5 -5
- package/dist/extensions/RemoteApiServices.d.ts.map +0 -1
- package/dist/extensions/RemoteApiServices.js +0 -159
- package/dist/extensions/RemoteApiServices.js.map +0 -1
- package/dist/extensions/UriHandlers.d.ts.map +0 -1
- package/dist/extensions/UriHandlers.js.map +0 -1
- package/dist/extensions/uriHandlersRegister.d.ts.map +0 -1
- package/dist/extensions/uriHandlersRegister.js.map +0 -1
- package/docs/html/types/Keyboard.html +0 -26
- package/docs/md/.nojekyll +0 -1
- package/docs/md/enums/Lens_CameraFacing.md +0 -36
- package/docs/md/modules.md +0 -904
- /package/dist/{extensions → uri-handlers}/UriHandlers.d.ts +0 -0
- /package/dist/{extensions → uri-handlers}/UriHandlers.js +0 -0
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
[CameraKit Web SDK
|
|
1
|
+
[**CameraKit Web SDK v1.2.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[CameraKit Web SDK](../globals.md) / LensPerformanceMeasurement
|
|
2
6
|
|
|
3
7
|
# Class: LensPerformanceMeasurement
|
|
4
8
|
|
|
@@ -7,29 +11,17 @@ Represents an ongoing measurement of rendering metrics.
|
|
|
7
11
|
An instance of this class is obtained by calling [LensPerformanceMetrics.beginMeasurement](LensPerformanceMetrics.md#beginmeasurement). Then it may be
|
|
8
12
|
used to record rendering performance metrics, reset measurement, or end the measurement.
|
|
9
13
|
|
|
10
|
-
## Table of contents
|
|
11
|
-
|
|
12
|
-
### Constructors
|
|
13
|
-
|
|
14
|
-
- [constructor](LensPerformanceMeasurement.md#constructor)
|
|
15
|
-
|
|
16
|
-
### Methods
|
|
17
|
-
|
|
18
|
-
- [measure](LensPerformanceMeasurement.md#measure)
|
|
19
|
-
- [reset](LensPerformanceMeasurement.md#reset)
|
|
20
|
-
- [end](LensPerformanceMeasurement.md#end)
|
|
21
|
-
|
|
22
14
|
## Constructors
|
|
23
15
|
|
|
24
|
-
###
|
|
16
|
+
### new LensPerformanceMeasurement()
|
|
25
17
|
|
|
26
|
-
|
|
18
|
+
> **new LensPerformanceMeasurement**(`instances`): [`LensPerformanceMeasurement`](LensPerformanceMeasurement.md)
|
|
27
19
|
|
|
28
20
|
#### Parameters
|
|
29
21
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
##### instances
|
|
23
|
+
|
|
24
|
+
`Set`\<[`LensPerformanceMeasurement`](LensPerformanceMeasurement.md)\>
|
|
33
25
|
|
|
34
26
|
#### Returns
|
|
35
27
|
|
|
@@ -37,9 +29,9 @@ used to record rendering performance metrics, reset measurement, or end the meas
|
|
|
37
29
|
|
|
38
30
|
## Methods
|
|
39
31
|
|
|
40
|
-
### measure
|
|
32
|
+
### measure()
|
|
41
33
|
|
|
42
|
-
|
|
34
|
+
> **measure**(): [`ComputedFrameMetrics`](../interfaces/ComputedFrameMetrics.md)
|
|
43
35
|
|
|
44
36
|
Return a [ComputedFrameMetrics](../interfaces/ComputedFrameMetrics.md) object, containing lens performance metrics.
|
|
45
37
|
|
|
@@ -50,11 +42,11 @@ was created.
|
|
|
50
42
|
|
|
51
43
|
[`ComputedFrameMetrics`](../interfaces/ComputedFrameMetrics.md)
|
|
52
44
|
|
|
53
|
-
|
|
45
|
+
***
|
|
54
46
|
|
|
55
|
-
### reset
|
|
47
|
+
### reset()
|
|
56
48
|
|
|
57
|
-
|
|
49
|
+
> **reset**(): `void`
|
|
58
50
|
|
|
59
51
|
Reset the measured performance statistics (averages, std deviations). This is equivalent to using
|
|
60
52
|
[LensPerformanceMetrics.beginMeasurement](LensPerformanceMetrics.md#beginmeasurement) to create a new LensPerformanceMeasurement instance, but may be
|
|
@@ -64,11 +56,11 @@ more convenient.
|
|
|
64
56
|
|
|
65
57
|
`void`
|
|
66
58
|
|
|
67
|
-
|
|
59
|
+
***
|
|
68
60
|
|
|
69
|
-
### end
|
|
61
|
+
### end()
|
|
70
62
|
|
|
71
|
-
|
|
63
|
+
> **end**(): `void`
|
|
72
64
|
|
|
73
65
|
Stop measuring performance statistics.
|
|
74
66
|
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
[CameraKit Web SDK
|
|
1
|
+
[**CameraKit Web SDK v1.2.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[CameraKit Web SDK](../globals.md) / LensPerformanceMetrics
|
|
2
6
|
|
|
3
7
|
# Class: LensPerformanceMetrics
|
|
4
8
|
|
|
@@ -7,7 +11,7 @@ Use to measure lens rendering performance.
|
|
|
7
11
|
The [LensPerformanceMetrics.beginMeasurement](LensPerformanceMetrics.md#beginmeasurement) method is used to start measuring rendering performance. After
|
|
8
12
|
a measurement has begun, performance metrics can be read using [LensPerformanceMeasurement](LensPerformanceMeasurement.md).
|
|
9
13
|
|
|
10
|
-
|
|
14
|
+
## Example
|
|
11
15
|
|
|
12
16
|
```ts
|
|
13
17
|
const measurement = cameraKitSession.metrics.beginMeasurement()
|
|
@@ -15,17 +19,11 @@ const measurement = cameraKitSession.metrics.beginMeasurement()
|
|
|
15
19
|
console.log(measurement.measure())
|
|
16
20
|
```
|
|
17
21
|
|
|
18
|
-
## Table of contents
|
|
19
|
-
|
|
20
|
-
### Methods
|
|
21
|
-
|
|
22
|
-
- [beginMeasurement](LensPerformanceMetrics.md#beginmeasurement)
|
|
23
|
-
|
|
24
22
|
## Methods
|
|
25
23
|
|
|
26
|
-
### beginMeasurement
|
|
24
|
+
### beginMeasurement()
|
|
27
25
|
|
|
28
|
-
|
|
26
|
+
> **beginMeasurement**(): [`LensPerformanceMeasurement`](LensPerformanceMeasurement.md)
|
|
29
27
|
|
|
30
28
|
Begin a measurement window, during which time rendering metrics will be gathered.
|
|
31
29
|
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
[CameraKit Web SDK
|
|
1
|
+
[**CameraKit Web SDK v1.2.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[CameraKit Web SDK](../globals.md) / LensRepository
|
|
2
6
|
|
|
3
7
|
# Class: LensRepository
|
|
4
8
|
|
|
@@ -8,7 +12,7 @@ Lens groups are configured in the CameraKit Portal -- that's where you'll find l
|
|
|
8
12
|
|
|
9
13
|
Lenses must be loaded by the LensRepository before they can be applied to a [CameraKitSession](CameraKitSession.md).
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
## Example
|
|
12
16
|
|
|
13
17
|
```ts
|
|
14
18
|
const cameraKit = await bootstrapCameraKit(options)
|
|
@@ -17,30 +21,27 @@ const lens = await cameraKit.lensRepository.loadLens(lensId, groupId)
|
|
|
17
21
|
session.applyLens(lens)
|
|
18
22
|
```
|
|
19
23
|
|
|
20
|
-
## Table of contents
|
|
21
|
-
|
|
22
|
-
### Methods
|
|
23
|
-
|
|
24
|
-
- [loadLens](LensRepository.md#loadlens)
|
|
25
|
-
- [loadLensGroups](LensRepository.md#loadlensgroups)
|
|
26
|
-
- [cacheLensContent](LensRepository.md#cachelenscontent)
|
|
27
|
-
- [getLensMetadata](LensRepository.md#getlensmetadata)
|
|
28
|
-
- [removeCachedLenses](LensRepository.md#removecachedlenses)
|
|
29
|
-
|
|
30
24
|
## Methods
|
|
31
25
|
|
|
32
|
-
### loadLens
|
|
26
|
+
### loadLens()
|
|
33
27
|
|
|
34
|
-
|
|
28
|
+
> **loadLens**(`lensId`, `groupId`): `Promise`\<[`Lens`](../interfaces/Lens.md)\>
|
|
35
29
|
|
|
36
30
|
Retrieve a single Lens.
|
|
37
31
|
|
|
38
32
|
#### Parameters
|
|
39
33
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
##### lensId
|
|
35
|
+
|
|
36
|
+
`string`
|
|
37
|
+
|
|
38
|
+
Desired Lens's unique ID. Can be found in the CameraKit Portal.
|
|
39
|
+
|
|
40
|
+
##### groupId
|
|
41
|
+
|
|
42
|
+
`string`
|
|
43
|
+
|
|
44
|
+
The ID of a group containing the desired Lens. Can be found in the CameraKit Portal.
|
|
44
45
|
|
|
45
46
|
#### Returns
|
|
46
47
|
|
|
@@ -48,11 +49,11 @@ Retrieve a single Lens.
|
|
|
48
49
|
|
|
49
50
|
Resolves with the desired Lens, or rejects if an error occurred (including a missing Lens).
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
***
|
|
52
53
|
|
|
53
|
-
### loadLensGroups
|
|
54
|
+
### loadLensGroups()
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
> **loadLensGroups**(`groupIds`): `Promise`\<`object`\>
|
|
56
57
|
|
|
57
58
|
Retrieve the Lenses contained in a list of Lens Groups.
|
|
58
59
|
|
|
@@ -62,23 +63,33 @@ Lenses which could be successfully retrieved will be available in the response.
|
|
|
62
63
|
|
|
63
64
|
#### Parameters
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
##### groupIds
|
|
67
|
+
|
|
68
|
+
`string`[]
|
|
69
|
+
|
|
70
|
+
A list of Lens Group IDs. Can be found in the CameraKit Portal.
|
|
68
71
|
|
|
69
72
|
#### Returns
|
|
70
73
|
|
|
71
|
-
`Promise
|
|
74
|
+
`Promise`\<`object`\>
|
|
72
75
|
|
|
73
76
|
Resolves with a flattened list of all lenses in the desired groups. If any errors occurred during the
|
|
74
77
|
query operation, these will be included in a separate list. If errors are present, the list of Lenses may not
|
|
75
78
|
contain all the Lenses from the desired groups.
|
|
76
79
|
|
|
77
|
-
|
|
80
|
+
##### errors
|
|
78
81
|
|
|
79
|
-
|
|
82
|
+
> **errors**: `Error`[]
|
|
80
83
|
|
|
81
|
-
|
|
84
|
+
##### lenses
|
|
85
|
+
|
|
86
|
+
> **lenses**: [`Lens`](../interfaces/Lens.md)[]
|
|
87
|
+
|
|
88
|
+
***
|
|
89
|
+
|
|
90
|
+
### cacheLensContent()
|
|
91
|
+
|
|
92
|
+
> **cacheLensContent**(`lenses`, `assetTimingsToCache`): `Promise`\<`void`\>
|
|
82
93
|
|
|
83
94
|
Loads and caches lens content and dependencies to reduce latency when [CameraKitSession.applyLens](CameraKitSession.md#applylens) is later
|
|
84
95
|
called to apply the lens. This is an in-memory cache, it will not be persisted across page loads.
|
|
@@ -89,16 +100,26 @@ become active, this might be a good opportunity to cache lenses to improve apply
|
|
|
89
100
|
|
|
90
101
|
#### Parameters
|
|
91
102
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
103
|
+
##### lenses
|
|
104
|
+
|
|
105
|
+
[`Lens`](../interfaces/Lens.md)[]
|
|
106
|
+
|
|
107
|
+
Array of lenses to cache in memory.
|
|
108
|
+
|
|
109
|
+
##### assetTimingsToCache
|
|
110
|
+
|
|
111
|
+
[`AssetTiming`](../type-aliases/AssetTiming.md)[] = `...`
|
|
112
|
+
|
|
113
|
+
Lenses specify certain required assets that are necessary for the lens to render, and
|
|
114
|
+
other assets which may be needed by the lens. By default this method will cache all of those assets, but this
|
|
115
|
+
behavior can be modified to only load the required assets, only the "onDemand" assets, or neither (by passing
|
|
116
|
+
an empty array).
|
|
96
117
|
|
|
97
118
|
#### Returns
|
|
98
119
|
|
|
99
120
|
`Promise`\<`void`\>
|
|
100
121
|
|
|
101
|
-
|
|
122
|
+
#### Example
|
|
102
123
|
|
|
103
124
|
```ts
|
|
104
125
|
const lens = await cameraKit.lensRepository.loadLens(lensId, groupId)
|
|
@@ -108,37 +129,37 @@ await cameraKit.lensRepository.cacheLensContent([lens])
|
|
|
108
129
|
await cameraKitSession.applyLens(lens)
|
|
109
130
|
```
|
|
110
131
|
|
|
111
|
-
|
|
132
|
+
***
|
|
112
133
|
|
|
113
|
-
### getLensMetadata
|
|
134
|
+
### getLensMetadata()
|
|
114
135
|
|
|
115
|
-
|
|
136
|
+
> **getLensMetadata**(`lensId`): `undefined` \| `LensProtoWithGroupId`
|
|
116
137
|
|
|
117
138
|
Returns loaded Lens metadata if available.
|
|
118
139
|
|
|
119
140
|
#### Parameters
|
|
120
141
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
142
|
+
##### lensId
|
|
143
|
+
|
|
144
|
+
`string`
|
|
124
145
|
|
|
125
146
|
#### Returns
|
|
126
147
|
|
|
127
148
|
`undefined` \| `LensProtoWithGroupId`
|
|
128
149
|
|
|
129
|
-
|
|
150
|
+
***
|
|
130
151
|
|
|
131
|
-
### removeCachedLenses
|
|
152
|
+
### removeCachedLenses()
|
|
132
153
|
|
|
133
|
-
|
|
154
|
+
> **removeCachedLenses**(`lenses`): `void`
|
|
134
155
|
|
|
135
156
|
Removes Lens content from the in-memory cache.
|
|
136
157
|
|
|
137
158
|
#### Parameters
|
|
138
159
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
160
|
+
##### lenses
|
|
161
|
+
|
|
162
|
+
[`Lens`](../interfaces/Lens.md)[]
|
|
142
163
|
|
|
143
164
|
#### Returns
|
|
144
165
|
|
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
[CameraKit Web SDK
|
|
1
|
+
[**CameraKit Web SDK v1.2.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[CameraKit Web SDK](../globals.md) / Transform2D
|
|
2
6
|
|
|
3
7
|
# Class: Transform2D
|
|
4
8
|
|
|
5
9
|
Use this class to supply the CameraKitSession::setSourceTransform with the proper data
|
|
6
10
|
needed to apply transformations.
|
|
7
11
|
|
|
8
|
-
## Table of contents
|
|
9
|
-
|
|
10
|
-
### Constructors
|
|
11
|
-
|
|
12
|
-
- [constructor](Transform2D.md#constructor)
|
|
13
|
-
|
|
14
|
-
### Properties
|
|
15
|
-
|
|
16
|
-
- [MirrorX](Transform2D.md#mirrorx)
|
|
17
|
-
- [MirrorY](Transform2D.md#mirrory)
|
|
18
|
-
- [Identity](Transform2D.md#identity)
|
|
19
|
-
- [matrix](Transform2D.md#matrix)
|
|
20
|
-
|
|
21
12
|
## Constructors
|
|
22
13
|
|
|
23
|
-
###
|
|
14
|
+
### new Transform2D()
|
|
24
15
|
|
|
25
|
-
|
|
16
|
+
> **new Transform2D**(`matrix`): [`Transform2D`](Transform2D.md)
|
|
26
17
|
|
|
27
18
|
#### Parameters
|
|
28
19
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
##### matrix
|
|
21
|
+
|
|
22
|
+
[`number`, `number`, `number`, `number`, `number`, `number`, `number`, `number`, `number`]
|
|
23
|
+
|
|
24
|
+
A 3x3 matrix in column-major order, representing a 2D transform to be applied to the source media
|
|
32
25
|
|
|
33
26
|
#### Returns
|
|
34
27
|
|
|
@@ -38,24 +31,24 @@ needed to apply transformations.
|
|
|
38
31
|
|
|
39
32
|
### MirrorX
|
|
40
33
|
|
|
41
|
-
|
|
34
|
+
> `readonly` `static` **MirrorX**: [`Transform2D`](Transform2D.md)
|
|
42
35
|
|
|
43
|
-
|
|
36
|
+
***
|
|
44
37
|
|
|
45
38
|
### MirrorY
|
|
46
39
|
|
|
47
|
-
|
|
40
|
+
> `readonly` `static` **MirrorY**: [`Transform2D`](Transform2D.md)
|
|
48
41
|
|
|
49
|
-
|
|
42
|
+
***
|
|
50
43
|
|
|
51
44
|
### Identity
|
|
52
45
|
|
|
53
|
-
|
|
46
|
+
> `readonly` `static` **Identity**: [`Transform2D`](Transform2D.md)
|
|
54
47
|
|
|
55
|
-
|
|
48
|
+
***
|
|
56
49
|
|
|
57
50
|
### matrix
|
|
58
51
|
|
|
59
|
-
|
|
52
|
+
> `readonly` **matrix**: [`number`, `number`, `number`, `number`, `number`, `number`, `number`, `number`, `number`]
|
|
60
53
|
|
|
61
54
|
A 3x3 matrix in column-major order, representing a 2D transform to be applied to the source media
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
[CameraKit Web SDK
|
|
1
|
+
[**CameraKit Web SDK v1.2.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[CameraKit Web SDK](../globals.md) / TypedCustomEvent
|
|
2
6
|
|
|
3
7
|
# Class: TypedCustomEvent\<N, T\>
|
|
4
8
|
|
|
@@ -6,49 +10,35 @@ This wrapper around CustomEvent provides more descriptive type information. By u
|
|
|
6
10
|
of the CustomEvent will be typed as a string literal – this allows [TypedEventTarget] to provide more useful type
|
|
7
11
|
checking of events.
|
|
8
12
|
|
|
9
|
-
##
|
|
10
|
-
|
|
11
|
-
| Name | Type |
|
|
12
|
-
| :------ | :------ |
|
|
13
|
-
| `N` | extends `string` = `string` |
|
|
14
|
-
| `T` | `any` |
|
|
15
|
-
|
|
16
|
-
## Hierarchy
|
|
13
|
+
## Extends
|
|
17
14
|
|
|
18
15
|
- `CustomEvent`\<`T`\>
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
## Type Parameters
|
|
21
18
|
|
|
22
|
-
|
|
19
|
+
• **N** *extends* `string` = `string`
|
|
23
20
|
|
|
24
|
-
|
|
21
|
+
• **T** = `any`
|
|
25
22
|
|
|
26
|
-
|
|
23
|
+
## Constructors
|
|
27
24
|
|
|
28
|
-
###
|
|
25
|
+
### new TypedCustomEvent()
|
|
29
26
|
|
|
30
|
-
|
|
27
|
+
> **new TypedCustomEvent**\<`N`, `T`\>(`type`, `detail`, `eventInitDict`): [`TypedCustomEvent`](TypedCustomEvent.md)\<`N`, `T`\>
|
|
31
28
|
|
|
32
|
-
|
|
29
|
+
#### Parameters
|
|
33
30
|
|
|
34
|
-
|
|
31
|
+
##### type
|
|
35
32
|
|
|
36
|
-
|
|
33
|
+
`N`
|
|
37
34
|
|
|
38
|
-
|
|
35
|
+
##### detail
|
|
39
36
|
|
|
40
|
-
|
|
41
|
-
| :------ | :------ |
|
|
42
|
-
| `N` | extends `string` = `string` |
|
|
43
|
-
| `T` | `any` |
|
|
37
|
+
`T`
|
|
44
38
|
|
|
45
|
-
|
|
39
|
+
##### eventInitDict
|
|
46
40
|
|
|
47
|
-
|
|
48
|
-
| :------ | :------ |
|
|
49
|
-
| `type` | `N` |
|
|
50
|
-
| `detail` | `T` |
|
|
51
|
-
| `eventInitDict` | `Omit`\<`CustomEventInit`\<`T`\>, ``"detail"``\> |
|
|
41
|
+
`Omit`\<`CustomEventInit`\<`T`\>, `"detail"`\> = `{}`
|
|
52
42
|
|
|
53
43
|
#### Returns
|
|
54
44
|
|
|
@@ -56,14 +46,16 @@ checking of events.
|
|
|
56
46
|
|
|
57
47
|
#### Overrides
|
|
58
48
|
|
|
59
|
-
CustomEvent
|
|
49
|
+
`CustomEvent<T>.constructor`
|
|
60
50
|
|
|
61
51
|
## Properties
|
|
62
52
|
|
|
63
53
|
### type
|
|
64
54
|
|
|
65
|
-
|
|
55
|
+
> `readonly` **type**: `N`
|
|
56
|
+
|
|
57
|
+
Returns the type of event, e.g. "click", "hashchange", or "submit".
|
|
66
58
|
|
|
67
59
|
#### Overrides
|
|
68
60
|
|
|
69
|
-
CustomEvent.type
|
|
61
|
+
`CustomEvent.type`
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
[CameraKit Web SDK
|
|
1
|
+
[**CameraKit Web SDK v1.2.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[CameraKit Web SDK](../globals.md) / TypedEventTarget
|
|
2
6
|
|
|
3
7
|
# Class: TypedEventTarget\<Events\>
|
|
4
8
|
|
|
@@ -9,35 +13,15 @@ strings are correctly associated.
|
|
|
9
13
|
For example, when calling TypedEventTarget::addEventListener, the event passed to the callback will have the correct
|
|
10
14
|
type corresponding to the type of event for which the listener has been added.
|
|
11
15
|
|
|
12
|
-
## Type
|
|
13
|
-
|
|
14
|
-
| Name | Type |
|
|
15
|
-
| :------ | :------ |
|
|
16
|
-
| `Events` | extends [`TypedCustomEvent`](TypedCustomEvent.md) = [`TypedCustomEvent`](TypedCustomEvent.md) |
|
|
17
|
-
|
|
18
|
-
## Table of contents
|
|
19
|
-
|
|
20
|
-
### Constructors
|
|
16
|
+
## Type Parameters
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Methods
|
|
25
|
-
|
|
26
|
-
- [addEventListener](TypedEventTarget.md#addeventlistener)
|
|
27
|
-
- [dispatchEvent](TypedEventTarget.md#dispatchevent)
|
|
28
|
-
- [removeEventListener](TypedEventTarget.md#removeeventlistener)
|
|
18
|
+
• **Events** *extends* [`TypedCustomEvent`](TypedCustomEvent.md) = [`TypedCustomEvent`](TypedCustomEvent.md)
|
|
29
19
|
|
|
30
20
|
## Constructors
|
|
31
21
|
|
|
32
|
-
###
|
|
33
|
-
|
|
34
|
-
• **new TypedEventTarget**\<`Events`\>(): [`TypedEventTarget`](TypedEventTarget.md)\<`Events`\>
|
|
35
|
-
|
|
36
|
-
#### Type parameters
|
|
22
|
+
### new TypedEventTarget()
|
|
37
23
|
|
|
38
|
-
|
|
39
|
-
| :------ | :------ |
|
|
40
|
-
| `Events` | extends [`TypedCustomEvent`](TypedCustomEvent.md)\<`string`, `any`, `Events`\> = [`TypedCustomEvent`](TypedCustomEvent.md)\<`string`, `any`\> |
|
|
24
|
+
> **new TypedEventTarget**\<`Events`\>(): [`TypedEventTarget`](TypedEventTarget.md)\<`Events`\>
|
|
41
25
|
|
|
42
26
|
#### Returns
|
|
43
27
|
|
|
@@ -45,62 +29,67 @@ type corresponding to the type of event for which the listener has been added.
|
|
|
45
29
|
|
|
46
30
|
## Methods
|
|
47
31
|
|
|
48
|
-
### addEventListener
|
|
32
|
+
### addEventListener()
|
|
49
33
|
|
|
50
|
-
|
|
34
|
+
> **addEventListener**\<`K`\>(`type`, `callback`, `options`?): `void`
|
|
51
35
|
|
|
52
|
-
#### Type
|
|
36
|
+
#### Type Parameters
|
|
53
37
|
|
|
54
|
-
|
|
55
|
-
| :------ | :------ |
|
|
56
|
-
| `K` | extends `string` |
|
|
38
|
+
• **K** *extends* `string`
|
|
57
39
|
|
|
58
40
|
#### Parameters
|
|
59
41
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
42
|
+
##### type
|
|
43
|
+
|
|
44
|
+
`K`
|
|
45
|
+
|
|
46
|
+
##### callback
|
|
47
|
+
|
|
48
|
+
`TypedEventListener`\<`EventOfType`\<`K`, `Events`\>\>
|
|
49
|
+
|
|
50
|
+
##### options?
|
|
51
|
+
|
|
52
|
+
`TypedEventListenerOptions`
|
|
65
53
|
|
|
66
54
|
#### Returns
|
|
67
55
|
|
|
68
56
|
`void`
|
|
69
57
|
|
|
70
|
-
|
|
58
|
+
***
|
|
71
59
|
|
|
72
|
-
### dispatchEvent
|
|
60
|
+
### dispatchEvent()
|
|
73
61
|
|
|
74
|
-
|
|
62
|
+
> **dispatchEvent**(`event`): `true`
|
|
75
63
|
|
|
76
64
|
#### Parameters
|
|
77
65
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
66
|
+
##### event
|
|
67
|
+
|
|
68
|
+
`Events`
|
|
81
69
|
|
|
82
70
|
#### Returns
|
|
83
71
|
|
|
84
|
-
|
|
72
|
+
`true`
|
|
85
73
|
|
|
86
|
-
|
|
74
|
+
***
|
|
87
75
|
|
|
88
|
-
### removeEventListener
|
|
76
|
+
### removeEventListener()
|
|
89
77
|
|
|
90
|
-
|
|
78
|
+
> **removeEventListener**\<`K`\>(`type`, `callback`): `void`
|
|
91
79
|
|
|
92
|
-
#### Type
|
|
80
|
+
#### Type Parameters
|
|
93
81
|
|
|
94
|
-
|
|
95
|
-
| :------ | :------ |
|
|
96
|
-
| `K` | extends `string` |
|
|
82
|
+
• **K** *extends* `string`
|
|
97
83
|
|
|
98
84
|
#### Parameters
|
|
99
85
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
86
|
+
##### type
|
|
87
|
+
|
|
88
|
+
`K`
|
|
89
|
+
|
|
90
|
+
##### callback
|
|
91
|
+
|
|
92
|
+
`TypedEventListener`\<`EventOfType`\<`K`, `Events`\>\>
|
|
104
93
|
|
|
105
94
|
#### Returns
|
|
106
95
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[**CameraKit Web SDK v1.2.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[CameraKit Web SDK](../globals.md) / Lens\_CameraFacing
|
|
6
|
+
|
|
7
|
+
# Enumeration: Lens\_CameraFacing
|
|
8
|
+
|
|
9
|
+
## Enumeration Members
|
|
10
|
+
|
|
11
|
+
### CAMERA\_FACING\_UNSET
|
|
12
|
+
|
|
13
|
+
> **CAMERA\_FACING\_UNSET**: `0`
|
|
14
|
+
|
|
15
|
+
***
|
|
16
|
+
|
|
17
|
+
### CAMERA\_FACING\_FRONT
|
|
18
|
+
|
|
19
|
+
> **CAMERA\_FACING\_FRONT**: `1`
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### CAMERA\_FACING\_BACK
|
|
24
|
+
|
|
25
|
+
> **CAMERA\_FACING\_BACK**: `2`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### UNRECOGNIZED
|
|
30
|
+
|
|
31
|
+
> **UNRECOGNIZED**: `-1`
|