# CaptureService(ロブロックス クラス) > A service which provides control over screenshot and video capture features. - URL:https://roblox.minecraft-okinawa.com/reference/classes/CaptureService/ - 公式:https://create.roblox.com/docs/reference/engine/classes/CaptureService - 受け継いでいるクラス:Instance ## メソッド - `CaptureService:CaptureScreenshot(onCaptureReady: Function): ()`:Takes a screenshot and provides a temporary contentId to identify it. - `CaptureService:CheckUploadCaptureStatusAsync(token: string): Tuple`:Polls the status of an in-progress capture upload started by Class.CaptureService:StartUploadCaptureAsync()|StartUploadCaptureAsync(). - `CaptureService:PromptCaptureGalleryPermissionAsync(captureGalleryPermission: CaptureGalleryPermission): boolean`:Prompts the user for permission to access their local capture gallery. - `CaptureService:PromptSaveCapturesToGallery(captures: Array, resultCallback: Function): ()`:Prompts the user to save specified captures to their gallery. - `CaptureService:PromptShareCapture(captureContent: Content, launchData: string, onAcceptedCallback: Function, onDeniedCallback: Function): ()`:Prompts the user to share a specified capture. - `CaptureService:ReadCapturesFromGalleryAsync(captureTypeFilters: Array, readFromAllEligibleExperiences: boolean): Tuple`:Returns a paginated list of captures from the user's gallery. - `CaptureService:StartUploadCaptureAsync(capture: Capture): Tuple`:Begins uploading a capture to the asset system and returns a token used to poll the upload's status. - `CaptureService:StartVideoCaptureAsync(onCaptureReady: Function, captureParams: Dictionary): VideoCaptureStartedResult`:Initiates a video capture recording. - `CaptureService:StopVideoCapture(): ()`:Ends a video capture initiated by Class.CaptureService:StartVideoCaptureAsync()|StartVideoCaptureAsync(). - `CaptureService:TakeScreenshotCaptureAsync(onCaptureReady: Function, captureParams: Dictionary): ()`:Initiates a screenshot capture. - `CaptureService:UploadCaptureAsync(capture: Capture): Tuple`:Uploads a capture to the asset system and returns the result and asset ID. ## イベント - `CaptureService.CaptureBegan(captureType: CaptureType)`:Fires immediately before a capture begins. - `CaptureService.CaptureEnded(captureType: CaptureType)`:Fires after a capture finishes. - `CaptureService.UserCaptureSaved(captureContentId: ContentId)`:Fires when the user saves a capture. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)