Fyne API "fyne.Device"

fyne.Device


import "fyne.io/fyne/v2"

Usage

type Device

type Device interface {
	Orientation() DeviceOrientation
	IsMobile() bool
	IsBrowser() bool
	HasKeyboard() bool
	SystemScaleForWindow(Window) float32
}

Device provides information about the devices the code is running on

func CurrentDevice

func CurrentDevice() Device

CurrentDevice returns the device information for the current hardware (via the driver)