/**@class android.media.ThumbnailUtils @extends java.lang.Object Utilities for generating visual thumbnails from files. */ var ThumbnailUtils = { /**@hide */ TARGET_SIZE_MICRO_THUMBNAIL : "96", /** Constant used to indicate we should recycle the input in {@link #extractThumbnail(Bitmap, int, int, int)} unless the output is the input. */ OPTIONS_RECYCLE_INPUT : "2", /**Create a thumbnail for given audio file. @param {String} filePath The audio file. @param {Number} kind The desired thumbnail kind, such as {@link android.provider.MediaStore.Images.Thumbnails#MINI_KIND}. @deprecated Callers should migrate to using {@link #createAudioThumbnail(File, Size, CancellationSignal)}, as it offers more control over resizing and cancellation. */ createAudioThumbnail : function( ) {}, /**Create a thumbnail for given audio file. @param {Object {File}} file The audio file. @param {Object {Size}} size The desired thumbnail size. @throws IOException If any trouble was encountered while generating or loading the thumbnail, or if {@link CancellationSignal#cancel()} was invoked. */ createAudioThumbnail : function( ) {}, /**Create a thumbnail for given image file. @param {String} filePath The image file. @param {Number} kind The desired thumbnail kind, such as {@link android.provider.MediaStore.Images.Thumbnails#MINI_KIND}. @deprecated Callers should migrate to using {@link #createImageThumbnail(File, Size, CancellationSignal)}, as it offers more control over resizing and cancellation. */ createImageThumbnail : function( ) {}, /**Create a thumbnail for given image file. @param {Object {File}} file The audio file. @param {Object {Size}} size The desired thumbnail size. @throws IOException If any trouble was encountered while generating or loading the thumbnail, or if {@link CancellationSignal#cancel()} was invoked. */ createImageThumbnail : function( ) {}, /**Create a thumbnail for given video file. @param {String} filePath The video file. @param {Number} kind The desired thumbnail kind, such as {@link android.provider.MediaStore.Images.Thumbnails#MINI_KIND}. @deprecated Callers should migrate to using {@link #createVideoThumbnail(File, Size, CancellationSignal)}, as it offers more control over resizing and cancellation. */ createVideoThumbnail : function( ) {}, /**Create a thumbnail for given video file. @param {Object {File}} file The video file. @param {Object {Size}} size The desired thumbnail size. @throws IOException If any trouble was encountered while generating or loading the thumbnail, or if {@link CancellationSignal#cancel()} was invoked. */ createVideoThumbnail : function( ) {}, /**Creates a centered bitmap of the desired size. @param {Object {Bitmap}} source original bitmap source @param {Number} width targeted width @param {Number} height targeted height */ extractThumbnail : function( ) {}, /**Creates a centered bitmap of the desired size. @param {Object {Bitmap}} source original bitmap source @param {Number} width targeted width @param {Number} height targeted height @param {Number} options options used during thumbnail extraction */ extractThumbnail : function( ) {}, };