SharedMemoryImage
@RestrictTo([Scope.LIBRARY_GROUP]) class SharedMemoryImage
| kotlin.Any | |
| ↳ | android.support.wearable.watchface.SharedMemoryImage |
This class requires API level 27 and is only intended for use in conjunction with wear-watchface-client which also requires API level 27.
Summary
| Public constructors | |
|---|---|
|
This class requires API level 27 and is only intended for use in conjunction with wear-watchface-client which also requires API level 27. |
|
| Companion functions | |
|---|---|
| Bitmap |
Deserializes a Bundle containing a Bitmap serialized by ashmemWriteImageBundle. |
| Bundle |
Stores a Bitmap in shared memory and serializes it as a bundle. |
Public constructors
SharedMemoryImage
SharedMemoryImage()
This class requires API level 27 and is only intended for use in conjunction with wear-watchface-client which also requires API level 27.
Companion functions
ashmemReadImageBundle
fun ashmemReadImageBundle(: Bundle): Bitmap
Deserializes a Bundle containing a Bitmap serialized by ashmemWriteImageBundle.
ashmemWriteImageBundle
@RestrictTo([Scope.LIBRARY_GROUP]) fun ashmemWriteImageBundle(: Bitmap): Bundle
Stores a Bitmap in shared memory and serializes it as a bundle.