mobile

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: BSD-3-Clause Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mobile provides mobile specific driver functionality.

Package mobile provides desktop specific mobile functionality.

Index

Constants

View Source
const (
	// KeyBack represents the back button which may be hardware or software
	KeyBack event.KeyName = "Back"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device interface {
	// Request that the mobile device show the touch screen keyboard (standard layout)
	ShowVirtualKeyboard()
	// Request that the mobile device show the touch screen keyboard (custom layout)
	ShowVirtualKeyboardType(KeyboardType)
	// Request that the mobile device dismiss the touch screen keyboard
	HideVirtualKeyboard()
}

Device describes functionality only available on mobile

type Driver

type Driver interface {
	// GoBack asks the OS to go to the previous app / activity, where supported
	GoBack()
}

Driver represents the extended capabilities of a mobile driver

Since: 1.0

type KeyboardType

type KeyboardType int32

KeyboardType represents a type of virtual keyboard

const (
	// DefaultKeyboard is the keyboard with default input style and "return" return key
	DefaultKeyboard KeyboardType = iota
	// SingleLineKeyboard is the keyboard with default input style and "Done" return key
	SingleLineKeyboard
	// NumberKeyboard is the keyboard with number input style and "Done" return key
	NumberKeyboard
	// PasswordKeyboard is used to ensure that text is not leaked to 3rd party keyboard providers
	PasswordKeyboard
)

type Keyboardable

type Keyboardable interface {
	event.Focusable

	Keyboard() KeyboardType
}

Keyboardable describes any CanvasObject that needs a keyboard

type TouchEvent

type TouchEvent struct {
	event.PointEvent
}

TouchEvent contains data relating to mobile touch events

type Touchable

type Touchable interface {
	TouchDown(*TouchEvent)
	TouchUp(*TouchEvent)
	TouchCancel(*TouchEvent)
}

Touchable represents mobile touch events that can be sent to CanvasObjects

Jump to

Keyboard shortcuts

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