{"_id":"com.gmonks.webview","_rev":"26-df3831b90eb67ef5a6b017e3bb7b602a","name":"com.gmonks.webview","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.5":{"name":"com.gmonks.webview","version":"0.0.5","keywords":["gmonks","webview"],"author":{"url":"https://gmonks.com","name":"GMonks Entertainment Private Limited"},"license":"LGPL-3.0-only","_id":"com.gmonks.webview@0.0.5","maintainers":[{"name":"gmonks","email":"gmonks.games@gmail.com"}],"homepage":"https://gitlab.com/gmonks-sdks/gmonks-webview#readme","bugs":{"url":"https://gitlab.com/gmonks-sdks/gmonks-webview/issues"},"dist":{"shasum":"6663fc4a4c8e19c25be1d6cc294519e1421ae24e","tarball":"https://registry.npmjs.org/com.gmonks.webview/-/com.gmonks.webview-0.0.5.tgz","fileCount":36,"integrity":"sha512-W3FMZ5g/NCWAoKmLQ08rD/BDCj82zl6ZJJG3l/EaV4/GTbNXeGSABV9NuMg9Ohp24iI0ZOfccWiCcoxF+MkIbA==","signatures":[{"sig":"MEUCID8up+tcfKdFlpspGBhDqah0QiP46t6MRLoA2vSS+Y9JAiEAmDC9zpZhIK+lIbIjDgR4BMAsoxHTt32+ae/AX8Ych8g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":68571},"unity":"2022.3","gitHead":"91cc5e57d3f3d5346927c1f02c86d2661a36782b","_npmUser":{"name":"gmonks","email":"gmonks.games@gmail.com"},"deprecated":"this package has been deprecated","repository":{"url":"git+https://gitlab.com/gmonks-sdks/gmonks-webview.git","type":"git"},"_npmVersion":"11.3.0","description":"A WebView library for Unity Android platform, providing a simple way to display web content within Unity applications.","directories":{},"displayName":"GMonks WebView","_nodeVersion":"24.1.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/com.gmonks.webview_0.0.5_1749129586714_0.802219735748287","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"com.gmonks.webview","version":"1.0.2","keywords":["gmonks","webview"],"author":{"url":"https://gmonks.com","name":"GMonks Entertainment Private Limited"},"license":"LGPL-3.0-only","_id":"com.gmonks.webview@1.0.2","maintainers":[{"name":"gmonks-mahesh","email":"mahesh@gmonks.com"},{"name":"gmonks","email":"gmonks.games@gmail.com"}],"homepage":"https://gitlab.com/gmonks-sdks/gmonks-webview#readme","bugs":{"url":"https://gitlab.com/gmonks-sdks/gmonks-webview/issues"},"dist":{"shasum":"41c44331149a72544c344248865ea273b405c1c0","tarball":"https://registry.npmjs.org/com.gmonks.webview/-/com.gmonks.webview-1.0.2.tgz","fileCount":36,"integrity":"sha512-9ZzLdrcglHmyQUvs56XPVVh6NPQ8FYL6C5LaghVYWZQYhOo5nRjntBqff60fIq8xbW+gne/2266hXTqJRGgPuQ==","signatures":[{"sig":"MEYCIQCF9yOIrenrRwETiajPrjNWX6hUdUz7UadHECJIWrv8QgIhALa55ZSR95o6Yt24WolI6podxQIiKG0RQFHyYCcx2N/Q","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":68443},"unity":"2022.3","gitHead":"8f0b54b5c8a9167f534879a7178dd1add6f533ae","_npmUser":{"name":"gmonks","email":"gmonks.games@gmail.com"},"repository":{"url":"git+https://gitlab.com/gmonks-sdks/gmonks-webview.git","type":"git"},"_npmVersion":"11.3.0","description":"A WebView library for Unity Android platform, providing a simple way to display web content within Unity applications.","directories":{},"displayName":"GMonks WebView","_nodeVersion":"24.1.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/com.gmonks.webview_1.0.2_1749463413963_0.308850617388867","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"com.gmonks.webview","version":"1.0.3","keywords":["gmonks","webview"],"author":{"url":"https://gmonks.com","name":"GMonks Entertainment Private Limited"},"license":"LGPL-3.0-only","_id":"com.gmonks.webview@1.0.3","maintainers":[{"name":"gmonks-mahesh","email":"mahesh@gmonks.com"},{"name":"gmonks","email":"gmonks.games@gmail.com"}],"homepage":"https://gitlab.com/gmonks-sdks/gmonks-webview#readme","bugs":{"url":"https://gitlab.com/gmonks-sdks/gmonks-webview/issues"},"dist":{"shasum":"6726f3cb94cee5de4b66f87379aa41a9c0858ddc","tarball":"https://registry.npmjs.org/com.gmonks.webview/-/com.gmonks.webview-1.0.3.tgz","fileCount":40,"integrity":"sha512-DW3baC0KNMBmhVFWGNvcuJo3GkAKSDCuUNLzKVY5eJZ8DTh3Q79sH/OMP5KvOVAaKcB2ZqG7+JYw1BULXWCxzQ==","signatures":[{"sig":"MEYCIQCtDeT50SivG2lbm/oFQL3eJjlMmTU/RBI5jMdE2Xol3gIhALPzRuVCdSj+gQCPhUTgPEse/YX9/rAlf/rI/2mCzfuy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":79898},"unity":"2022.3","gitHead":"d93d059f38a377011981183159415bad0ab22325","_npmUser":{"name":"gmonks","email":"gmonks.games@gmail.com"},"repository":{"url":"git+https://gitlab.com/gmonks-sdks/gmonks-webview.git","type":"git"},"_npmVersion":"11.4.2","description":"A WebView library for Unity Android platform, providing a simple way to display web content within Unity applications.","directories":{},"displayName":"GMonks WebView","_nodeVersion":"24.4.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/com.gmonks.webview_1.0.3_1752219487280_0.5604357051148858","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"com.gmonks.webview","version":"1.0.4","keywords":["gmonks","webview"],"author":{"url":"https://gmonks.com","name":"GMonks Entertainment Private Limited"},"license":"LGPL-3.0-only","_id":"com.gmonks.webview@1.0.4","maintainers":[{"name":"gmonks-mahesh","email":"mahesh@gmonks.com"},{"name":"gmonks","email":"gmonks.games@gmail.com"}],"homepage":"https://gitlab.com/gmonks-sdks/gmonks-webview#readme","bugs":{"url":"https://gitlab.com/gmonks-sdks/gmonks-webview/issues"},"dist":{"shasum":"28092add04c171feae22a0d4ce87ccbce12180c4","tarball":"https://registry.npmjs.org/com.gmonks.webview/-/com.gmonks.webview-1.0.4.tgz","fileCount":40,"integrity":"sha512-sGBIq4ChkjIh3EWzjVidDDXzA3N2dWC01zONX+v8raTJboZk6o3NOba84iybugTJRaPYTDyrP5NSsQtFYvybLA==","signatures":[{"sig":"MEQCIEQZHwzG7vkYv9OCw7gDjgOymAyxvViGMPcEIMzkMk2XAiAgSQE+3T/T1kYfWhKGJtYdLhUXtNO6Hz5xSAaEq/nWUQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":79949},"unity":"2022.3","gitHead":"9f9217e0a7b3beb48ad9a89a800e9ac9efde738a","_npmUser":{"name":"gmonks-mahesh","email":"mahesh@gmonks.com"},"repository":{"url":"git+https://gitlab.com/gmonks-sdks/gmonks-webview.git","type":"git"},"_npmVersion":"11.4.2","description":"A WebView library for Unity Android platform, providing a simple way to display web content within Unity applications.","directories":{},"displayName":"GMonks WebView","_nodeVersion":"24.4.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/com.gmonks.webview_1.0.4_1752233204867_0.2387633683668242","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"com.gmonks.webview","version":"1.0.5","keywords":["gmonks","webview"],"author":{"url":"https://gmonks.com","name":"GMonks Entertainment Private Limited"},"license":"LGPL-3.0-only","_id":"com.gmonks.webview@1.0.5","maintainers":[{"name":"gmonks-mahesh","email":"mahesh@gmonks.com"},{"name":"gmonks","email":"gmonks.games@gmail.com"}],"homepage":"https://gitlab.com/gmonks-sdks/gmonks-webview#readme","bugs":{"url":"https://gitlab.com/gmonks-sdks/gmonks-webview/issues"},"dist":{"shasum":"02e8b021efc6cb2fc180301b84e1c1f440a2f5b1","tarball":"https://registry.npmjs.org/com.gmonks.webview/-/com.gmonks.webview-1.0.5.tgz","fileCount":40,"integrity":"sha512-nUEup4s7h6jhR40rjrfD233hWmTLeFrZl83mkDyJR/KKg+6aVcxKF5juZXhwd4thEja1PppoDyfb/6wC5PjpEw==","signatures":[{"sig":"MEUCIQCu/3XzzPL3EX9NhhQpxuKNsm5Y9r3LP/P7nFDQScmIPwIgEYDsTKEmYrmQtMpyYtRt4m2b1pPlASXk86LcwWNnCRA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":81149},"unity":"2022.3","gitHead":"b473153dcc71c124a0bbafdc30f6013c4ec67271","_npmUser":{"name":"gmonks-mahesh","email":"mahesh@gmonks.com"},"repository":{"url":"git+https://gitlab.com/gmonks-sdks/gmonks-webview.git","type":"git"},"_npmVersion":"11.4.2","description":"A WebView library for Unity Android platform, providing a simple way to display web content within Unity applications.","directories":{},"displayName":"GMonks WebView","_nodeVersion":"24.4.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/com.gmonks.webview_1.0.5_1752245068483_0.8954910386769137","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"com.gmonks.webview","displayName":"GMonks WebView","author":{"name":"GMonks Entertainment Private Limited","url":"https://gmonks.com"},"version":"1.1.0","unity":"2020.3","keywords":["gmonks","webview"],"description":"A WebView library for Unity Android platform, providing a simple way to display web content within Unity applications.","repository":{"type":"git","url":"git+https://gitlab.com/gmonks-sdks/gmonks-webview.git"},"bugs":{"url":"https://gitlab.com/gmonks-sdks/gmonks-webview/issues"},"homepage":"https://gitlab.com/gmonks-sdks/gmonks-webview#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"license":"LGPL-3.0-only","_id":"com.gmonks.webview@1.1.0","gitHead":"2dcbd6fe769318b53a6c2060ccc25708e50c0890","_nodeVersion":"24.6.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-jausqIedWaJEG8sohw0tPxIR1M6NwthfGyrejvWg6hBGISD9fxz7BIb2hc8Mg833kM3/lWV9+1MZYBVu0a+vXA==","shasum":"d145de18e035fdf93430b2b4712148692b389dfd","tarball":"https://registry.npmjs.org/com.gmonks.webview/-/com.gmonks.webview-1.1.0.tgz","fileCount":38,"unpackedSize":80988,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCs8zIQHrppmySyn/2eWH78Bps8ClxeuNxhl1AXEhr6sAIgNMfG0W3NxZHYTEqE1LqyTXoXZAgrAXkKPCTo7OUs/f4="}]},"_npmUser":{"name":"gmonks-mahesh","email":"mahesh@gmonks.com"},"directories":{},"maintainers":[{"name":"gmonks-mahesh","email":"mahesh@gmonks.com"},{"name":"gmonks","email":"gmonks.games@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/com.gmonks.webview_1.1.0_1755782494783_0.7992704872954428"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-05T09:26:23.417Z","modified":"2025-08-21T13:21:35.118Z","1.0.0":"2025-06-04T06:49:48.724Z","0.0.1":"2025-06-05T09:26:23.582Z","0.0.2":"2025-06-05T10:22:53.394Z","0.0.3":"2025-06-05T10:24:39.481Z","0.0.4":"2025-06-05T10:47:01.642Z","0.0.5":"2025-06-05T13:19:46.927Z","1.0.1":"2025-06-09T09:50:36.035Z","1.0.2":"2025-06-09T10:03:34.176Z","1.0.3":"2025-07-11T07:38:07.475Z","1.0.4":"2025-07-11T11:26:45.087Z","1.0.5":"2025-07-11T14:44:28.713Z","1.1.0":"2025-08-21T13:21:34.964Z"},"bugs":{"url":"https://gitlab.com/gmonks-sdks/gmonks-webview/issues"},"author":{"name":"GMonks Entertainment Private Limited","url":"https://gmonks.com"},"license":"LGPL-3.0-only","homepage":"https://gitlab.com/gmonks-sdks/gmonks-webview#readme","keywords":["gmonks","webview"],"repository":{"type":"git","url":"git+https://gitlab.com/gmonks-sdks/gmonks-webview.git"},"description":"A WebView library for Unity Android platform, providing a simple way to display web content within Unity applications.","maintainers":[{"name":"gmonks-mahesh","email":"mahesh@gmonks.com"},{"name":"gmonks","email":"gmonks.games@gmail.com"}],"readme":"# WebView for Unity\n\nA Unity package for embedding web content in your Unity projects.\n\n## Features\n\n- Display web pages inside Unity\n- JavaScript and C# communication\n- Supports Android Platform only\n\n## Installation\n\n### Option 1: Using Unity Package Manager with Scoped Registry\n\n1. Open your Unity project.\n2. Go to **Edit > Project Settings > Package Manager > Scoped Registries**.\n3. Click **+** to add a new scoped registry and enter:\n    - **Name:** GMonks\n    - **URL:** `https://registry.npmjs.org`\n    - **Scope(s):** `com.gmonks`\n4. Click **Save**.\n6. After adding the scoped registry, the package should appear in the Package Manager under the registry's name.\n7. Locate `com.gmonks.webview` in the list, select it, and choose the desired version to install.\n8. Click **Install**.\n\n### Option 2: Modify `manifest.json` Directly\n\n1. Open your project folder and navigate to `Packages/manifest.json`.\n2. Add or update the `scopedRegistries` section:\n    ```json\n    \"scopedRegistries\": [\n      {\n        \"name\": \"GMonks\",\n        \"url\": \"https://registry.npmjs.org\",\n        \"scopes\": [\n          \"com.gmonks\"\n        ]\n      }\n    ],\n    ```\n3. Add the package to the `dependencies` section:\n    ```json\n    \"com.gmonks.webview\": \"x.y.z\"\n    ```\n    Replace `x.y.z` with the specific version you want to install, as listed in the package registry or release notes.\n\n4. Save the file and return to Unity. The package will be installed automatically.\n\n## Usage\n\nHere's a basic example of how to use the WebView package in your Unity project:\n1. **Create a `WebView` instance in your script.**  \n    The `WebView` is used as a class object and does not require a prefab. You can instantiate and control it directly from your code, as shown below.\n2. **Create a script to control the WebView.**  \n    For example, you can use the following pattern:\n\n    ```csharp\n    using GMonks.WebViewLib;\n    public class WebViewDemo : MonoBehaviour, IWebViewEventListener\n    {\n         [SerializeField] private Button loadWebViewBtn;\n         [SerializeField] private string webUrl = \"https://google.com/\";\n\n         private WebView webView;\n\n         private void Awake()\n         {\n              webView = new();\n              loadWebViewBtn.onClick.AddListener(() =>\n              {\n                    webView.OpenURL(webUrl, GetOptions());\n              });\n         }\n\n         private void OnEnable() => webView.EventHandler.AddListener(this);\n         private void OnDisable() => webView.EventHandler.RemoveListener(this);\n         private void OnDestroy() => webView.CloseWebView();\n\n         // Implement IWebViewEventListener methods as needed\n         public void OnWebViewFinishedLoading(string url) { /* ... */ }\n         public void OnWebViewClosed() { /* ... */ }\n         // See full example for more event handlers\n\n         private DisplayOptions GetOptions()\n         {\n              return new DisplayOptions()\n              {\n                    insets = new EdgeInsets(0, 0, 0, 0),\n                    setLoadWithOverviewMode = true,\n                    shouldUseWideViewPort = true,\n                    hidesTopBar = true,\n                    browserBackgroundColor = \"#FFFFFF\",\n                    hidesHistoryButtons = true,\n                    backButtonCustomBehaviour = true,\n                    webContentsDebuggingEnabled = true,\n                    pinchAndZoomEnabled = false,\n              };\n         }\n    }\n    ```\n\n3. **Implement the `IWebViewEventListener` interface** to handle events such as loading, errors, closing, and JavaScript callbacks.\n4. **Configure the WebView options** using the `DisplayOptions` class to customize appearance and behavior.\n5. **Use Unity UI elements** (like a Button) to trigger WebView actions.\n\n## Support\n\nThis package is maintained by GMonks Entertainment Private Limited.  \nFor support, please contact the package maintainer directly.\n\n---\n© 2014-2025 GMonks Entertainment Pvt. Ltd. All Rights Reserved.","readmeFilename":"README.md"}