prepare Bitmap For Sharing
Writes bitmap to directory backed by DocumentSharingProvider.
- Scheduler:
- Method does not operate by default on a particular Scheduler.
Return
Single emitting Uri that can be used for sharing the bitmap file to other apps or an error if the bitmap could not be exported.
Parameters
Context to use.
Bitmap that should be compressed and saved into file.
Writes bitmap to directory backed by DocumentSharingProvider.
- Scheduler:
- Method does not operate by default on a particular Scheduler.
Return
Single emitting Uri that can be used for sharing the bitmap file to other apps or an error if the bitmap could not be exported.
Parameters
Context to use.
Bitmap that should be compressed and saved into file.
The format of the compressed image.
The quality that compressor should use. Must be [0,100]. 0 means compress for small size, 100 means compress for max quality. Some lossless formats (for example PNG), ignore the quality setting.
Optional file name used for sharing (this is the shared file name as seen by other apps).