ndk

package module
v0.0.0-...-92056c7 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 1 Imported by: 0

README

NDK

This is an attempt to make to work the NDK Go-bindings left in old repository github.com/gooid/gooid.

I haven't tried the provided examples, but I copied camera-related files from Camera2Demo into FyneCameraDemo and made it work using fyne to package it for Android:

FyneCameraDemo

To try it:

go install fyne.io/fyne/v2/cmd/fyne@latest

cd ./examples/FyneCameraDemo
~/go/bin/fyne package -os android/arm64

And when I've launched the app, I got this: FyneCameraDemo_screenshot.png


OLD `README.md (originally from github.com/gooid/gooid)

Go bindings for Android NDK

用 Go 开发 APK

基本编译环境
示例应用
Storage demo

Storage demo

Sensor demo

Sensor demo

Record demo

Record demo

Camera demo

Camera demo

FaceDetect

FaceDetect

Documentation

Index

Constants

View Source
const (
	ACTIVITY_SHOW_SOFT_INPUT_IMPLICIT      = ndk.ACTIVITY_SHOW_SOFT_INPUT_IMPLICIT
	ACTIVITY_SHOW_SOFT_INPUT_FORCED        = ndk.ACTIVITY_SHOW_SOFT_INPUT_FORCED
	ACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY = ndk.ACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY
	ACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS    = ndk.ACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS
	WINDOW_FORMAT_RGBA_8888                = ndk.WINDOW_FORMAT_RGBA_8888
	WINDOW_FORMAT_RGBX_8888                = ndk.WINDOW_FORMAT_RGBX_8888
	WINDOW_FORMAT_RGB_565                  = ndk.WINDOW_FORMAT_RGB_565
	FLAG_ALLOW_LOCK_WHILE_SCREEN_ON        = ndk.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON
	FLAG_DIM_BEHIND                        = ndk.FLAG_DIM_BEHIND
	FLAG_BLUR_BEHIND                       = ndk.FLAG_BLUR_BEHIND
	FLAG_NOT_FOCUSABLE                     = ndk.FLAG_NOT_FOCUSABLE
	FLAG_NOT_TOUCHABLE                     = ndk.FLAG_NOT_TOUCHABLE
	FLAG_NOT_TOUCH_MODAL                   = ndk.FLAG_NOT_TOUCH_MODAL
	FLAG_TOUCHABLE_WHEN_WAKING             = ndk.FLAG_TOUCHABLE_WHEN_WAKING
	FLAG_KEEP_SCREEN_ON                    = ndk.FLAG_KEEP_SCREEN_ON
	FLAG_LAYOUT_IN_SCREEN                  = ndk.FLAG_LAYOUT_IN_SCREEN
	FLAG_LAYOUT_NO_LIMITS                  = ndk.FLAG_LAYOUT_NO_LIMITS
	FLAG_FULLSCREEN                        = ndk.FLAG_FULLSCREEN
	FLAG_FORCE_NOT_FULLSCREEN              = ndk.FLAG_FORCE_NOT_FULLSCREEN
	FLAG_DITHER                            = ndk.FLAG_DITHER
	FLAG_SECURE                            = ndk.FLAG_SECURE
	FLAG_SCALED                            = ndk.FLAG_SCALED
	FLAG_IGNORE_CHEEK_PRESSES              = ndk.FLAG_IGNORE_CHEEK_PRESSES
	FLAG_LAYOUT_INSET_DECOR                = ndk.FLAG_LAYOUT_INSET_DECOR
	FLAG_ALT_FOCUSABLE_IM                  = ndk.FLAG_ALT_FOCUSABLE_IM
	FLAG_WATCH_OUTSIDE_TOUCH               = ndk.FLAG_WATCH_OUTSIDE_TOUCH
	FLAG_SHOW_WHEN_LOCKED                  = ndk.FLAG_SHOW_WHEN_LOCKED
	FLAG_SHOW_WALLPAPER                    = ndk.FLAG_SHOW_WALLPAPER
	FLAG_TURN_SCREEN_ON                    = ndk.FLAG_TURN_SCREEN_ON
	FLAG_DISMISS_KEYGUARD                  = ndk.FLAG_DISMISS_KEYGUARD
)

Variables

This section is empty.

Functions

func FindMatchLibrary

func FindMatchLibrary(pattern string) []string

FindMatchLibrary find library path

see filepath.Glob(pattern string)

func Loop

func Loop() bool

func PropGet

func PropGet(k string) string

getprop

func PropVisit

func PropVisit(cb func(k, v string))

visitor all properties

func SetMainCB

func SetMainCB(fn func(*Context))

Types

type Activity

type Activity = ndk.Activity

type Callbacks

type Callbacks = ndk.Callbacks

type Context

type Context = ndk.Context

type InputEvent

type InputEvent = ndk.InputEvent

type Window

type Window = ndk.Window

Directories

Path Synopsis
Package audio provides a basic audio player.
Package audio provides a basic audio player.
al
Package al provides golang audio library bindings for OpenAL.
Package al provides golang audio library bindings for OpenAL.
alc
Package alc provides OpenAL's ALC (Audio Library Context) bindings for Go.
Package alc provides OpenAL's ALC (Audio Library Context) bindings for Go.
examples
utility
utility

Jump to

Keyboard shortcuts

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