printservice

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Overview

Package printservice provides Go bindings for android.printservice.

Index

Constants

View Source
const (
	ExtraCanSelectPrinter  = consts.ExtraCanSelectPrinter
	ExtraPrinterInfo       = consts.ExtraPrinterInfo
	ExtraPrintDocumentInfo = consts.ExtraPrintDocumentInfo
	ExtraPrintJobInfo      = consts.ExtraPrintJobInfo
	ExtraSelectPrinter     = consts.ExtraSelectPrinter
	ServiceInterface       = consts.ServiceInterface
	ServiceMetaData        = consts.ServiceMetaData
)

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 CustomPrinterIconCallback

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

CustomPrinterIconCallback wraps android.printservice.CustomPrinterIconCallback.

func (*CustomPrinterIconCallback) OnCustomPrinterIconLoaded

func (m *CustomPrinterIconCallback) OnCustomPrinterIconLoaded(arg0 *jni.Object) (bool, error)

OnCustomPrinterIconLoaded calls android.printservice.CustomPrinterIconCallback.onCustomPrinterIconLoaded.

func (*CustomPrinterIconCallback) ToString added in v0.0.8

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

ToString calls android.printservice.CustomPrinterIconCallback.toString.

type PrintDocument

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

PrintDocument wraps android.printservice.PrintDocument.

func (*PrintDocument) GetData

func (m *PrintDocument) GetData() (*jni.Object, error)

GetData calls android.printservice.PrintDocument.getData.

func (*PrintDocument) GetInfo

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

GetInfo calls android.printservice.PrintDocument.getInfo.

func (*PrintDocument) ToString added in v0.0.8

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

ToString calls android.printservice.PrintDocument.toString.

type PrintJob

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

PrintJob wraps android.printservice.PrintJob.

func (*PrintJob) Block

func (m *PrintJob) Block(arg0 string) (bool, error)

Block calls android.printservice.PrintJob.block.

func (*PrintJob) Cancel

func (m *PrintJob) Cancel() (bool, error)

Cancel calls android.printservice.PrintJob.cancel.

func (*PrintJob) Complete

func (m *PrintJob) Complete() (bool, error)

Complete calls android.printservice.PrintJob.complete.

func (*PrintJob) Equals

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

Equals calls android.printservice.PrintJob.equals.

func (*PrintJob) Fail

func (m *PrintJob) Fail(arg0 string) (bool, error)

Fail calls android.printservice.PrintJob.fail.

func (*PrintJob) GetAdvancedIntOption

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

GetAdvancedIntOption calls android.printservice.PrintJob.getAdvancedIntOption.

func (*PrintJob) GetAdvancedStringOption

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

GetAdvancedStringOption calls android.printservice.PrintJob.getAdvancedStringOption.

func (*PrintJob) GetDocument

func (m *PrintJob) GetDocument() (*jni.Object, error)

GetDocument calls android.printservice.PrintJob.getDocument.

func (*PrintJob) GetId

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

GetId calls android.printservice.PrintJob.getId.

func (*PrintJob) GetInfo

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

GetInfo calls android.printservice.PrintJob.getInfo.

func (*PrintJob) GetTag

func (m *PrintJob) GetTag() (string, error)

GetTag calls android.printservice.PrintJob.getTag.

func (*PrintJob) HasAdvancedOption

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

HasAdvancedOption calls android.printservice.PrintJob.hasAdvancedOption.

func (*PrintJob) HashCode

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

HashCode calls android.printservice.PrintJob.hashCode.

func (*PrintJob) IsBlocked

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

IsBlocked calls android.printservice.PrintJob.isBlocked.

func (*PrintJob) IsCancelled

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

IsCancelled calls android.printservice.PrintJob.isCancelled.

func (*PrintJob) IsCompleted

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

IsCompleted calls android.printservice.PrintJob.isCompleted.

func (*PrintJob) IsFailed

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

IsFailed calls android.printservice.PrintJob.isFailed.

func (*PrintJob) IsQueued

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

IsQueued calls android.printservice.PrintJob.isQueued.

func (*PrintJob) IsStarted

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

IsStarted calls android.printservice.PrintJob.isStarted.

func (*PrintJob) SetProgress

func (m *PrintJob) SetProgress(arg0 float32) error

