Overview¶
What is Smwv?¶
Smwv (SA-MP Mobile WebView) is a bidirectional Kotlin library that embeds WebView into SA-MP clients, allowing you to build interfaces using frameworks like React, Vue, and others.
How does it work?¶
The communication flow in Smwv operates in a bidirectional manner:
- Server to Smwv: The server sends data or events to Smwv.
- Smwv to WebView: Smwv relays this information to the embedded WebView, allowing it to update or change the UI accordingly.
- WebView to Smwv: User interactions or events in the WebView can be captured and sent back to Smwv.
- Smwv to Server: Finally, Smwv forwards these events back to the server for processing.