UNPKG

theta-client-react-native

Version:

This library provides a way to control RICOH THETA using.

49 lines 2.23 kB
import { CaptureBuilder, CapturingStatusEnum } from './capture'; import { NotifyController } from '../theta-repository/notify-controller'; /** * ShotCountSpecifiedIntervalCapture class */ export declare class ShotCountSpecifiedIntervalCapture { notify: NotifyController; constructor(notify: NotifyController); /** * start interval shooting with the shot count specified * @param onProgress the block for interval shooting with the shot count specified onProgress * @param onStopFailed the block for error of cancelCapture * @param onCapturing Called when change capture status * @return promise of captured file url */ startCapture(onProgress?: (completion?: number) => void, onStopFailed?: (error: any) => void, onCapturing?: (status: CapturingStatusEnum) => void): Promise<string[] | undefined>; /** * cancel interval shooting with the shot count specified */ cancelCapture(): Promise<any>; } /** * ShotCountSpecifiedIntervalCaptureBuilder class */ export declare class ShotCountSpecifiedIntervalCaptureBuilder extends CaptureBuilder<ShotCountSpecifiedIntervalCaptureBuilder> { interval?: number; readonly shotCount: number; /** construct ShotCountSpecifiedIntervalCaptureBuilder instance */ constructor(shotCount: number); /** * set interval of checking interval shooting with the shot count specified status command * @param timeMillis interval * @returns ShotCountSpecifiedIntervalCaptureBuilder */ setCheckStatusCommandInterval(timeMillis: number): ShotCountSpecifiedIntervalCaptureBuilder; /** * Set shooting interval (sec.) for interval shooting. * @param {interval} interval sec. * @return ShotCountSpecifiedIntervalCaptureBuilder */ setCaptureInterval(interval: number): ShotCountSpecifiedIntervalCaptureBuilder; /** * Builds an instance of a ShotCountSpecifiedIntervalCapture that has all the combined * parameters of the Options that have been added to the Builder. * @return promise of ShotCountSpecifiedIntervalCapture instance */ build(): Promise<ShotCountSpecifiedIntervalCapture>; } //# sourceMappingURL=shot-count-specified-interval-capture.d.ts.map