CaptureServiceクラス

クラスサービス(game:GetService("CaptureService")で取り出す)Instance.newでは作れない日本語解説は準備中

ひとことで言うと

CaptureServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):A service which provides control over screenshot and video capture features.

クラスの関係

受け継いでいるクラス:Object → Instance → CaptureService

メソッド(11)

名前と書き方説明
CaptureScreenshot
CaptureService:CaptureScreenshot(onCaptureReady: Function): ()
Takes a screenshot and provides a temporary contentId to identify it.
CheckUploadCaptureStatusAsync
CaptureService:CheckUploadCaptureStatusAsync(token: string): Tuple
Polls the status of an in-progress capture upload started by Class.CaptureService:StartUploadCaptureAsync()|StartUploadCaptureAsync().
PromptCaptureGalleryPermissionAsync
CaptureService:PromptCaptureGalleryPermissionAsync(captureGalleryPermission: CaptureGalleryPermission): boolean
Prompts the user for permission to access their local capture gallery.
PromptSaveCapturesToGallery
CaptureService:PromptSaveCapturesToGallery(captures: Array, resultCallback: Function): ()
Prompts the user to save specified captures to their gallery.
PromptShareCapture
CaptureService:PromptShareCapture(captureContent: Content, launchData: string, onAcceptedCallback: Function, onDeniedCallback: Function): ()
Prompts the user to share a specified capture.
ReadCapturesFromGalleryAsync
CaptureService:ReadCapturesFromGalleryAsync(captureTypeFilters: Array, readFromAllEligibleExperiences: boolean): Tuple
Returns a paginated list of captures from the user's gallery.
StartUploadCaptureAsync
CaptureService:StartUploadCaptureAsync(capture: Capture): Tuple
Begins uploading a capture to the asset system and returns a token used to poll the upload's status.
StartVideoCaptureAsync
CaptureService:StartVideoCaptureAsync(onCaptureReady: Function, captureParams: Dictionary): VideoCaptureStartedResult
Initiates a video capture recording.
StopVideoCapture
CaptureService:StopVideoCapture(): ()
Ends a video capture initiated by Class.CaptureService:StartVideoCaptureAsync()|StartVideoCaptureAsync().
TakeScreenshotCaptureAsync
CaptureService:TakeScreenshotCaptureAsync(onCaptureReady: Function, captureParams: Dictionary): ()
Initiates a screenshot capture.
UploadCaptureAsync
CaptureService:UploadCaptureAsync(capture: Capture): Tuple
Uploads a capture to the asset system and returns the result and asset ID.

イベント(3)

名前と書き方説明
CaptureBegan
CaptureService.CaptureBegan(captureType: CaptureType)
Fires immediately before a capture begins.
CaptureEnded
CaptureService.CaptureEnded(captureType: CaptureType)
Fires after a capture finishes.
UserCaptureSaved
CaptureService.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)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(CaptureService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む