RemoteDocumentPreview

Functions summary

Unit

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

Unit

Displays a RemoteDocument in the Android Studio Preview.

Functions

@Composable
fun RemoteDocumentPreview(document: ByteArray, modifier: Modifier = Modifier): Unit

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

This is a convenience overload that takes the raw document bytes directly.

Parameters
document: ByteArray

The raw byte array representing the RemoteDocument.

modifier: Modifier = Modifier

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

@Composable
fun RemoteDocumentPreview(
    remoteDocument: RemoteDocument,
    modifier: Modifier = Modifier
): Unit

Displays a RemoteDocument in the Android Studio Preview.

This composable is intended for use within Android Studio to preview the content of a RemoteDocument. It handles setting up the necessary Remote Compose player environment.

Parameters
remoteDocument: RemoteDocument

The RemoteDocument containing the content to be displayed.

modifier: Modifier = Modifier

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