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
abstract Task<VideoCapabilities> |
getCaptureCapabilities()
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstract Task<Intent> |
getCaptureOverlayIntent()
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstract Task<CaptureState> |
getCaptureState()
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstract Task<Boolean> |
isCaptureAvailable(int captureMode)
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstract Task<Boolean> |
isCaptureSupported()
This method is deprecated. Video recording using Play Games Services will
be disabled for Android SDK levels greater than 32.
|
abstract Task<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.
|
abstract Task<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 abstract Task<VideoCapabilities> getCaptureCapabilities ()
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns a Task
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 abstract Task<Intent> getCaptureOverlayIntent ()
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns a Task
which
asynchronously loads an Intent
to
launch the capture overlay. This will automatically handle any necessary resolution
intents.
The returned Task
can fail with a RemoteException
.
public abstract Task<CaptureState> getCaptureState ()
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns a Task
which
asynchronously fetches the current CaptureState
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. See CaptureState
for more details.
public abstract Task<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 a Task
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 the Task
result is true
, then it's safe to start capturing. If it's already in use
then the result is false
.
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 abstract Task<Boolean> isCaptureSupported ()
This method is deprecated.
Video recording using Play Games Services will be disabled for Android SDK levels greater
than 32.
Returns a Task
which
asynchronously checks whether the device supports capture. If the Task
result is true
then capture is supported.
public abstract Task<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 a Task
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 abstract Task<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 a Task
which
asynchronously unregisters this client's overlay state update listener, if any, and
loads the result. The result will be true
if the callback was unregistered
and false
if this callback wasn't registered previously or is already
unregistered.