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アシストセットアップを使用してプラグインをインストールできます。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 Setup を使用する場合は、プラットフォーム固有の指示に従うために、以下のコマンドを実行してプラグインをインストールしてください:
npm install @capgo/capacitor-ricoh360npx cap syncImport
「Import」タイトルのセクションimport { Ricoh360Camera } from '@capgo/capacitor-ricoh360';API の概要
「API の概要」タイトルのセクション各例では、インポートを繰り返して Snippet を単独でコピーできるようにします。
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
「動画のキャプチャ」をクリック動画をキャプチャします
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.captureVideo({} as VideoCaptureOptions);livePreview
「ライブプレビュー」をクリックライブプレビューを開始します
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.livePreview({} as LivePreviewOptions);stopLivePreview
「ライブプレビューの停止」をクリックライブプレビューを停止します
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.stopLivePreview();readSettings
「カメラの設定の読み取り」をクリックカメラの設定を読み取ります
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.readSettings({} as { options: string[] });setSettings
セクション「設定を設定」カメラの設定を設定します
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.setSettings({} as { options: Record<string, any> });sendCommand
セクション「コマンドを送信」カメラにRAWコマンドを送信します
import { Ricoh360Camera } from '@capgo/capacitor-ricoh360';
await Ricoh360Camera.sendCommand({} as { endpoint: string; payload: Record<string, any> });型の参照
型の参照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.ts公開 API がアップストリームで変更された場合に再度 Sync を実行してください。
Getting Started から続けてください
「Getting Started から続けてください」Capacitor を使用している場合 Getting Started ネイティブメディアとインターフェイスの動作を計画する場合、Capacitor を Using @capgo/capacitor-live-activities for the native capability in Using @capgo/capacitor-live-activities, @capgo/capacitor-live-activities @capgo/capacitor-live-activitiesの実装詳細について @capgo/capacitor-video-playerを使用 @capgo/capacitor-video-playerのネイティブ機能について @capgo/capacitor-video-player @capgo/capacitor-video-playerの実装詳細について、そして @capgo/capacitor-native-navigationを使用 @capgo/capacitor-native-navigationのネイティブ機能について