start_at_login

package
v3.0.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 5 Imported by: 0

README

start_at_login Plugin

This example plugin provides a way to generate hashes of strings.

Installation

Add the plugin to the Plugins option in the Applications options:

    Plugins: map[string]application.Plugin{
        "start_at_login": start_at_login.NewPlugin(),
    },

Usage

You can then call the methods from the frontend:

    wails.Plugin("start_at_login","StartAtLogin", true).then((result) => console.log(result))
    wails.Plugin("start_at_login","IsStartAtLogin").then((result) => console.log(result))

To use this from Go, create a new instance of the plugin, then call the methods on that:

    start_at_login := start_at_login.NewPlugin(Options)
	start_at_login.StartAtLogin(true)

Support

If you find a bug in this plugin, please raise a ticket here. Please do not contact the Wails team for support.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// RegistryKey is the key in the registry to use for storing the start at login setting.
	// This defaults to the name of the executable
	RegistryKey string
}

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin(options Config) *Plugin

func (*Plugin) CallableByJS

func (p *Plugin) CallableByJS() []string

func (*Plugin) Init

func (p *Plugin) Init() error

func (*Plugin) InjectJS

func (p *Plugin) InjectJS() string

func (*Plugin) IsStartAtLogin

func (p *Plugin) IsStartAtLogin() (bool, error)

func (*Plugin) Name

func (p *Plugin) Name() string

Name returns the name of the plugin. You should use the go module format e.g. github.com/myuser/myplugin

func (*Plugin) Shutdown

func (p *Plugin) Shutdown()

Shutdown is called when the app is shutting down You can use this to clean up any resources you have allocated

func (*Plugin) StartAtLogin

func (p *Plugin) StartAtLogin(enabled bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL