File tree Expand file tree Collapse file tree
androidMain/kotlin/dev/robercoding/htmlscreenshot
commonMain/kotlin/dev/robercoding/htmlscreenshot
iosMain/kotlin/dev/robercoding/htmlscreenshot Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import dev.robercoding.htmlscreenshot.helpers.Html2Bitmap
88import dev.robercoding.htmlscreenshot.webview.content.WebViewContent
99import java.io.ByteArrayOutputStream
1010
11- actual class HtmlToImageConverter (private val screenshotThatHtmlConfiguration : ScreenshotThatHtmlConfiguration ) {
11+ actual class HtmlToImageConverter actual constructor (private val screenshotThatHtmlConfiguration : ScreenshotThatHtmlConfiguration ) {
1212
1313 val html2bitmap = Html2Bitmap (
1414 context = applicationContext,
Original file line number Diff line number Diff line change 11package dev.robercoding.htmlscreenshot
22
3- expect class HtmlToImageConverter {
3+ import dev.robercoding.htmlscreenshot.helper.ScreenshotThatHtmlConfiguration
4+
5+ expect class HtmlToImageConverter (screenshotThatHtmlConfiguration : ScreenshotThatHtmlConfiguration ) {
46 suspend fun convert (html : String ): Html2ScreenshotResult
57}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import platform.UIKit.UIImageJPEGRepresentation
1717import platform.UIKit.UIImagePNGRepresentation
1818import platform.posix.memcpy
1919
20- actual class HtmlToImageConverter (private val screenshotThatHtmlConfiguration : ScreenshotThatHtmlConfiguration ) {
20+ actual class HtmlToImageConverter actual constructor (private val screenshotThatHtmlConfiguration : ScreenshotThatHtmlConfiguration ) {
2121 actual suspend fun convert (
2222 html : String ,
2323 ): Html2ScreenshotResult {
You can’t perform that action at this time.
0 commit comments