CaptureService

Show Deprecated
Not Creatable
Service

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

Events

Properties

Methods

CaptureScreenshot

()

Parameters

onCaptureReady: function

Returns

()

PromptSaveCapturesToGallery

()

Parameters

captures: Array
resultCallback: function

Returns

()

PromptShareCapture

()

Parameters

captureContent: Content
launchData: string
onAcceptedCallback: function
onDeniedCallback: function

Returns

()

StartVideoCaptureAsync

Yields

Parameters

onCaptureReady: function
captureParams: Dictionary
Default Value: "nil"

Returns

StopVideoCapture

()

Returns

()

TakeCapture

()

Parameters

onCaptureReady: function
captureParams: Dictionary
Default Value: "nil"

Returns

()

Events

CaptureBegan

Parameters

captureType: Enum.CaptureType

CaptureEnded

Parameters

captureType: Enum.CaptureType

UserCaptureSaved

Parameters

captureContentId: ContentId