blob

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package blob provides Go bindings for android.app.blob.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type StoreManager added in v0.0.4

type StoreManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

StoreManager wraps android.app.blob.BlobStoreManager.

func NewStoreManager added in v0.0.4

func NewStoreManager(ctx *app.Context) (*StoreManager, error)

NewStoreManager obtains android.app.blob.BlobStoreManager from the Android system service manager.

func (*StoreManager) AbandonSession added in v0.0.4

func (m *StoreManager) AbandonSession(arg0 int64) error

AbandonSession calls android.app.blob.BlobStoreManager.abandonSession.

func (*StoreManager) AcquireLease2 added in v0.0.4

func (m *StoreManager) AcquireLease2(arg0 *jni.Object, arg1 int32) error

AcquireLease2 calls android.app.blob.BlobStoreManager.acquireLease.

func (*StoreManager) AcquireLease2_2 added in v0.0.4

func (m *StoreManager) AcquireLease2_2(arg0 *jni.Object, arg1 string) error

AcquireLease2_2 calls android.app.blob.BlobStoreManager.acquireLease.

func (*StoreManager) AcquireLease3_1 added in v0.0.4

func (m *StoreManager) AcquireLease3_1(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int64,
) error

AcquireLease3_1 calls android.app.blob.BlobStoreManager.acquireLease.

func (*StoreManager) AcquireLease3_3 added in v0.0.4

func (m *StoreManager) AcquireLease3_3(
	arg0 *jni.Object,
	arg1 string,
	arg2 int64,
) error

AcquireLease3_3 calls android.app.blob.BlobStoreManager.acquireLease.

func (*StoreManager) Close added in v0.0.4

func (m *StoreManager) Close()

Close releases the global reference to the underlying Java object. After Close, the StoreManager must not be used.

func (*StoreManager) CreateSession added in v0.0.4

func (m *StoreManager) CreateSession(arg0 *jni.Object) (int64, error)

CreateSession calls android.app.blob.BlobStoreManager.createSession.

func (*StoreManager) GetLeasedBlobs added in v0.0.4

func (m *StoreManager) GetLeasedBlobs() (*jni.Object, error)

GetLeasedBlobs calls android.app.blob.BlobStoreManager.getLeasedBlobs.

func (*StoreManager) GetRemainingLeaseQuotaBytes added in v0.0.4

func (m *StoreManager) GetRemainingLeaseQuotaBytes() (int64, error)

GetRemainingLeaseQuotaBytes calls android.app.blob.BlobStoreManager.getRemainingLeaseQuotaBytes.

func (*StoreManager) OpenBlob added in v0.0.4

func (m *StoreManager) OpenBlob(arg0 *jni.Object) (*jni.Object, error)

OpenBlob calls android.app.blob.BlobStoreManager.openBlob.

func (*StoreManager) OpenSession added in v0.0.4

func (m *StoreManager) OpenSession(arg0 int64) (*jni.Object, error)

OpenSession calls android.app.blob.BlobStoreManager.openSession.

func (*StoreManager) ReleaseLease added in v0.0.4

func (m *StoreManager) ReleaseLease(arg0 *jni.Object) error

ReleaseLease calls android.app.blob.BlobStoreManager.releaseLease.

Jump to

Keyboard shortcuts

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