Documentation ¶
Index ¶
- Variables
- func CompareBrowserVersions(v1 string, v2 string) (int, error)
- func CreateCoreWebView2EnvironmentWithOptions(browserExecutableFolder, userDataFolder *uint16, environmentOptions uintptr, ...) (uintptr, error)
- func GetInstalledVersion() (string, error)
- func GetInstalledWebViewVersion() string
- func InstallUsingBootstrapper() (bool, error)
- type Info
Constants ¶
This section is empty.
Variables ¶
var WebView2Loader []byte
Functions ¶
func CompareBrowserVersions ¶
CompareBrowserVersions will compare the 2 given versions and return:
-1 = v1 < v2 0 = v1 == v2 1 = v1 > v2
func CreateCoreWebView2EnvironmentWithOptions ¶
func CreateCoreWebView2EnvironmentWithOptions(browserExecutableFolder, userDataFolder *uint16, environmentOptions uintptr, environmentCompletedHandle uintptr) (uintptr, error)
CreateCoreWebView2EnvironmentWithOptions tries to load WebviewLoader2 and call the CreateCoreWebView2EnvironmentWithOptions routine.
func GetInstalledVersion ¶
GetInstalledVersion returns the installed version of the webview2 runtime. If there is no version installed, a blank string is returned.
func GetInstalledWebViewVersion ¶
func GetInstalledWebViewVersion() string
GetInstalledWebViewVersion returns the installed version of the webview2 runtime. If there is no version installed, a blank string is returned.
func InstallUsingBootstrapper ¶
InstallUsingBootstrapper will extract the embedded bootstrapper from Microsoft and run it to install the latest version of the runtime. Returns true if the installer ran successfully. Returns an error if something goes wrong 注意,此exe不支持arm64芯片