mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
app: add Handle type and PlatformHandle()
On Android, allow access to JVM and Application context. Signed-off-by: Greg Pomerantz <gmp.gio@wow.st>
This commit is contained in:
committed by
Elias Naur
parent
175144fa99
commit
5ef176af81
@@ -0,0 +1,11 @@
|
||||
package window
|
||||
|
||||
var PlatformHandle *Handle
|
||||
|
||||
type Handle struct {
|
||||
// JVM is the JNI *JVM pointer.
|
||||
JVM uintptr
|
||||
// Context is a global reference to the application's
|
||||
// android.content.Context instance.
|
||||
Context uintptr
|
||||
}
|
||||
Reference in New Issue
Block a user