clipboard

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented Clipboard")
	ErrNotAClipboard  = errors.New("Object is not a Clipboard")
)

Functions

func GetInterface

func GetInterface() js.Value

GetJSInterface get the JS interface

Types

type Clipboard

type Clipboard struct {
	eventtarget.EventTarget
}

BroadcastChannel struct

func NewFromJSObject

func NewFromJSObject(obj js.Value) (Clipboard, error)

func (Clipboard) Clipboard_

func (c Clipboard) Clipboard_() Clipboard

func (Clipboard) Read

func (c Clipboard) Read() (promise.Promise, error)

func (Clipboard) ReadText

func (c Clipboard) ReadText() (promise.Promise, error)

func (Clipboard) Write

func (Clipboard) WriteText

func (c Clipboard) WriteText(data string) (promise.Promise, error)

type ClipboardFrom

type ClipboardFrom interface {
	Clipboard_() Clipboard
}

Jump to

Keyboard shortcuts

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