This interface is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
A client to interact with videos.
Nested Class Summary
@interface | VideosClient.CaptureOverlayState | Capture overlay states. | |
interface | VideosClient.OnCaptureOverlayStateListener | This interface is deprecated. Video recording using Play Games Services will be disabled for Android SDK levels greater than 32. |
Constant Summary
int | CAPTURE_OVERLAY_STATE_CAPTURE_STARTED | State used to indicate that the user has initiated capture via the capture overlay. |
int | CAPTURE_OVERLAY_STATE_CAPTURE_STOPPED | State used to indicate that the user has stopped capturing via the capture overlay. |
int | CAPTURE_OVERLAY_STATE_DISMISSED | State used to indicate that the user has dismissed the capture overlay and it is no longer visible. |
int | CAPTURE_OVERLAY_STATE_SHOWN | State used to indicate that the capture overlay is drawn on the screen and visible to the user. |
Public Method Summary
abstractTask<VideoCapabilities> |
getCaptureCapabilities()
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstractTask<Intent> |
getCaptureOverlayIntent()
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstractTask<CaptureState> |
getCaptureState()
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstractTask<Boolean> |
isCaptureAvailable(int captureMode)
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstractTask<Boolean> |
isCaptureSupported()
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstractTask<Void> |
registerOnCaptureOverlayStateChangedListener(VideosClient.OnCaptureOverlayStateListener
listener)
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstractTask<Boolean> |
unregisterOnCaptureOverlayStateChangedListener(VideosClient.OnCaptureOverlayStateListener
listener)
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
Constants
public static final int CAPTURE_OVERLAY_STATE_CAPTURE_STARTED
State used to indicate that the user has initiated capture via the capture overlay.
public static final int CAPTURE_OVERLAY_STATE_CAPTURE_STOPPED
State used to indicate that the user has stopped capturing via the capture overlay.
public static final int CAPTURE_OVERLAY_STATE_DISMISSED
State used to indicate that the user has dismissed the capture overlay and it is no longer visible.
public static final int CAPTURE_OVERLAY_STATE_SHOWN
State used to indicate that the capture overlay is drawn on the screen and visible to the user.
Public Methods
public abstractTask<VideoCapabilities> getCaptureCapabilities()
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns aTask
which
asynchronously fetches the
VideoCapabilities
of the service, whether the mic or front-facing camera are
supported, if the service can write to external storage, and what capture modes and
quality levels are available.
public abstractTask<Intent> getCaptureOverlayIntent()
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns aTask
which
asynchronously loads anIntent
to
launch the capture overlay. This will automatically handle any necessary resolution
intents.
The returnedTask
can fail with aRemoteException
.
public abstractTask<CaptureState> getCaptureState()
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns aTask
which
asynchronously fetches the currentCaptureState
of the capture service. This will inform about whether the capture overlay is visible,
if the overlay is actively being used to capture, and a much more. SeeCaptureState
for more details.
public abstractTask<Boolean> isCaptureAvailable(int captureMode)
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns aTask
which
asynchronously fetches whether the capture service is already in use. Use this call to
check if a start capture API call will return
GamesClientStatusCodes.VIDEO_ALREADY_CAPTURING
.If theTask
result istrue
,then it's safe to start capturing. If it's already in use
then the result isfalse
.
Do not use this call to check if capture is supported, instead use
isCaptureSupported()
or
getCaptureCapabilities()
.
Parameters
captureMode | The mode to check availability of. Valid choices are
VideoConfiguration.CAPTURE_MODE_FILE and
VideoConfiguration.CAPTURE_MODE_STREAM . |
---|
public abstractTask<Boolean> isCaptureSupported()
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns aTask
which
asynchronously checks whether the device supports capture. If theTask
result istrue
then capture is supported.
public abstractTask<Void>registerOnCaptureOverlayStateChangedListener(VideosClient.OnCaptureOverlayStateListener listener)
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns aTask
which
asynchronously registers a
VideosClient.OnCaptureOverlayStateListener
to listen for changes to the
overlay state launched by
getCaptureOverlayIntent()
.
Note that only one overlay state listener may be active at a time. Calling this method while another overlay state listener was previously registered will replace the original listener with the new one.
Parameters
listener | The listener that is called when the overlay state changes. |
---|
public abstractTask<Boolean> unregisterOnCaptureOverlayStateChangedListener (VideosClient.OnCaptureOverlayStateListener listener)
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns aTask
which
asynchronously unregisters this client's overlay state update listener, if any, and
loads the result. The result will betrue
if the callback was unregistered
andfalse
if this callback wasn't registered previously or is already
unregistered.