# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Inherited Constants | Fields | Ctors | Methods | Inherited Methods

# MediaStore.Video.Thumbnails

`public static class MediaStore.Video.Thumbnails`
`extends Object` `implements BaseColumns`

java.lang.Object
↳ | android.provider.MediaStore.Video.Thumbnails

This class is deprecated.
Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.

This class provides utility methods to obtain thumbnails for various `Video` items.

## Summary

### Constants
`String` | `DATA` This constant is deprecated. Apps that target `R` and higher may not update the value of this column. However they may read the file path value from this column and use in file operations.
`String` | `DEFAULT_SORT_ORDER` The default sort order for this table
`int` | `FULL_SCREEN_KIND`
`String` | `HEIGHT` The height of the thumbnail This constant represents a column name that can be used with a `ContentProvider` through a `ContentValues` or `Cursor` object.
`String` | `KIND` The kind of the thumbnail This constant represents a column name that can be used with a `ContentProvider` through a `ContentValues` or `Cursor` object.
`int` | `MICRO_KIND`
`int` | `MINI_KIND`
`String` | `VIDEO_ID` The original image for the thumbnal This constant represents a column name that can be used with a `ContentProvider` through a `ContentValues` or `Cursor` object.
`String` | `WIDTH` The width of the thumbnal This constant represents a column name that can be used with a `ContentProvider` through a `ContentValues` or `Cursor` object.

### Inherited constants
From interface `android.provider.BaseColumns`
`String` | `_COUNT` The count of rows in a directory.
`String` | `_ID` The unique ID for a row.

### Fields
`public static final Uri` | `EXTERNAL_CONTENT_URI` The content:// style URI for the "primary" external storage volume.
`public static final Uri` | `INTERNAL_CONTENT_URI` The content:// style URI for the internal storage.

### Public constructors
`Thumbnails()`

### Public methods
`static void` | `cancelThumbnailRequest(ContentResolver cr, long origId)` This method is deprecated. Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.
`static void` | `cancelThumbnailRequest(ContentResolver cr, long videoId, long groupId)` This method is deprecated. Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.
`static Uri` | `getContentUri(String volumeName)` Get the content:// style URI for the image media table on the given volume.
`static Size` | `getKindSize(int kind)` This method is deprecated. Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.
`static Bitmap` | `getThumbnail(ContentResolver cr, long videoId, long groupId, int kind, BitmapFactory.Options options)` This method is deprecated. Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.
`static Bitmap` | `getThumbnail(ContentResolver cr, long videoId, int kind, BitmapFactory.Options options)` This method is deprecated. Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### DATA

    public static final String DATA

This constant is deprecated.
Apps that target `R` and higher may not update the value of this column. However they may read the file path value from this column and use in file operations.

Path to the thumbnail file on disk.
This constant represents a column name that can be used with a `ContentProvider` through a `ContentValues` or `Cursor` object. The values stored in this column are `Cursor#FIELD_TYPE_STRING` .

Constant Value: "_data"

### DEFAULT_SORT_ORDER

    public static final String DEFAULT_SORT_ORDER

The default sort order for this table

Constant Value: "video_id ASC"

### FULL_SCREEN_KIND

    public static final int FULL_SCREEN_KIND

Constant Value: 2 (0x00000002)

### HEIGHT

    public static final String HEIGHT

The height of the thumbnail
This constant represents a column name that can be used with a `ContentProvider` through a `ContentValues` or `Cursor` object. The values stored in this column are `Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

Constant Value: "height"

### KIND

    public static final String KIND

The kind of the thumbnail
This constant represents a column name that can be used with a `ContentProvider` through a `ContentValues` or `Cursor` object. The values stored in this column are `Cursor#FIELD_TYPE_INTEGER` .

Constant Value: "kind"

### MICRO_KIND

    public static final int MICRO_KIND

Constant Value: 3 (0x00000003)

### MINI_KIND

    public static final int MINI_KIND

Constant Value: 1 (0x00000001)

