CaptureServiceクラス
ひとことで言うと
CaptureServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):A service which provides control over screenshot and video capture features.
クラスの関係
メソッド(11)
| 名前と書き方 | 説明 |
|---|---|
CaptureScreenshotCaptureService:CaptureScreenshot(onCaptureReady: Function): () | Takes a screenshot and provides a temporary contentId to identify it. |
CheckUploadCaptureStatusAsyncCaptureService:CheckUploadCaptureStatusAsync(token: string): Tuple | Polls the status of an in-progress capture upload started by Class.CaptureService:StartUploadCaptureAsync()|StartUploadCaptureAsync(). |
PromptCaptureGalleryPermissionAsyncCaptureService:PromptCaptureGalleryPermissionAsync(captureGalleryPermission: CaptureGalleryPermission): boolean | Prompts the user for permission to access their local capture gallery. |
PromptSaveCapturesToGalleryCaptureService:PromptSaveCapturesToGallery(captures: Array, resultCallback: Function): () | Prompts the user to save specified captures to their gallery. |
PromptShareCaptureCaptureService:PromptShareCapture(captureContent: Content, launchData: string, onAcceptedCallback: Function, onDeniedCallback: Function): () | Prompts the user to share a specified capture. |
ReadCapturesFromGalleryAsyncCaptureService:ReadCapturesFromGalleryAsync(captureTypeFilters: Array, readFromAllEligibleExperiences: boolean): Tuple | Returns a paginated list of captures from the user's gallery. |
StartUploadCaptureAsyncCaptureService:StartUploadCaptureAsync(capture: Capture): Tuple | Begins uploading a capture to the asset system and returns a token used to poll the upload's status. |
StartVideoCaptureAsyncCaptureService:StartVideoCaptureAsync(onCaptureReady: Function, captureParams: Dictionary): VideoCaptureStartedResult | Initiates a video capture recording. |
StopVideoCaptureCaptureService:StopVideoCapture(): () | Ends a video capture initiated by Class.CaptureService:StartVideoCaptureAsync()|StartVideoCaptureAsync(). |
TakeScreenshotCaptureAsyncCaptureService:TakeScreenshotCaptureAsync(onCaptureReady: Function, captureParams: Dictionary): () | Initiates a screenshot capture. |
UploadCaptureAsyncCaptureService:UploadCaptureAsync(capture: Capture): Tuple | Uploads a capture to the asset system and returns the result and asset ID. |
イベント(3)
| 名前と書き方 | 説明 |
|---|---|
CaptureBeganCaptureService.CaptureBegan(captureType: CaptureType) | Fires immediately before a capture begins. |
CaptureEndedCaptureService.CaptureEnded(captureType: CaptureType) | Fires after a capture finishes. |
UserCaptureSavedCaptureService.UserCaptureSaved(captureContentId: ContentId) | Fires when the user saves a capture. |
受け継いでいるメンバー
Instance から受け継いでいるもの(46)
Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged
Object から受け継いでいるもの(4)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(CaptureService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。