Class

RemoteCapturedDocument

Represents the result of a remote Composable capture operation.

Source set: Android
public class RemoteCapturedDocument internal constructor(
    public val bytes: ByteArray,
    public val pendingIntents: IntObjectMap<PendingIntent>,
    @get:RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public val lambdas: IntObjectMap<() -> Unit>,
)

Represents the result of a remote Composable capture operation.

This class encapsulates all the necessary data to reconstruct and display a RemoteCompose document. It contains the serialized view hierarchy as a byte array and a map of any associated PendingIntents that need to be resolved on the host side.

Example of capturing a RemoteCapturedDocument and reading its serialized bytes:

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: