persistablebundle

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package persistablebundle provides Go bindings for Android PersistableBundle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AParcel

type AParcel = capi.AParcel

type Binder_status_t

type Binder_status_t = capi.Binder_status_t

type Error

type Error int32

Error represents an NDK error code.

func (Error) Error

func (e Error) Error() string

type PERSISTABLEBUNDLE

type PERSISTABLEBUNDLE int32
const (
	APERSISTABLEBUNDLE_KEY_NOT_FOUND    PERSISTABLEBUNDLE = -1
	APERSISTABLEBUNDLE_ALLOCATOR_FAILED PERSISTABLEBUNDLE = -2
)

type PersistableBundle

type PersistableBundle struct {
	// contains filtered or unexported fields
}

PersistableBundle wraps the NDK APersistableBundle handle.

func NewPersistableBundle

func NewPersistableBundle() *PersistableBundle

NewPersistableBundle creates a new PersistableBundle.

func NewPersistableBundleFromPointer

func NewPersistableBundleFromPointer(ptr unsafe.Pointer) *PersistableBundle

NewPersistableBundleFromPointer wraps a raw APersistableBundle pointer.

func ReadFromParcel

func ReadFromParcel(parcel *AParcel) (*PersistableBundle, error)

ReadFromParcel calls the underlying C function.

func (*PersistableBundle) Close

func (h *PersistableBundle) Close() error

Close releases the underlying NDK handle.

func (*PersistableBundle) Dup

Dup creates a new PersistableBundle from this PersistableBundle.

func (*PersistableBundle) Erase

func (h *PersistableBundle) Erase(key string) int32

Erase returns the value directly.

func (*PersistableBundle) GetBoolean

func (h *PersistableBundle) GetBoolean(key string, val *bool) bool

GetBoolean returns the value directly.

func (*PersistableBundle) GetBooleanVector

func (h *PersistableBundle) GetBooleanVector(key string, buffer *bool, bufferSizeBytes int32) int32

GetBooleanVector returns the value directly.

func (*PersistableBundle) GetDouble

func (h *PersistableBundle) GetDouble(key string, val *float64) bool

GetDouble returns the value directly.

func (*PersistableBundle) GetDoubleVector

func (h *PersistableBundle) GetDoubleVector(key string, buffer *float64, bufferSizeBytes int32) int32

GetDoubleVector returns the value directly.

func (*PersistableBundle) GetInt

func (h *PersistableBundle) GetInt(key string, val *int32) bool

GetInt returns the value directly.

func (*PersistableBundle) GetIntVector

func (h *PersistableBundle) GetIntVector(key string, buffer *int32, bufferSizeBytes int32) int32

GetIntVector returns the value directly.

func (*PersistableBundle) GetLong

func (h *PersistableBundle) GetLong(key string, val *int64) bool

GetLong returns the value directly.

func (*PersistableBundle) GetLongVector

func (h *PersistableBundle) GetLongVector(key string, buffer *int64, bufferSizeBytes int32) int32

GetLongVector returns the value directly.

func (*PersistableBundle) GetPersistableBundle

func (h *PersistableBundle) GetPersistableBundle(key string) (*PersistableBundle, bool)

GetPersistableBundle calls the underlying NDK function.

func (*PersistableBundle) IsEqual

func (h *PersistableBundle) IsEqual(rhs *PersistableBundle) bool

IsEqual returns the value directly.

func (*PersistableBundle) Pointer

func (h *PersistableBundle) Pointer() unsafe.Pointer

Pointer returns the underlying pointer as unsafe.Pointer.

func (*PersistableBundle) PutBoolean

func (h *PersistableBundle) PutBoolean(key string, val bool)

PutBoolean calls the underlying NDK function.

func (*PersistableBundle) PutBooleanVector

func (h *PersistableBundle) PutBooleanVector(key string, vec *bool, num int32)

PutBooleanVector calls the underlying NDK function.

func (*PersistableBundle) PutDouble

func (h *PersistableBundle) PutDouble(key string, val float64)

PutDouble calls the underlying NDK function.

func (*PersistableBundle) PutDoubleVector

func (h *PersistableBundle) PutDoubleVector(key string, vec *float64, num int32)

PutDoubleVector calls the underlying NDK function.

func (*PersistableBundle) PutInt

func (h *PersistableBundle) PutInt(key string, val int32)

PutInt calls the underlying NDK function.

func (*PersistableBundle) PutIntVector

func (h *PersistableBundle) PutIntVector(key string, vec *int32, num int32)

PutIntVector calls the underlying NDK function.

func (*PersistableBundle) PutLong

func (h *PersistableBundle) PutLong(key string, val int64)

PutLong calls the underlying NDK function.

func (*PersistableBundle) PutLongVector

func (h *PersistableBundle) PutLongVector(key string, vec *int64, num int32)

PutLongVector calls the underlying NDK function.

func (*PersistableBundle) PutPersistableBundle

func (h *PersistableBundle) PutPersistableBundle(key string, val *PersistableBundle)

PutPersistableBundle calls the underlying NDK function.

func (*PersistableBundle) PutString

func (h *PersistableBundle) PutString(key string, val string)

PutString calls the underlying NDK function.

func (*PersistableBundle) Size

func (h *PersistableBundle) Size() int32

Size returns the value directly.

func (*PersistableBundle) WriteToParcel

func (h *PersistableBundle) WriteToParcel(parcel *AParcel) error

WriteToParcel calls the underlying NDK function.

Jump to

Keyboard shortcuts

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