Skip to main content

Class: default

Hierarchy

  • PureComponent<CameraKitProps>

    default

Constructors

constructor

new default(props)

Parameters

NameType
propsCameraKitProps

Overrides

React.PureComponent<CameraKitProps\>.constructor

Defined in

CameraKitModule/index.tsx:145

Properties

defaultProps

Static defaultProps: Object

Type declaration

NameType
initialCameraFacingstring
initialLensnull
isActiveboolean
lensGroupsnull

Defined in

CameraKitModule/index.tsx:136

Methods

adjustBlur

adjustBlur(amount): void

Parameters

NameType
amountnumber

Returns

void

Defined in

CameraKitModule/index.tsx:250


adjustLensesVolume

adjustLensesVolume(mute): Promise<boolean>

Parameters

NameType
muteBoolean

Returns

Promise<boolean>

Defined in

CameraKitModule/index.tsx:357


adjustTone

adjustTone(amount): void

Parameters

NameType
amountnumber

Returns

void

Defined in

CameraKitModule/index.tsx:254


cancelRecording

cancelRecording(): Promise<void>

Returns

Promise<void>

Defined in

CameraKitModule/index.tsx:399


changeLensById

changeLensById(lensId, options?): Promise<void>

Parameters

NameType
lensIdstring
options?ChangeLensByIdOptions

Returns

Promise<void>

Defined in

CameraKitModule/index.tsx:290


checkBlurSupporting

checkBlurSupporting(): Promise<boolean>

Returns

Promise<boolean>

Defined in

CameraKitModule/index.tsx:233


checkToneModeSupporting

checkToneModeSupporting(): Promise<boolean>

Returns

Promise<boolean>

Defined in

CameraKitModule/index.tsx:216


clearLenses

clearLenses(): Promise<boolean>

Returns

Promise<boolean>

Defined in

CameraKitModule/index.tsx:340


flipCamera

flipCamera(): Promise<CameraPosition>

Returns

Promise<CameraPosition>

Defined in

CameraKitModule/index.tsx:266


focus

focus(point): Promise<void>

Parameters

NameType
pointPoint

Returns

Promise<void>

Defined in

CameraKitModule/index.tsx:282


getLenses

getLenses(lensGroup?): Promise<Lens[]>

Parameters

NameType
lensGroup?string

Returns

Promise<Lens[]>

Defined in

CameraKitModule/index.tsx:315


pauseRecording

pauseRecording(): Promise<void>

Returns

Promise<void>

Defined in

CameraKitModule/index.tsx:383


render

render(): Element

Returns

Element

Overrides

React.PureComponent.render

Defined in

CameraKitModule/index.tsx:415


resumeRecording

resumeRecording(): Promise<void>

Returns

Promise<void>

Defined in

CameraKitModule/index.tsx:391


startRecording

startRecording(options): Promise<void>

Parameters

NameType
optionsRecordVideoOptions

Returns

Promise<void>

Defined in

CameraKitModule/index.tsx:375


stopRecording

stopRecording(): Promise<void>

Returns

Promise<void>

Defined in

CameraKitModule/index.tsx:407


takePhoto

takePhoto(options?): Promise<void>

Parameters

NameType
options?TakePhotoOptions

Returns

Promise<void>

Defined in

CameraKitModule/index.tsx:258


zoom

zoom(factor): Promise<void>

Parameters

NameType
factornumber

Returns

Promise<void>

Defined in

CameraKitModule/index.tsx:274