RemoteDocumentPreview

Functions summary

Unit
@Composable
RemoteDocumentPreview(
    document: ByteArray,
    modifier: Modifier,
    profile: Profile?
)

Displays a RemoteDocument in the Android Studio Preview from a ByteArray.

Functions

@Composable
fun RemoteDocumentPreview(
    document: ByteArray,
    modifier: Modifier = Modifier,
    profile: Profile? = null
): Unit

Displays a RemoteDocument in the Android Studio Preview from a ByteArray.

This is a convenience overload that takes the raw document bytes directly and optionally configures the document buffer with profile before inflating the RemoteDocument.

Parameters
document: ByteArray

The raw byte array representing the RemoteDocument.

modifier: Modifier = Modifier

The modifier to be applied to the box containing the preview.

profile: Profile? = null

Optional Profile used to configure the document buffer before inflation.