Android.Provider.DocumentsProvider.OpenDocumentThumbnail Method
Open and return a thumbnail of the requested document.

Syntax

[Android.Runtime.Register("openDocumentThumbnail", "(Ljava/lang/String;Landroid/graphics/Point;Landroid/os/CancellationSignal;)Landroid/content/res/AssetFileDescriptor;", "GetOpenDocumentThumbnail_Ljava_lang_String_Landroid_graphics_Point_Landroid_os_CancellationSignal_Handler")]
public virtual Android.Content.Res.AssetFileDescriptor OpenDocumentThumbnail (string documentId, Android.Graphics.Point sizeHint, Android.OS.CancellationSignal signal)

Parameters

documentId
the document to return.
sizeHint
hint of the optimal thumbnail dimensions.
signal
used by the caller to signal if the request should be cancelled. May be null.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.FileNotFoundException

Remarks

Open and return a thumbnail of the requested document.

A provider should return a thumbnail closely matching the hinted size, attempting to serve from a local cache if possible. A provider should never return images more than double the hinted size.

If you perform expensive operations to download or generate a thumbnail, you should periodically check Android.OS.CancellationSignal.IsCanceled to abort abandoned thumbnail requests.

[Android Documentation]

Requirements

Namespace: Android.Provider
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0