### VIDEO_ID

    public static final String VIDEO_ID

The original image for the thumbnal
This constant represents a column name that can be used with a `ContentProvider` through a `ContentValues` or `Cursor` object. The values stored in this column are `Cursor#FIELD_TYPE_INTEGER` .

Constant Value: "video_id"

### WIDTH

    public static final String WIDTH

The width of the thumbnal
This constant represents a column name that can be used with a `ContentProvider` through a `ContentValues` or `Cursor` object. The values stored in this column are `Cursor#FIELD_TYPE_INTEGER` , and are read-only and cannot be mutated.

Constant Value: "width"

## Fields

### EXTERNAL_CONTENT_URI

    public static final Uri EXTERNAL_CONTENT_URI

The content:// style URI for the "primary" external storage volume.

### INTERNAL_CONTENT_URI

    public static final Uri INTERNAL_CONTENT_URI

The content:// style URI for the internal storage.

## Public constructors

### Thumbnails

    public Thumbnails ()

## Public methods

### cancelThumbnailRequest

    public static void cancelThumbnailRequest (ContentResolver cr,
                    long origId)

This method is deprecated.
Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.

Cancel any outstanding `getThumbnail(ContentResolver, long, int, BitmapFactory.Options)` requests, causing them to return by throwing a `OperationCanceledException`.

This method has no effect on `ContentResolver#loadThumbnail` calls, since they provide their own `CancellationSignal`.

Parameters
`cr` | `ContentResolver`
`origId` | `long`

### cancelThumbnailRequest

    public static void cancelThumbnailRequest (ContentResolver cr,
                    long videoId,
                    long groupId)

This method is deprecated.
Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.

Cancel any outstanding `getThumbnail(ContentResolver, long, int, BitmapFactory.Options)` requests, causing them to return by throwing a `OperationCanceledException`.

This method has no effect on `ContentResolver#loadThumbnail` calls, since they provide their own `CancellationSignal`.

Parameters
`cr` | `ContentResolver`
`videoId` | `long`
`groupId` | `long`

### getContentUri

    public static Uri getContentUri (String volumeName)

Get the content:// style URI for the image media table on the given volume.

Parameters
`volumeName` | `String`: the name of the volume to get the URI for

Returns
`Uri` | the URI to the image media table on the given volume

### getKindSize

    public static Size getKindSize (int kind)

This method is deprecated.
Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.

Return the typical `Size` (in pixels) used internally when the given thumbnail kind is requested.

Parameters
`kind` | `int`

Returns
`Size` | This value cannot be `null`.

### getThumbnail

    public static Bitmap getThumbnail (ContentResolver cr,
                    long videoId,
                    long groupId,
                    int kind,
                    BitmapFactory.Options options)

This method is deprecated.
Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.

Return thumbnail representing a specific video item. If a thumbnail doesn't exist, this method will block until it's generated. Callers are responsible for their own in-memory caching of returned values.

Parameters
`cr` | `ContentResolver`
`videoId` | `long`: the video item to obtain a thumbnail for.
`groupId` | `long`
`kind` | `int`: optimal thumbnail size desired.
`options` | `BitmapFactory.Options`

Returns
`Bitmap` | decoded thumbnail, or `null` if problem was encountered.

### getThumbnail

    public static Bitmap getThumbnail (ContentResolver cr,
                    long videoId,
                    int kind,
                    BitmapFactory.Options options)

This method is deprecated.
Callers should migrate to using `ContentResolver#loadThumbnail`, since it offers richer control over requested thumbnail sizes and cancellation behavior.

Return thumbnail representing a specific video item. If a thumbnail doesn't exist, this method will block until it's generated. Callers are responsible for their own in-memory caching of returned values.

Parameters
`cr` | `ContentResolver`
`videoId` | `long`: the video item to obtain a thumbnail for.
`kind` | `int`: optimal thumbnail size desired.
`options` | `BitmapFactory.Options`

Returns
`Bitmap` | decoded thumbnail, or `null` if problem was encountered.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*