The Developer Preview for Android 11 is now available; test it out and share your feedback.

androidx.heifwriter

Classes

HeifWriter This class writes one or more still images (of the same dimensions) into a heif file. 
HeifWriter.Builder Builder class for constructing a HeifWriter object from specified parameters.