handle

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package handle defines interfaces satisfied by all NDK handle types, enabling generic code and interoperability with external Android Go packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NativeHandle

type NativeHandle interface {
	// Pointer returns the underlying C pointer as unsafe.Pointer.
	Pointer() unsafe.Pointer

	// UintPtr returns the underlying C pointer as uintptr,
	// suitable for gomobile bind and framework interop
	// (golang.org/x/mobile, gioui.org, github.com/xlab/android-go).
	UintPtr() uintptr
}

NativeHandle is satisfied by any NDK opaque handle wrapper. All generated handle types (Window, Looper, Sensor, Stream, etc.) implement this interface via their Pointer() and UintPtr() methods.

Jump to

Keyboard shortcuts

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