CaptureService
Show Deprecated
CaptureService is a client-side service that allows developers to control how the screenshot and video capture feature integrates with their experiences. It can be used to include preset moments where a capture is automatically taken for a user, and that user can then save, share, or delete the capture.
Summary
Methods
Takes a screenshot and provides a temporary contentId to identify it.
Prompts the user to save specified captures to their gallery.
- PromptShareCapture(captureContent : Content,launchData : string,onAcceptedCallback : function,onDeniedCallback : function):()
Prompts the user to share a specified capture.
- StartVideoCaptureAsync(onCaptureReady : function,captureParams : Dictionary):Enum.VideoCaptureStartedResult
Initiates a video capture recording.
Ends a video capture initiated by StartVideoCaptureAsync().
Events
Fires immediately before a capture begins.
Fires after a capture finishes.
Fires when the user saves a capture.
Properties
Methods
PromptShareCapture
()
Parameters
Returns
()
StartVideoCaptureAsync
Parameters
Default Value: "nil"
Returns
StopVideoCapture
()
Returns
()
TakeCapture
()
Parameters
Default Value: "nil"
Returns
()
Events
UserCaptureSaved
Parameters
captureContentId: ContentId