| java.lang.Object | |
| ↳ | com.google.android.gms.cast.framework.media.ImagePicker |
An image picker to pick an appropriate image from the list of images in a MediaMetadata
based on the use of the image, for example, notification thumbnail or full screen background. The
default implementation always chooses the first image, or returns null if no image is
available in the MediaMetadata. A subclass can override this by overriding
onPickImage(MediaMetadata, int).
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | IMAGE_TYPE_MEDIA_ROUTE_CONTROLLER_DIALOG_BACKGROUND | Type of the image to be displayed in the MediaRouter controller dialog. | |||||||||
| int | IMAGE_TYPE_MINI_CONTROLLER_THUMBNAIL | Type of the image to be displayed as thumbnail image in the mini controller. | |||||||||
| int | IMAGE_TYPE_NOTIFICATION_THUMBNAIL | Type of the image to be displayed as thumbnail image in the notification. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the
WebImage to be used for the requested image type. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Type of the image to be displayed in the MediaRouter controller dialog. This image is also displayed on the lock screen.
Type of the image to be displayed as thumbnail image in the mini controller.
Type of the image to be displayed as thumbnail image in the notification.
Returns the WebImage to be used for the requested image type. The SDK will
call this method when trying to choose an image in a MediaMetadata.
Subclass can override this method to pick an image based on the type. This method
can return an image even if no image is available in the MediaMetadata.
| mediaMetadata | The MediaMetadata of a media. |
|---|---|
| type | The type of the wanted image. One of
IMAGE_TYPE_MEDIA_ROUTE_CONTROLLER_DIALOG_BACKGROUND,
IMAGE_TYPE_NOTIFICATION_THUMBNAIL or IMAGE_TYPE_MINI_CONTROLLER_THUMBNAIL.
|