시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/ricoh360`, `@capgo/capacitor-ricoh360-camera-plugin`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/ricoh360-camera/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
설치
설치 제목bun add @capgo/ricoh360bunx cap sync수입
수입 제목import { Ricoh360Camera } from '@capgo/ricoh360';API 개요
API 개요initialize
초기화SDK을 카메라 URL로 초기화합니다.
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.initialize({} as InitializeOptions);getCameraAsset
__CAPGO_KEEP_0__ 카메라 자산을 URL에서 가져와 base64 형식으로 반환합니다.클립보드에 복사
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.getCameraAsset({} as GetCameraAssetOptions);listFiles
클립보드에 복사사진을 캡처합니다.
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.listFiles();capturePicture
__CAPGO_KEEP_0____CAPGO_KEEP_0__
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.capturePicture();captureVideo
__CAPGO_KEEP_2____CAPGO_KEEP_0__
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.captureVideo({} as VideoCaptureOptions);livePreview
__CAPGO_KEEP_2____CAPGO_KEEP_0__
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.livePreview({} as LivePreviewOptions);stopLivePreview
__CAPGO_KEEP_2____CAPGO_KEEP_0__
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.stopLivePreview();readSettings
__CAPGO_KEEP_2____CAPGO_KEEP_0__ 카메라 설정을 읽습니다.
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.readSettings({} as { options: string[] });setSettings
__CAPGO_KEEP_0__ ‘setSettings’ 섹션입니다.__CAPGO_KEEP_0__ 카메라 설정을 설정합니다.
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.setSettings({} as { options: Record<string, any> });sendCommand
__CAPGO_KEEP_0__ ‘sendCommand’ 섹션입니다.__CAPGO_KEEP_0__ 카메라에 raw 명령을 전송합니다.
import { Ricoh360Camera } from '@capgo/ricoh360';
await Ricoh360Camera.sendCommand({} as { endpoint: string; payload: Record<string, any> });__CAPGO_KEEP_0__ 타입 참조
__CAPGO_KEEP_0__ ‘Type Reference’ 섹션입니다.InitializeOptions
__CAPGO_KEEP_0__ ‘InitializeOptions’ 섹션입니다.export interface InitializeOptions { url: string;}CommandResponse
명령 응답export interface CommandResponse { session?: string; info?: string; preview?: string; picture?: string; settings?: string;}GetCameraAssetOptions
카메라 자산 가져오기 옵션export interface GetCameraAssetOptions { url: string; saveToFile?: boolean;}GetCameraAssetResponse
카메라 자산 가져오기 응답export interface GetCameraAssetResponse { statusCode: number; data: string; // base64 encoded data filePath?: string;}ListFilesOptions
파일 목록 옵션export interface ListFilesOptions { fileType?: 'all' | 'image' | 'video'; startPosition?: number; entryCount?: number; maxThumbSize?: number; _detail?: boolean;}ListFilesResponse
파일 목록 응답export interface ListFilesResponse { results: { entries: { name: string; fileUrl: string; size: number; dateTimeZone: string; width?: number; height?: number; previewUrl?: string; _projectionType?: string; isProcessed?: boolean; _thumbSize?: number; }[]; totalEntries: number; };}VideoCaptureOptions
비디오 캡처 옵션export interface VideoCaptureOptions { // Define any specific options needed for capturing a video resolution?: '4K' | '2K'; frameRate?: number; bitrate?: number;}LivePreviewOptions
LivePreviewOptions 섹션export interface LivePreviewOptions { displayInFront?: boolean; cropPreview?: boolean;}진실의 근원
진실의 근원 섹션이 페이지는 플러그인의 src/definitions.ts공개 API이 업스트림에서 변경될 때 다시 싱크를 실행하세요.