print

package
v0.0.4 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: 6 Imported by: 0

Documentation

Overview

Package print provides Go bindings for android.print.

Index

Constants

View Source
const (
	Creator        = consts.Creator
	StateBlocked   = consts.StateBlocked
	StateCanceled  = consts.StateCanceled
	StateCompleted = consts.StateCompleted
	StateCreated   = consts.StateCreated
	StateFailed    = consts.StateFailed
	StateQueued    = consts.StateQueued
	StateStarted   = consts.StateStarted
)

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 Job added in v0.0.4

type Job struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Job wraps android.print.PrintJob.

func (*Job) Cancel added in v0.0.4

func (m *Job) Cancel() error

Cancel calls android.print.PrintJob.cancel.

func (*Job) Equals added in v0.0.4

func (m *Job) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.print.PrintJob.equals.

func (*Job) GetId added in v0.0.4

func (m *Job) GetId() (*jni.Object, error)

GetId calls android.print.PrintJob.getId.

func (*Job) GetInfo added in v0.0.4

func (m *Job) GetInfo() (*jni.Object, error)

GetInfo calls android.print.PrintJob.getInfo.

func (*Job) HashCode added in v0.0.4

func (m *Job) HashCode() (int32, error)

HashCode calls android.print.PrintJob.hashCode.

func (*Job) IsBlocked added in v0.0.4

func (m *Job) IsBlocked() (bool, error)

IsBlocked calls android.print.PrintJob.isBlocked.

func (*Job) IsCancelled added in v0.0.4

func (m *Job) IsCancelled() (bool, error)

IsCancelled calls android.print.PrintJob.isCancelled.

func (*Job) IsCompleted added in v0.0.4

func (m *Job) IsCompleted() (bool, error)

IsCompleted calls android.print.PrintJob.isCompleted.

func (*Job) IsFailed added in v0.0.4

func (m *Job) IsFailed() (bool, error)

IsFailed calls android.print.PrintJob.isFailed.

func (*Job) IsQueued added in v0.0.4

func (m *Job) IsQueued() (bool, error)

IsQueued calls android.print.PrintJob.isQueued.

func (*Job) IsStarted added in v0.0.4

func (m *Job) IsStarted() (bool, error)

IsStarted calls android.print.PrintJob.isStarted.

func (*Job) Restart added in v0.0.4

func (m *Job) Restart() error

Restart calls android.print.PrintJob.restart.

type JobInfo added in v0.0.4

type JobInfo struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

JobInfo wraps android.print.PrintJobInfo.

func (*JobInfo) DescribeContents added in v0.0.4

func (m *JobInfo) DescribeContents() (int32, error)

DescribeContents calls android.print.PrintJobInfo.describeContents.

func (*JobInfo) GetAdvancedIntOption added in v0.0.4

func (m *JobInfo) GetAdvancedIntOption(arg0 string) (int32, error)

GetAdvancedIntOption calls android.print.PrintJobInfo.getAdvancedIntOption.

func (*JobInfo) GetAdvancedStringOption added in v0.0.4

func (m *JobInfo) GetAdvancedStringOption(arg0 string) (string, error)

GetAdvancedStringOption calls android.print.PrintJobInfo.getAdvancedStringOption.

func (*JobInfo) GetAttributes added in v0.0.4

func (m *JobInfo) GetAttributes() (*jni.Object, error)

GetAttributes calls android.print.PrintJobInfo.getAttributes.

func (*JobInfo) GetCopies added in v0.0.4

func (m *JobInfo) GetCopies() (int32, error)

GetCopies calls android.print.PrintJobInfo.getCopies.

func (*JobInfo) GetCreationTime added in v0.0.4

func (m *JobInfo) GetCreationTime() (int64, error)

GetCreationTime calls android.print.PrintJobInfo.getCreationTime.

func (*JobInfo) GetId added in v0.0.4

func (m *JobInfo) GetId() (*jni.Object, error)

GetId calls android.print.PrintJobInfo.getId.

func (*JobInfo) GetLabel added in v0.0.4

func (m *JobInfo) GetLabel() (string, error)

GetLabel calls android.print.PrintJobInfo.getLabel.

func (*JobInfo) GetPages added in v0.0.4

func (m *JobInfo) GetPages() (*jni.Object, error)

GetPages calls android.print.PrintJobInfo.getPages.

func (*JobInfo) GetPrinterId added in v0.0.4

func (m *JobInfo) GetPrinterId() (*jni.Object, error)

GetPrinterId calls android.print.PrintJobInfo.getPrinterId.

func (*JobInfo) GetState added in v0.0.4

func (m *JobInfo) GetState() (int32, error)

GetState calls android.print.PrintJobInfo.getState.

func (*JobInfo) HasAdvancedOption added in v0.0.4

func (m *JobInfo) HasAdvancedOption(arg0 string) (bool, error)

HasAdvancedOption calls android.print.PrintJobInfo.hasAdvancedOption.

func (*JobInfo) ToString added in v0.0.4

func (m *JobInfo) ToString() (string, error)

ToString calls android.print.PrintJobInfo.toString.

func (*JobInfo) WriteToParcel added in v0.0.4

func (m *JobInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.print.PrintJobInfo.writeToParcel.

type Manager added in v0.0.4

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

Manager wraps android.print.PrintManager.

func NewManager added in v0.0.4

func NewManager(ctx *app.Context) (*Manager, error)

NewManager obtains android.print.PrintManager from the Android system service manager.

func (*Manager) Close added in v0.0.4

func (m *Manager) Close()

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

func (*Manager) GetPrintJobs added in v0.0.4

func (m *Manager) GetPrintJobs() (*jni.Object, error)

GetPrintJobs calls android.print.PrintManager.getPrintJobs.

func (*Manager) IsPrintServiceEnabled added in v0.0.4

func (m *Manager) IsPrintServiceEnabled(arg0 *jni.Object) (bool, error)

IsPrintServiceEnabled calls android.print.PrintManager.isPrintServiceEnabled.

func (*Manager) Print added in v0.0.4

func (m *Manager) Print(
	arg0 string,
	arg1 *jni.Object,
	arg2 *jni.Object,
) (*jni.Object, error)

Print calls android.print.PrintManager.print.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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