mobile

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Copyright 2014 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. An app that draws a green triangle on a red background.

In order to build this program as an Android APK, using the gomobile tool.

See http://godoc.org/golang.org/x/mobile/cmd/gomobile to install gomobile.

Get the basic example and use gomobile to build or install it on your device.

$ go get -d golang.org/x/mobile/example/basic
$ gomobile build golang.org/x/mobile/example/basic # will build an APK

# plug your Android device to your computer or start an Android emulator.
# if you have adb installed on your machine, use gomobile install to
# build and deploy the APK to an Android target.
$ gomobile install golang.org/x/mobile/example/basic

Switch to your device or emulator to start the Basic application from the launcher. You can also run the application on your desktop by running the command below. (Note: It currently doesn't work on Windows.)

$ go install golang.org/x/mobile/example/basic && basic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrossClipbardMobile

type CrossClipbardMobile struct {
}

func NewCrossClipbardMobile

func NewCrossClipbardMobile() *CrossClipbardMobile

func (*CrossClipbardMobile) Start

func (c *CrossClipbardMobile) Start()

Jump to

Keyboard shortcuts

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