Android 12 Developer Preview is here! Try it out, and give us 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.