Getting Started
__CAPGO_KEEP_0__
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-ricoh360`
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.
npm install @capgo/capacitor-ricoh360npx cap syncimport
설치 제목 "import"import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';API 개요
설치 제목 "API 개요"각 예제는 snipset을 복사할 수 있도록 import를 반복합니다.
initialize
설치 제목 "initialize"SDK 카메라 URL로 초기화합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.initialize({} as InitializeOptions);getCameraAsset
getCameraAsset 섹션 제목URL에서 카메라 자산을 가져와 base64로 반환합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.getCameraAsset({} as GetCameraAssetOptions);listFiles
listFiles 섹션 제목카메라에 저장된 파일 목록을 표시합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.listFiles();capturePicture
capturePicture 섹션 제목사진을 찍습니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.capturePicture();captureVideo
captureVideo 섹션 제목비디오를 캡처합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.captureVideo({} as VideoCaptureOptions);livePreview
livePreview 섹션실시간 미리보기 시작
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.livePreview({} as LivePreviewOptions);stopLivePreview
stopLivePreview 섹션실시간 미리보기 중단
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.stopLivePreview();readSettings
readSettings 섹션카메라 설정을 읽습니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.readSettings({} as { options: string[] });setSettings
setSettings 섹션카메라 설정을 설정합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.setSettings({} as { options: Record<string, any> });sendCommand
'sendCommand' 섹션입니다.카메라에 raw 명령을 전송합니다.
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.sendCommand({} as { endpoint: string; payload: Record<string, any> });타입 참조
'타입 참조' 섹션입니다.InitializeOptions
'InitializeOptions' 섹션입니다.export interface InitializeOptions { url: string;}CommandResponse
'CommandResponse' 섹션입니다.export interface CommandResponse { session?: string; info?: string; preview?: string; picture?: string; settings?: string;}GetCameraAssetOptions
'GetCameraAssetOptions' 섹션입니다.export interface GetCameraAssetOptions { url: string; saveToFile?: boolean;}GetCameraAssetResponse
GetCameraAssetResponse 섹션 제목export interface GetCameraAssetResponse { statusCode: number; data: string; // base64 encoded data filePath?: string;}ListFilesOptions
ListFilesOptions 섹션 제목export interface ListFilesOptions { fileType?: 'all' | 'image' | 'video'; startPosition?: number; entryCount?: number; maxThumbSize?: number; _detail?: boolean;}ListFilesResponse
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
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;}Source Of Truth
Source Of Truth이 페이지는 플러그인의 src/definitions.ts. 업스트림의 공공 API이 변경되었을 때 다시 싱크를 실행하세요.
Getting Started
Getting Startednative 미디어 및 인터페이스 동작을 계획하고 있는 경우 Getting Started native 미디어 및 인터페이스 동작을 계획하고 있는 경우 Using @capgo/capacitor-live-activities for the native capability in Using @capgo/capacitor-live-activities, @capgo/capacitor-live-activities for the implementation detail in @capgo/capacitor-live-activities, Using @capgo/capacitor-video-player for the native capability in Using @capgo/capacitor-video-player @capgo/capacitor-video-player for the implementation detail in @capgo/capacitor-video-player, and Using @capgo/capacitor-native-navigation for the native capability in Using @capgo/capacitor-native-navigation.