onLayout

abstract suspend fun onLayout(oldAttributes: PrintAttributes?, newAttributes: PrintAttributes, extras: Bundle?): PrintDocumentInfo
override fun onLayout(oldAttributes: PrintAttributes?, newAttributes: PrintAttributes, cancellationSignal: CancellationSignal, callback: PrintDocumentAdapter.LayoutResultCallback, extras: Bundle?)