Screen Example
This example will detect all attached screens and display their details.
Running on macOS with private APIs
This example configures a translucent macOS backdrop. The webview transparency needed to reveal that backdrop requires the private_mac_apis build tag. Without it, the example runs with an opaque webview above the native backdrop.
From this example directory, run:
go run -tags private_mac_apis .
Omit -tags private_mac_apis to run with public macOS APIs only. The tag has no effect on Windows, Linux, iOS, or Android. See the shared private API guide for production builds and fallback details.
Running the example
To run the example, simply run the following command:
go run .
Status
| Platform |
Status |
| Mac |
Working |
| Windows |
Working |
| Linux |
|