Returns {
applyLens: (
lensId: string,
launchData?: LensLaunchData,
) => Promise<boolean>;
isSessionReady: boolean;
loadLensGroup: (groupId: string) => Promise<Lens[]>;
removeLens: () => Promise<boolean>;
takeSnapshot: (
format: ImageFormats,
quality: number,
) => Promise<{ uri: string }>;
takeVideo: () => { stop: () => Promise<{ uri: string }> };
}
An object containing various camera-related functions and properties.
applyLens: (lensId: string, launchData?: LensLaunchData) => Promise<boolean>
isSessionReady: boolean
loadLensGroup: (groupId: string) => Promise<Lens[]>
removeLens: () => Promise<boolean>
takeSnapshot: (format: ImageFormats, quality: number) => Promise<{ uri: string }>
takeVideo: () => { stop: () => Promise<{ uri: string }> }
Custom hook to access the CameraKit state and functionality.