-
public final class CaptureControllerController for capturing Composable content.
-
-
Constructor Summary
Constructors Constructor Description CaptureController()
-
Method Summary
Modifier and Type Method Description final Unitcapture(Bitmap.Config config)Creates and send a Bitmap capture request with specified config. final Deferred<ImageBitmap>captureAsync(Bitmap.Config config)Creates and requests for a Bitmap capture with specified config and returns an ImageBitmap asynchronously. -
-
Method Detail
-
capture
@Deprecated(message = This method has been deprecated and will be removed in the upcoming releases. Use `captureAsync()` instead, replaceWith = @ReplaceWith(imports = {}, expression = captureAsync(config)), level = DeprecationLevel.WARNING) final Unit capture(Bitmap.Config config)
Creates and send a Bitmap capture request with specified config.
Make sure to call this method as a part of callback function and not as a part of the Composable function itself.
- Parameters:
config- Bitmap config of the desired bitmap.
-
captureAsync
final Deferred<ImageBitmap> captureAsync(Bitmap.Config config)
Creates and requests for a Bitmap capture with specified config and returns an ImageBitmap asynchronously.
This method is safe to be called from the "main" thread directly.
Make sure to call this method as a part of callback function and not as a part of the Composable function itself.
- Parameters:
config- Bitmap config of the desired bitmap.
-
-
-
-