You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,9 @@ It provides the basic WebView functionalities for JetBrains Compose Multiplatfor
30
30
For more information, visit the documentation: https://kevinnzou.github.io/compose-webview-multiplatform/
31
31
32
32
## Basic Usage
33
-
To use this widget there are two key APIs that are needed: *WebView*, which provides the layout, and *rememberWebViewState(url)* which provides some remembered state including the URL to display.
33
+
**Note:** Developers targeting the _Desktop_ platform should refer to [README.desktop.md](https://github.com/KevinnZou/compose-webview-multiplatform/blob/main/README.desktop.md) for setup instructions first.
34
+
35
+
To use this widget, two key APIs are needed: *WebView*, which provides the layout, and *rememberWebViewState(url)* which provides some remembered state including the URL to display.
34
36
35
37
The basic usage is as follows:
36
38
```kotlin
@@ -328,7 +330,7 @@ This library uses the `kmpJsBridge` as the default.
328
330
## WebSettings
329
331
330
332
Starting from version 1.3.0, this library allows users to customize web settings.
331
-
There are some common web settings that can be shared across different platforms, such as
333
+
Some common web settings can be shared across different platforms, such as
332
334
isJavaScriptEnabled and userAgent.
333
335
334
336
```kotlin
@@ -354,8 +356,8 @@ class WebSettings {
354
356
355
357
}
356
358
```
357
-
For platformspecific settings, this library provides the PlatformWebSettings.
358
-
These settings will only be applied to the respective platforms and do not affect other platforms.
359
+
For platform-specific settings, this library provides the PlatformWebSettings.
360
+
These settings will only be applied to the respective platforms and will not affect other platforms.
359
361
```kotlin
360
362
sealedclassPlatformWebSettings {
361
363
data classAndroidWebSettings(
@@ -513,8 +515,8 @@ kotlin {
513
515
514
516
### Single Platform
515
517
516
-
For an Androidonly project, you directly can use my [another library](https://github.com/KevinnZou/compose-webview).
517
-
Add the dependency to applevel `build.gradle.kts`:
518
+
For an Android-only project, you directly can use my [another library](https://github.com/KevinnZou/compose-webview).
519
+
Add the dependency to app-level `build.gradle.kts`:
518
520
519
521
```kotlin
520
522
repositories {
@@ -527,9 +529,9 @@ dependencies {
527
529
```
528
530
529
531
# Publications
530
-
The following is a list of articles / blog posts that have been published discussing this plugin:
532
+
The following is a list of articles/blog posts that have been published discussing this plugin:
2.[What’s new in Compose Multiplatform WebView 1.5.0:Migrated to CEF Browser & Cookie Management Supported](https://medium.com/@kevinnzou/whats-new-in-compose-multiplatform-webview-1-5-0-migrated-ff2b3c564981)
534
536
3.[Loading Local HTML files in Compose Multiplatform WebView](https://medium.com/@kevinnzou/loading-local-html-files-in-compose-multiplatform-webview-9a842f1ab9d9)
535
-
4.[Bridging the Gap: Empowering JS and Native Communication in Compose Multiplatform WebView Library Version 1.8.0](https://medium.com/@kevinnzou/bridging-the-gap-empowering-js-and-native-communication-in-version-1-8-0-d17ce4d601b7)
537
+
4.[Bridging the Gap: Empowering JS and Native Communication in Compose Multiplatform WebView Library Version 1.8.0](https://medium.com/@kevinnzou/bridging-the-gap-empowering-js-and-native-communication-in-version-1-8-0-d17ce4d601b7)
0 commit comments