CloudMediaSurfaceStateChangedCallback

class CloudMediaSurfaceStateChangedCallback
kotlin.Any
   ↳ android.provider.CloudMediaProvider.CloudMediaSurfaceStateChangedCallback

This class is used by CloudMediaProvider to send Surface state updates to picker launched via MediaStore#ACTION_PICK_IMAGES.

Summary

Constants
static Int

Constant to notify that the playback is buffering

static Int

Constant to notify that the playback has completed

static Int

Constant to notify that the playback has failed with a permanent error.

static Int

Constant to notify that the playback has failed with a retriable error.

static Int

Constant to notify that the media size is first known or has changed.

static Int

Constant to notify that the playback is paused.

static Int

Constant to notify that the playback is ready to be played

static Int

Constant to notify that the playback has started

Public methods
Unit
setPlaybackState(surfaceId: Int, playbackState: Int, playbackStateInfo: Bundle?)

This is called to notify playback state update for a Surface on the picker launched via MediaStore#ACTION_PICK_IMAGES.

Constants

PLAYBACK_STATE_BUFFERING

static val PLAYBACK_STATE_BUFFERING: Int

Constant to notify that the playback is buffering

Value: 1

PLAYBACK_STATE_COMPLETED

static val PLAYBACK_STATE_COMPLETED: Int

Constant to notify that the playback has completed

Value: 5

PLAYBACK_STATE_ERROR_PERMANENT_FAILURE

static val PLAYBACK_STATE_ERROR_PERMANENT_FAILURE: Int

Constant to notify that the playback has failed with a permanent error.

Value: 7

PLAYBACK_STATE_ERROR_RETRIABLE_FAILURE

static val PLAYBACK_STATE_ERROR_RETRIABLE_FAILURE: Int

Constant to notify that the playback has failed with a retriable error.

Value: 6

PLAYBACK_STATE_MEDIA_SIZE_CHANGED

static val PLAYBACK_STATE_MEDIA_SIZE_CHANGED: Int

Constant to notify that the media size is first known or has changed. Pass the width and height of the media as a Point inside the Bundle with ContentResolver#EXTRA_SIZE as the key.

Value: 8

PLAYBACK_STATE_PAUSED

static val PLAYBACK_STATE_PAUSED: Int

Constant to notify that the playback is paused.

Value: 4

PLAYBACK_STATE_READY

static val PLAYBACK_STATE_READY: Int

Constant to notify that the playback is ready to be played

Value: 2

PLAYBACK_STATE_STARTED

static val PLAYBACK_STATE_STARTED: Int

Constant to notify that the playback has started

Value: 3

Public methods