shareWhiteboardCanvas

actual fun shareWhiteboardCanvas(shapes: List<WhiteboardShape>, canvasWidth: Int, canvasHeight: Int, useImageBackground: Boolean, onComplete: (success: Boolean, message: String) -> Unit)

Android implementation of canvas sharing. Renders all shapes to a bitmap and shares via Intent.ACTION_SEND.

expect fun shareWhiteboardCanvas(shapes: List<WhiteboardShape>, canvasWidth: Int, canvasHeight: Int, useImageBackground: Boolean, onComplete: (success: Boolean, message: String) -> Unit)

Platform-specific implementation for capturing and sharing the canvas. On Android, captures the composable as bitmap and shares via Intent.ACTION_SEND. On iOS, uses UIActivityViewController.

Parameters

shapes

List of shapes to draw

canvasWidth

Canvas width in pixels

canvasHeight

Canvas height in pixels

useImageBackground

Whether to use grid background

onComplete

Callback with result (file path or null on error)