Package 

Class Avatar

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    
    public final class Avatar
     implements AutoCloseable
                        

    High-level Essence avatar facade.

    Owns a single fixture + a single runtime. For multi-conversation scenarios (one shared fixture, N independent histories), use Fixture and Runtime directly.

    Typical use:

    Avatar.load("/sdcard/Android/data/.../files/sample-avatar.imx").use { a ->
        a.composeAsBitmaps(pcm).forEach { bmp -> imageView.setImageBitmap(bmp) }
    }

    Not thread-safe: confine calls (and the Sequence iteration) to one thread.