theta-ble-client-react-native
Version:
This library provides a way to control RICOH THETA using
83 lines • 2.98 kB
TypeScript
import type { NotifyError, ThetaDevice } from '../theta-device';
import { ThetaService } from './theta-service';
import { BleServiceEnum, OptionName } from './values';
import type { ThetaInfo, ThetaOptions, ThetaState, ThetaState2 } from './data';
/**
* Camera Control Command V2 Service
*
* Service: B6AC7A7E-8C01-4A52-B188-68D53DF53EA2
*/
export declare class CameraControlCommandV2 extends ThetaService {
readonly service: BleServiceEnum;
readonly device: ThetaDevice;
constructor(device: ThetaDevice);
/**
* Acquires basic information of the camera and supported functions.
*
* Characteristic: A0452E2D-C7D8-4314-8CD6-7B8BBAB4D523
*
* @returns Static attributes of Theta.
*/
getInfo(): Promise<ThetaInfo>;
/**
* Acquires the camera states.
*
* Characteristic: 083D92B0-21E0-4FB2-9503-7D8B2C2BB1D1
*
* @returns Mutable values representing Theta status.
*/
getState(): Promise<ThetaState>;
/**
* Set camera state notification.
*
* Characteristic: D32CE140-B0C2-4C07-AF15-2301B5057B8C
*
* @param callback Notification function
*/
setStateNotify(callback?: (value?: ThetaState, error?: NotifyError) => void): Promise<void>;
/**
* Acquires the camera states.
*
* Characteristic: 8881CE4E-96FC-4C6C-8103-5DDA0AD138FB
*
* @returns Mutable values representing Theta status.
*/
getState2(): Promise<ThetaState2>;
/**
* Acquires the properties and property support specifications for shooting, the camera, etc.
*
* Characteristic: 7CFFAAE3-8467-4D0C-A9DD-7F70B4F52863
*
* @param optionNames List of [OptionName]
* @return Options acquired
*/
getOptions(optionNames: OptionName[]): Promise<ThetaOptions>;
/**
* Acquires the properties and property support specifications for shooting, the camera, etc.
*
* Characteristic: 7CFFAAE3-8467-4D0C-A9DD-7F70B4F52863
*
* @param optionNames List of strings representing the names of the options
* @return A map where each key is an option name and each value is the corresponding value for that option.
*/
getOptionsByString(optionNames: string[]): Promise<Record<string, unknown>>;
/**
* Property settings for shooting, the camera, etc.
*
* Characteristic: F0BCD2F9-5862-4653-B50D-80DC51E8CB82
*
* @param options Camera setting options
*/
setOptions(options: ThetaOptions): Promise<any>;
/**
* Release shutter
*
* If CaptureMode is IMAGE, perform `camera.takePicture`
* If CaptureMode is VIDEO, and CaptureState is IDLE, then `camera.startCapture` is executed
* If CaptureMode is VIDEO, and CaptureStatus is SHOOTING, then `camera.stopCapture` is executed
*
* Characteristic: 6E2DEEBE-88B0-42A5-829D-1B2C6ABCE750
*/
releaseShutter(): Promise<any>;
}
//# sourceMappingURL=camera-control-command-v2.d.ts.map