Getting Started
このプラグインのセットアップコマンドとインストールステップ、そしてフルマークダウンガイドをコピーしてください。
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.
インストール
セクションのタイトルは「インストール」AI-Assisted セットアップを使用してプラグインをインストールできます。次のコマンドを使用して、AI ツールに Capgo スキルを追加します。
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins次のプロンプトを使用してください:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-ricoh360` plugin in my project.Manual セットアップを使用する場合は、次のコマンドを実行して、以下のプラットフォーム固有の指示に従ってください。
npm install @capgo/capacitor-ricoh360npx cap syncImport
「Import」セクションimport { Ricoh360Camera } from '@capgo/capacitor-ricoh360';API オーバービュー
API の概要各例では、スニペットを単独でコピーできるように、import を繰り返します。
initialize
「__CAPGO_KEEP_0__ の初期化」Initializes the SDK with camera URL
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.initialize({} as InitializeOptions);getCameraAsset
URL からカメラアセットを取得し、base64 で返します。コピーする
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.getCameraAsset({} as GetCameraAssetOptions);listFiles
カメラに保存されているファイルをリストします。コピーする
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.listFiles();capturePicture
__CAPGO_KEEP_0__写真を撮る
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
コマンドレスポンス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;}真実の源
真実の源のセクションこのページはプラグインの src/definitions.tsAPIの公開バージョンがアップストリームで変更されたときに、再度Syncを実行してください。
Getting Startedから続けてください
Keep going from Getting Startedのセクションあなたが Getting Started ネイティブメディアとインターフェイスの動作を計画する場合、 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.