You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an existing issue or discussion for this?
I have searched the existing issues & discussions
Describe the Feature Request
Sometimes, for example, if making list or grid of previews (thumbnails), we have first to instantiate DocumentFile & only after that get it's thumbnail. This allows to get directly thumbnail of Document.
Describe the Preferred Solution
Adding static future method to DocumentThumbnail.fromUri(String uri) - where uri can be file path or document content uri. Future returns DocumentThumbnail if available or null if not.
Describe Alternatives
First we have to instantiate DocumentFile via get() method.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an existing issue or discussion for this?
Describe the Feature Request
Sometimes, for example, if making list or grid of previews (thumbnails), we have first to instantiate
DocumentFile
& only after that get it's thumbnail. This allows to get directly thumbnail of Document.Describe the Preferred Solution
Adding static future method to
DocumentThumbnail.fromUri(String uri)
- whereuri
can be file path or document content uri. Future returnsDocumentThumbnail
if available or null if not.Describe Alternatives
DocumentFile
viaget()
method.thumbnail()
method.Additional context
No
Would you like to implement the feature yourself?
Beta Was this translation helpful? Give feedback.
All reactions