Class: default
Hierarchy
PureComponent
<CameraKitProps
>↳
default
Constructors
constructor
• new default(props
)
Parameters
Name | Type |
---|---|
props | CameraKitProps |
Overrides
React.PureComponent<CameraKitProps\>.constructor
Defined in
Properties
defaultProps
▪ Static
defaultProps: Object
Type declaration
Name | Type |
---|---|
initialCameraFacing | string |
initialLens | null |
isActive | boolean |
lensGroups | null |
Defined in
Methods
adjustBlur
▸ adjustBlur(amount
): void
Parameters
Name | Type |
---|---|
amount | number |
Returns
void
Defined in
adjustLensesVolume
▸ adjustLensesVolume(mute
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
mute | Boolean |
Returns
Promise
<boolean
>
Defined in
adjustTone
▸ adjustTone(amount
): void
Parameters
Name | Type |
---|---|
amount | number |
Returns
void
Defined in
cancelRecording
▸ cancelRecording(): Promise
<void
>
Returns
Promise
<void
>
Defined in
changeLensById
▸ changeLensById(lensId
, options?
): Promise
<void
>
Parameters
Name | Type |
---|---|
lensId | string |
options? | ChangeLensByIdOptions |
Returns
Promise
<void
>
Defined in
checkBlurSupporting
▸ checkBlurSupporting(): Promise
<boolean
>
Returns
Promise
<boolean
>
Defined in
checkToneModeSupporting
▸ checkToneModeSupporting(): Promise
<boolean
>
Returns
Promise
<boolean
>
Defined in
clearLenses
▸ clearLenses(): Promise
<boolean
>
Returns
Promise
<boolean
>
Defined in
flipCamera
▸ flipCamera(): Promise
<CameraPosition
>
Returns
Promise
<CameraPosition
>
Defined in
focus
▸ focus(point
): Promise
<void
>
Parameters
Name | Type |
---|---|
point | Point |
Returns
Promise
<void
>
Defined in
getLenses
▸ getLenses(lensGroup?
): Promise
<Lens
[]>
Parameters
Name | Type |
---|---|
lensGroup? | string |
Returns
Promise
<Lens
[]>
Defined in
pauseRecording
▸ pauseRecording(): Promise
<void
>
Returns
Promise
<void
>
Defined in
render
▸ render(): Element
Returns
Element
Overrides
React.PureComponent.render
Defined in
resumeRecording
▸ resumeRecording(): Promise
<void
>
Returns
Promise
<void
>
Defined in
startRecording
▸ startRecording(options
): Promise
<void
>
Parameters
Name | Type |
---|---|
options | RecordVideoOptions |
Returns
Promise
<void
>
Defined in
stopRecording
▸ stopRecording(): Promise
<void
>
Returns
Promise
<void
>
Defined in
takePhoto
▸ takePhoto(options?
): Promise
<void
>
Parameters
Name | Type |
---|---|
options? | TakePhotoOptions |
Returns
Promise
<void
>
Defined in
zoom
▸ zoom(factor
): Promise
<void
>
Parameters
Name | Type |
---|---|
factor | number |
Returns
Promise
<void
>