SetProgress calls android.printservice.PrintJob.setProgress.

func (*PrintJob) SetStatus1

func (m *PrintJob) SetStatus1(arg0 int32) error

SetStatus1 calls android.printservice.PrintJob.setStatus.

func (*PrintJob) SetStatus1_1

func (m *PrintJob) SetStatus1_1(arg0 string) error

SetStatus1_1 calls android.printservice.PrintJob.setStatus.

func (*PrintJob) SetTag

func (m *PrintJob) SetTag(arg0 string) (bool, error)

SetTag calls android.printservice.PrintJob.setTag.

func (*PrintJob) Start

func (m *PrintJob) Start() (bool, error)

Start calls android.printservice.PrintJob.start.

func (*PrintJob) ToString added in v0.0.8

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

ToString calls android.printservice.PrintJob.toString.

type PrintService

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

PrintService wraps android.printservice.PrintService.

func (*PrintService) GeneratePrinterId

func (m *PrintService) GeneratePrinterId(arg0 string) (*jni.Object, error)

GeneratePrinterId calls android.printservice.PrintService.generatePrinterId.

func (*PrintService) GetActivePrintJobs added in v0.0.8

func (m *PrintService) GetActivePrintJobs() (*jni.Object, error)

GetActivePrintJobs calls android.printservice.PrintService.getActivePrintJobs.

func (*PrintService) OnBind

func (m *PrintService) OnBind(arg0 *jni.Object) (*jni.Object, error)

OnBind calls android.printservice.PrintService.onBind.

func (*PrintService) ToString added in v0.0.8

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

ToString calls android.printservice.PrintService.toString.

type PrinterDiscoverySession

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

PrinterDiscoverySession wraps android.printservice.PrinterDiscoverySession.

func (*PrinterDiscoverySession) GetPrinters added in v0.0.8

func (m *PrinterDiscoverySession) GetPrinters() (*jni.Object, error)

GetPrinters calls android.printservice.PrinterDiscoverySession.getPrinters.

func (*PrinterDiscoverySession) GetTrackedPrinters added in v0.0.8

func (m *PrinterDiscoverySession) GetTrackedPrinters() (*jni.Object, error)

GetTrackedPrinters calls android.printservice.PrinterDiscoverySession.getTrackedPrinters.

func (*PrinterDiscoverySession) IsDestroyed

func (m *PrinterDiscoverySession) IsDestroyed() (bool, error)

IsDestroyed calls android.printservice.PrinterDiscoverySession.isDestroyed.

func (*PrinterDiscoverySession) IsPrinterDiscoveryStarted

func (m *PrinterDiscoverySession) IsPrinterDiscoveryStarted() (bool, error)

IsPrinterDiscoveryStarted calls android.printservice.PrinterDiscoverySession.isPrinterDiscoveryStarted.

func (*PrinterDiscoverySession) OnDestroy

func (m *PrinterDiscoverySession) OnDestroy() error

OnDestroy calls android.printservice.PrinterDiscoverySession.onDestroy.

func (*PrinterDiscoverySession) OnRequestCustomPrinterIcon

func (m *PrinterDiscoverySession) OnRequestCustomPrinterIcon(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
) error

OnRequestCustomPrinterIcon calls android.printservice.PrinterDiscoverySession.onRequestCustomPrinterIcon.

func (*PrinterDiscoverySession) OnStartPrinterStateTracking

func (m *PrinterDiscoverySession) OnStartPrinterStateTracking(arg0 *jni.Object) error

OnStartPrinterStateTracking calls android.printservice.PrinterDiscoverySession.onStartPrinterStateTracking.

func (*PrinterDiscoverySession) OnStopPrinterDiscovery

func (m *PrinterDiscoverySession) OnStopPrinterDiscovery() error

OnStopPrinterDiscovery calls android.printservice.PrinterDiscoverySession.onStopPrinterDiscovery.

func (*PrinterDiscoverySession) OnStopPrinterStateTracking

func (m *PrinterDiscoverySession) OnStopPrinterStateTracking(arg0 *jni.Object) error

OnStopPrinterStateTracking calls android.printservice.PrinterDiscoverySession.onStopPrinterStateTracking.

func (*PrinterDiscoverySession) ToString added in v0.0.8

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

ToString calls android.printservice.PrinterDiscoverySession.toString.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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