UNPKG

theta-client-react-native

Version:

This library provides a way to control RICOH THETA using.

51 lines 2.03 kB
import { CaptureBuilder, CapturingStatusEnum } from './capture'; import { NotifyController } from '../theta-repository/notify-controller'; import type { PhotoFileFormatEnum } from '../theta-repository/options'; import { ContinuousNumberEnum } from '../theta-repository/options'; /** * ContinuousCapture class */ export declare class ContinuousCapture { notify: NotifyController; constructor(notify: NotifyController); /** * start continuous shooting * @param onProgress the block for continuous shooting onProgress * @param onCapturing Called when change capture status * @return promise of captured file url */ startCapture(onProgress?: (completion?: number) => void, onCapturing?: (status: CapturingStatusEnum) => void): Promise<string[] | undefined>; /** * Get Number of shots for continuous shooting. * @returns ContinuousNumberEnum */ getContinuousNumber(): Promise<ContinuousNumberEnum>; } /** * ContinuousCaptureBuilder class */ export declare class ContinuousCaptureBuilder extends CaptureBuilder<ContinuousCaptureBuilder> { interval?: number; /** construct ContinuousCaptureBuilder instance */ constructor(); /** * set interval of checking continuous shooting status command * @param timeMillis interval * @returns ContinuousCaptureBuilder */ setCheckStatusCommandInterval(timeMillis: number): ContinuousCaptureBuilder; /** * Set photo file format. * Continuous shooting only supports 5.5K and 11K * @param {PhotoFileFormatEnum} fileFormat Photo file format to set * @return PhotoCaptureBuilder */ setFileFormat(fileFormat: PhotoFileFormatEnum): ContinuousCaptureBuilder; /** * Builds an instance of a ContinuousCapture that has all the combined * parameters of the Options that have been added to the Builder. * @return promise of ContinuousCapture instance */ build(): Promise<ContinuousCapture>; } //# sourceMappingURL=continuous-capture.d.ts.map