Documentation
¶
Index ¶
- Constants
- type ILayoutResultCallback
- type ILayoutResultCallbackServer
- type IPrintDocumentAdapter
- type IPrintDocumentAdapterObserver
- type IPrintDocumentAdapterObserverServer
- type IPrintDocumentAdapterServer
- type IPrintJobStateChangeListener
- type IPrintJobStateChangeListenerServer
- type IPrintManager
- type IPrintManagerServer
- type IPrintServicesChangeListener
- type IPrintServicesChangeListenerServer
- type IPrintSpooler
- type IPrintSpoolerCallbacks
- type IPrintSpoolerCallbacksServer
- type IPrintSpoolerClient
- type IPrintSpoolerClientServer
- type IPrintSpoolerServer
- type IPrinterDiscoveryObserver
- type IPrinterDiscoveryObserverServer
- type IWriteResultCallback
- type IWriteResultCallbackServer
- type LayoutResultCallbackProxy
- func (p *LayoutResultCallbackProxy) AsBinder() binder.IBinder
- func (p *LayoutResultCallbackProxy) OnLayoutCanceled(ctx context.Context, sequence int32) error
- func (p *LayoutResultCallbackProxy) OnLayoutFailed(ctx context.Context, error_ string, sequence int32) error
- func (p *LayoutResultCallbackProxy) OnLayoutFinished(ctx context.Context, info PrintDocumentInfo, changed bool, sequence int32) error
- func (p *LayoutResultCallbackProxy) OnLayoutStarted(ctx context.Context, cancellation os.ICancellationSignal, sequence int32) error
- type LayoutResultCallbackStub
- type PageRange
- type PrintAttributes
- type PrintDocumentAdapterObserverProxy
- type PrintDocumentAdapterObserverStub
- type PrintDocumentAdapterProxy
- func (p *PrintDocumentAdapterProxy) AsBinder() binder.IBinder
- func (p *PrintDocumentAdapterProxy) Finish(ctx context.Context) error
- func (p *PrintDocumentAdapterProxy) Kill(ctx context.Context, reason string) error
- func (p *PrintDocumentAdapterProxy) Layout(ctx context.Context, oldAttributes PrintAttributes, ...) error
- func (p *PrintDocumentAdapterProxy) SetObserver(ctx context.Context, observer IPrintDocumentAdapterObserver) error
- func (p *PrintDocumentAdapterProxy) Start(ctx context.Context) error
- func (p *PrintDocumentAdapterProxy) Write(ctx context.Context, pages []PageRange, fd int32, ...) error
- type PrintDocumentAdapterStub
- type PrintDocumentInfo
- type PrintJobId
- type PrintJobInfo
- type PrintJobStateChangeListenerProxy
- type PrintJobStateChangeListenerStub
- type PrintManagerProxy
- func (p *PrintManagerProxy) AddPrintJobStateChangeListener(ctx context.Context, listener IPrintJobStateChangeListener, appId int32) error
- func (p *PrintManagerProxy) AddPrintServiceRecommendationsChangeListener(ctx context.Context, listener recommendation.IRecommendationsChangeListener) error
- func (p *PrintManagerProxy) AddPrintServicesChangeListener(ctx context.Context, listener IPrintServicesChangeListener) error
- func (p *PrintManagerProxy) AsBinder() binder.IBinder
- func (p *PrintManagerProxy) CancelPrintJob(ctx context.Context, printJobId PrintJobId, appId int32) error
- func (p *PrintManagerProxy) CreatePrinterDiscoverySession(ctx context.Context, observer IPrinterDiscoveryObserver) error
- func (p *PrintManagerProxy) DestroyPrinterDiscoverySession(ctx context.Context, observer IPrinterDiscoveryObserver) error
- func (p *PrintManagerProxy) GetBindInstantServiceAllowed(ctx context.Context) (bool, error)
- func (p *PrintManagerProxy) GetCustomPrinterIcon(ctx context.Context, printerId PrinterId) (drawable.Icon, error)
- func (p *PrintManagerProxy) GetPrintJobInfo(ctx context.Context, printJobId PrintJobId, appId int32) (PrintJobInfo, error)
- func (p *PrintManagerProxy) GetPrintJobInfos(ctx context.Context, appId int32) ([]PrintJobInfo, error)
- func (p *PrintManagerProxy) GetPrintServiceRecommendations(ctx context.Context) ([]recommendation.RecommendationInfo, error)
- func (p *PrintManagerProxy) GetPrintServices(ctx context.Context, selectionFlags int32) ([]printservice.PrintServiceInfo, error)
- func (p *PrintManagerProxy) IsPrintServiceEnabled(ctx context.Context, service content.ComponentName) (bool, error)
- func (p *PrintManagerProxy) Print(ctx context.Context, printJobName string, printAdapter IPrintDocumentAdapter, ...) (os.Bundle, error)
- func (p *PrintManagerProxy) RemovePrintJobStateChangeListener(ctx context.Context, listener IPrintJobStateChangeListener) error
- func (p *PrintManagerProxy) RemovePrintServiceRecommendationsChangeListener(ctx context.Context, listener recommendation.IRecommendationsChangeListener) error
- func (p *PrintManagerProxy) RemovePrintServicesChangeListener(ctx context.Context, listener IPrintServicesChangeListener) error
- func (p *PrintManagerProxy) RestartPrintJob(ctx context.Context, printJobId PrintJobId, appId int32) error
- func (p *PrintManagerProxy) SetBindInstantServiceAllowed(ctx context.Context, allowed bool) error
- func (p *PrintManagerProxy) SetPrintServiceEnabled(ctx context.Context, service content.ComponentName, isEnabled bool) error
- func (p *PrintManagerProxy) StartPrinterDiscovery(ctx context.Context, observer IPrinterDiscoveryObserver, ...) error
- func (p *PrintManagerProxy) StartPrinterStateTracking(ctx context.Context, printerId PrinterId) error
- func (p *PrintManagerProxy) StopPrinterDiscovery(ctx context.Context, observer IPrinterDiscoveryObserver) error
- func (p *PrintManagerProxy) StopPrinterStateTracking(ctx context.Context, printerId PrinterId) error
- func (p *PrintManagerProxy) ValidatePrinters(ctx context.Context, printerIds []PrinterId) error
- type PrintManagerStub
- type PrintServicesChangeListenerProxy
- type PrintServicesChangeListenerStub
- type PrintSpoolerCallbacksProxy
- func (p *PrintSpoolerCallbacksProxy) AsBinder() binder.IBinder
- func (p *PrintSpoolerCallbacksProxy) CustomPrinterIconCacheCleared(ctx context.Context, sequence int32) error
- func (p *PrintSpoolerCallbacksProxy) OnCancelPrintJobResult(ctx context.Context, canceled bool, sequence int32) error
- func (p *PrintSpoolerCallbacksProxy) OnCustomPrinterIconCached(ctx context.Context, sequence int32) error
- func (p *PrintSpoolerCallbacksProxy) OnGetCustomPrinterIconResult(ctx context.Context, icon drawable.Icon, sequence int32) error
- func (p *PrintSpoolerCallbacksProxy) OnGetPrintJobInfoResult(ctx context.Context, printJob PrintJobInfo, sequence int32) error
- func (p *PrintSpoolerCallbacksProxy) OnGetPrintJobInfosResult(ctx context.Context, printJob []PrintJobInfo, sequence int32) error
- func (p *PrintSpoolerCallbacksProxy) OnSetPrintJobStateResult(ctx context.Context, success bool, sequence int32) error
- func (p *PrintSpoolerCallbacksProxy) OnSetPrintJobTagResult(ctx context.Context, success bool, sequence int32) error
- type PrintSpoolerCallbacksStub
- type PrintSpoolerClientProxy
- func (p *PrintSpoolerClientProxy) AsBinder() binder.IBinder
- func (p *PrintSpoolerClientProxy) OnAllPrintJobsForServiceHandled(ctx context.Context, printService content.ComponentName) error
- func (p *PrintSpoolerClientProxy) OnAllPrintJobsHandled(ctx context.Context) error
- func (p *PrintSpoolerClientProxy) OnPrintJobQueued(ctx context.Context, printJob PrintJobInfo) error
- func (p *PrintSpoolerClientProxy) OnPrintJobStateChanged(ctx context.Context, printJob PrintJobInfo) error
- type PrintSpoolerClientStub
- type PrintSpoolerProxy
- func (p *PrintSpoolerProxy) AsBinder() binder.IBinder
- func (p *PrintSpoolerProxy) ClearCustomPrinterIconCache(ctx context.Context, callbacks IPrintSpoolerCallbacks, sequence int32) error
- func (p *PrintSpoolerProxy) CreatePrintJob(ctx context.Context, printJob PrintJobInfo) error
- func (p *PrintSpoolerProxy) GetCustomPrinterIcon(ctx context.Context, printerId PrinterId, callbacks IPrintSpoolerCallbacks, ...) error
- func (p *PrintSpoolerProxy) GetPrintJobInfo(ctx context.Context, printJobId PrintJobId, callback IPrintSpoolerCallbacks, ...) error
- func (p *PrintSpoolerProxy) GetPrintJobInfos(ctx context.Context, callback IPrintSpoolerCallbacks, ...) error
- func (p *PrintSpoolerProxy) OnCustomPrinterIconLoaded(ctx context.Context, printerId PrinterId, icon drawable.Icon, ...) error
- func (p *PrintSpoolerProxy) PruneApprovedPrintServices(ctx context.Context, servicesToKeep []content.ComponentName) error
- func (p *PrintSpoolerProxy) RemoveObsoletePrintJobs(ctx context.Context) error
- func (p *PrintSpoolerProxy) SetClient(ctx context.Context, client IPrintSpoolerClient) error
- func (p *PrintSpoolerProxy) SetPrintJobCancelling(ctx context.Context, printJobId PrintJobId, cancelling bool) error
- func (p *PrintSpoolerProxy) SetPrintJobState(ctx context.Context, printJobId PrintJobId, status int32, stateReason string, ...) error
- func (p *PrintSpoolerProxy) SetPrintJobTag(ctx context.Context, printJobId PrintJobId, tag string, ...) error
- func (p *PrintSpoolerProxy) SetProgress(ctx context.Context, printJobId PrintJobId, progress float32) error
- func (p *PrintSpoolerProxy) SetStatus(ctx context.Context, printJobId PrintJobId, status string) error
- func (p *PrintSpoolerProxy) SetStatusRes(ctx context.Context, printJobId PrintJobId, status int32, ...) error
- func (p *PrintSpoolerProxy) WritePrintJobData(ctx context.Context, fd int32, printJobId PrintJobId) error
- type PrintSpoolerStub
- type PrinterCapabilitiesInfo
- type PrinterDiscoveryObserverProxy
- type PrinterDiscoveryObserverStub
- type PrinterId
- type PrinterInfo
- type WriteResultCallbackProxy
- func (p *WriteResultCallbackProxy) AsBinder() binder.IBinder
- func (p *WriteResultCallbackProxy) OnWriteCanceled(ctx context.Context, sequence int32) error
- func (p *WriteResultCallbackProxy) OnWriteFailed(ctx context.Context, error_ string, sequence int32) error
- func (p *WriteResultCallbackProxy) OnWriteFinished(ctx context.Context, pages []PageRange, sequence int32) error
- func (p *WriteResultCallbackProxy) OnWriteStarted(ctx context.Context, cancellation os.ICancellationSignal, sequence int32) error
- type WriteResultCallbackStub
Constants ¶
const ( TransactionILayoutResultCallbackOnLayoutStarted = binder.FirstCallTransaction + 0 TransactionILayoutResultCallbackOnLayoutFinished = binder.FirstCallTransaction + 1 TransactionILayoutResultCallbackOnLayoutFailed = binder.FirstCallTransaction + 2 TransactionILayoutResultCallbackOnLayoutCanceled = binder.FirstCallTransaction + 3 )
const ( MethodILayoutResultCallbackOnLayoutStarted = "onLayoutStarted" MethodILayoutResultCallbackOnLayoutFinished = "onLayoutFinished" MethodILayoutResultCallbackOnLayoutFailed = "onLayoutFailed" MethodILayoutResultCallbackOnLayoutCanceled = "onLayoutCanceled" )
const ( TransactionIPrintDocumentAdapterSetObserver = binder.FirstCallTransaction + 0 TransactionIPrintDocumentAdapterStart = binder.FirstCallTransaction + 1 TransactionIPrintDocumentAdapterLayout = binder.FirstCallTransaction + 2 TransactionIPrintDocumentAdapterWrite = binder.FirstCallTransaction + 3 TransactionIPrintDocumentAdapterFinish = binder.FirstCallTransaction + 4 TransactionIPrintDocumentAdapterKill = binder.FirstCallTransaction + 5 )
const ( MethodIPrintDocumentAdapterSetObserver = "setObserver" MethodIPrintDocumentAdapterStart = "start" MethodIPrintDocumentAdapterLayout = "layout" MethodIPrintDocumentAdapterWrite = "write" MethodIPrintDocumentAdapterFinish = "finish" MethodIPrintDocumentAdapterKill = "kill" )
const ( TransactionIPrinterDiscoveryObserverOnPrintersAdded = binder.FirstCallTransaction + 0 TransactionIPrinterDiscoveryObserverOnPrintersRemoved = binder.FirstCallTransaction + 1 )
const ( MethodIPrinterDiscoveryObserverOnPrintersAdded = "onPrintersAdded" MethodIPrinterDiscoveryObserverOnPrintersRemoved = "onPrintersRemoved" )
const ( TransactionIPrintManagerGetPrintJobInfos = binder.FirstCallTransaction + 0 TransactionIPrintManagerGetPrintJobInfo = binder.FirstCallTransaction + 1 TransactionIPrintManagerPrint = binder.FirstCallTransaction + 2 TransactionIPrintManagerCancelPrintJob = binder.FirstCallTransaction + 3 TransactionIPrintManagerRestartPrintJob = binder.FirstCallTransaction + 4 TransactionIPrintManagerAddPrintJobStateChangeListener = binder.FirstCallTransaction + 5 TransactionIPrintManagerRemovePrintJobStateChangeListener = binder.FirstCallTransaction + 6 TransactionIPrintManagerAddPrintServicesChangeListener = binder.FirstCallTransaction + 7 TransactionIPrintManagerRemovePrintServicesChangeListener = binder.FirstCallTransaction + 8 TransactionIPrintManagerGetPrintServices = binder.FirstCallTransaction + 9 TransactionIPrintManagerSetPrintServiceEnabled = binder.FirstCallTransaction + 10 TransactionIPrintManagerIsPrintServiceEnabled = binder.FirstCallTransaction + 11 TransactionIPrintManagerAddPrintServiceRecommendationsChangeListener = binder.FirstCallTransaction + 12 TransactionIPrintManagerRemovePrintServiceRecommendationsChangeListener = binder.FirstCallTransaction + 13 TransactionIPrintManagerGetPrintServiceRecommendations = binder.FirstCallTransaction + 14 TransactionIPrintManagerCreatePrinterDiscoverySession = binder.FirstCallTransaction + 15 TransactionIPrintManagerStartPrinterDiscovery = binder.FirstCallTransaction + 16 TransactionIPrintManagerStopPrinterDiscovery = binder.FirstCallTransaction + 17 TransactionIPrintManagerValidatePrinters = binder.FirstCallTransaction + 18 TransactionIPrintManagerStartPrinterStateTracking = binder.FirstCallTransaction + 19 TransactionIPrintManagerGetCustomPrinterIcon = binder.FirstCallTransaction + 20 TransactionIPrintManagerStopPrinterStateTracking = binder.FirstCallTransaction + 21 TransactionIPrintManagerDestroyPrinterDiscoverySession = binder.FirstCallTransaction + 22 TransactionIPrintManagerGetBindInstantServiceAllowed = binder.FirstCallTransaction + 23 TransactionIPrintManagerSetBindInstantServiceAllowed = binder.FirstCallTransaction + 24 )
const ( MethodIPrintManagerGetPrintJobInfos = "getPrintJobInfos" MethodIPrintManagerGetPrintJobInfo = "getPrintJobInfo" MethodIPrintManagerPrint = "print" MethodIPrintManagerCancelPrintJob = "cancelPrintJob" MethodIPrintManagerRestartPrintJob = "restartPrintJob" MethodIPrintManagerAddPrintJobStateChangeListener = "addPrintJobStateChangeListener" MethodIPrintManagerRemovePrintJobStateChangeListener = "removePrintJobStateChangeListener" MethodIPrintManagerAddPrintServicesChangeListener = "addPrintServicesChangeListener" MethodIPrintManagerRemovePrintServicesChangeListener = "removePrintServicesChangeListener" MethodIPrintManagerGetPrintServices = "getPrintServices" MethodIPrintManagerSetPrintServiceEnabled = "setPrintServiceEnabled" MethodIPrintManagerIsPrintServiceEnabled = "isPrintServiceEnabled" MethodIPrintManagerAddPrintServiceRecommendationsChangeListener = "addPrintServiceRecommendationsChangeListener" MethodIPrintManagerRemovePrintServiceRecommendationsChangeListener = "removePrintServiceRecommendationsChangeListener" MethodIPrintManagerGetPrintServiceRecommendations = "getPrintServiceRecommendations" MethodIPrintManagerCreatePrinterDiscoverySession = "createPrinterDiscoverySession" MethodIPrintManagerStartPrinterDiscovery = "startPrinterDiscovery" MethodIPrintManagerStopPrinterDiscovery = "stopPrinterDiscovery" MethodIPrintManagerValidatePrinters = "validatePrinters" MethodIPrintManagerStartPrinterStateTracking = "startPrinterStateTracking" MethodIPrintManagerGetCustomPrinterIcon = "getCustomPrinterIcon" MethodIPrintManagerStopPrinterStateTracking = "stopPrinterStateTracking" MethodIPrintManagerDestroyPrinterDiscoverySession = "destroyPrinterDiscoverySession" MethodIPrintManagerGetBindInstantServiceAllowed = "getBindInstantServiceAllowed" MethodIPrintManagerSetBindInstantServiceAllowed = "setBindInstantServiceAllowed" )
const ( TransactionIPrintSpoolerRemoveObsoletePrintJobs = binder.FirstCallTransaction + 0 TransactionIPrintSpoolerGetPrintJobInfos = binder.FirstCallTransaction + 1 TransactionIPrintSpoolerGetPrintJobInfo = binder.FirstCallTransaction + 2 TransactionIPrintSpoolerCreatePrintJob = binder.FirstCallTransaction + 3 TransactionIPrintSpoolerSetPrintJobState = binder.FirstCallTransaction + 4 TransactionIPrintSpoolerSetProgress = binder.FirstCallTransaction + 5 TransactionIPrintSpoolerSetStatus = binder.FirstCallTransaction + 6 TransactionIPrintSpoolerSetStatusRes = binder.FirstCallTransaction + 7 TransactionIPrintSpoolerOnCustomPrinterIconLoaded = binder.FirstCallTransaction + 8 TransactionIPrintSpoolerGetCustomPrinterIcon = binder.FirstCallTransaction + 9 TransactionIPrintSpoolerClearCustomPrinterIconCache = binder.FirstCallTransaction + 10 TransactionIPrintSpoolerSetPrintJobTag = binder.FirstCallTransaction + 11 TransactionIPrintSpoolerWritePrintJobData = binder.FirstCallTransaction + 12 TransactionIPrintSpoolerSetClient = binder.FirstCallTransaction + 13 TransactionIPrintSpoolerSetPrintJobCancelling = binder.FirstCallTransaction + 14 TransactionIPrintSpoolerPruneApprovedPrintServices = binder.FirstCallTransaction + 15 )
const ( MethodIPrintSpoolerRemoveObsoletePrintJobs = "removeObsoletePrintJobs" MethodIPrintSpoolerGetPrintJobInfos = "getPrintJobInfos" MethodIPrintSpoolerGetPrintJobInfo = "getPrintJobInfo" MethodIPrintSpoolerCreatePrintJob = "createPrintJob" MethodIPrintSpoolerSetPrintJobState = "setPrintJobState" MethodIPrintSpoolerSetProgress = "setProgress" MethodIPrintSpoolerSetStatus = "setStatus" MethodIPrintSpoolerSetStatusRes = "setStatusRes" MethodIPrintSpoolerOnCustomPrinterIconLoaded = "onCustomPrinterIconLoaded" MethodIPrintSpoolerGetCustomPrinterIcon = "getCustomPrinterIcon" MethodIPrintSpoolerClearCustomPrinterIconCache = "clearCustomPrinterIconCache" MethodIPrintSpoolerSetPrintJobTag = "setPrintJobTag" MethodIPrintSpoolerWritePrintJobData = "writePrintJobData" MethodIPrintSpoolerSetClient = "setClient" MethodIPrintSpoolerSetPrintJobCancelling = "setPrintJobCancelling" MethodIPrintSpoolerPruneApprovedPrintServices = "pruneApprovedPrintServices" )
const ( TransactionIPrintSpoolerCallbacksOnGetPrintJobInfosResult = binder.FirstCallTransaction + 0 TransactionIPrintSpoolerCallbacksOnCancelPrintJobResult = binder.FirstCallTransaction + 1 TransactionIPrintSpoolerCallbacksOnSetPrintJobStateResult = binder.FirstCallTransaction + 2 TransactionIPrintSpoolerCallbacksOnSetPrintJobTagResult = binder.FirstCallTransaction + 3 TransactionIPrintSpoolerCallbacksOnGetPrintJobInfoResult = binder.FirstCallTransaction + 4 TransactionIPrintSpoolerCallbacksOnGetCustomPrinterIconResult = binder.FirstCallTransaction + 5 TransactionIPrintSpoolerCallbacksOnCustomPrinterIconCached = binder.FirstCallTransaction + 6 TransactionIPrintSpoolerCallbacksCustomPrinterIconCacheCleared = binder.FirstCallTransaction + 7 )
const ( MethodIPrintSpoolerCallbacksOnGetPrintJobInfosResult = "onGetPrintJobInfosResult" MethodIPrintSpoolerCallbacksOnCancelPrintJobResult = "onCancelPrintJobResult" MethodIPrintSpoolerCallbacksOnSetPrintJobStateResult = "onSetPrintJobStateResult" MethodIPrintSpoolerCallbacksOnSetPrintJobTagResult = "onSetPrintJobTagResult" MethodIPrintSpoolerCallbacksOnGetPrintJobInfoResult = "onGetPrintJobInfoResult" MethodIPrintSpoolerCallbacksOnGetCustomPrinterIconResult = "onGetCustomPrinterIconResult" MethodIPrintSpoolerCallbacksOnCustomPrinterIconCached = "onCustomPrinterIconCached" MethodIPrintSpoolerCallbacksCustomPrinterIconCacheCleared = "customPrinterIconCacheCleared" )
const ( TransactionIPrintSpoolerClientOnPrintJobQueued = binder.FirstCallTransaction + 0 TransactionIPrintSpoolerClientOnAllPrintJobsForServiceHandled = binder.FirstCallTransaction + 1 TransactionIPrintSpoolerClientOnAllPrintJobsHandled = binder.FirstCallTransaction + 2 TransactionIPrintSpoolerClientOnPrintJobStateChanged = binder.FirstCallTransaction + 3 )
const ( MethodIPrintSpoolerClientOnPrintJobQueued = "onPrintJobQueued" MethodIPrintSpoolerClientOnAllPrintJobsForServiceHandled = "onAllPrintJobsForServiceHandled" MethodIPrintSpoolerClientOnAllPrintJobsHandled = "onAllPrintJobsHandled" MethodIPrintSpoolerClientOnPrintJobStateChanged = "onPrintJobStateChanged" )
const ( TransactionIWriteResultCallbackOnWriteStarted = binder.FirstCallTransaction + 0 TransactionIWriteResultCallbackOnWriteFinished = binder.FirstCallTransaction + 1 TransactionIWriteResultCallbackOnWriteFailed = binder.FirstCallTransaction + 2 TransactionIWriteResultCallbackOnWriteCanceled = binder.FirstCallTransaction + 3 )
const ( MethodIWriteResultCallbackOnWriteStarted = "onWriteStarted" MethodIWriteResultCallbackOnWriteFinished = "onWriteFinished" MethodIWriteResultCallbackOnWriteFailed = "onWriteFailed" MethodIWriteResultCallbackOnWriteCanceled = "onWriteCanceled" )
const DescriptorILayoutResultCallback = "android.print.ILayoutResultCallback"
const DescriptorIPrintDocumentAdapter = "android.print.IPrintDocumentAdapter"
const DescriptorIPrintDocumentAdapterObserver = "android.print.IPrintDocumentAdapterObserver"
const DescriptorIPrintJobStateChangeListener = "android.print.IPrintJobStateChangeListener"
const DescriptorIPrintManager = "android.print.IPrintManager"
const DescriptorIPrintServicesChangeListener = "android.print.IPrintServicesChangeListener"
const DescriptorIPrintSpooler = "android.print.IPrintSpooler"
const DescriptorIPrintSpoolerCallbacks = "android.print.IPrintSpoolerCallbacks"
const DescriptorIPrintSpoolerClient = "android.print.IPrintSpoolerClient"
const DescriptorIPrinterDiscoveryObserver = "android.print.IPrinterDiscoveryObserver"
const DescriptorIWriteResultCallback = "android.print.IWriteResultCallback"
const (
MethodIPrintDocumentAdapterObserverOnDestroy = "onDestroy"
)
const (
MethodIPrintJobStateChangeListenerOnPrintJobStateChanged = "onPrintJobStateChanged"
)
const (
MethodIPrintServicesChangeListenerOnPrintServicesChanged = "onPrintServicesChanged"
)
const (
TransactionIPrintDocumentAdapterObserverOnDestroy = binder.FirstCallTransaction + 0
)
const (
TransactionIPrintJobStateChangeListenerOnPrintJobStateChanged = binder.FirstCallTransaction + 0
)
const (
TransactionIPrintServicesChangeListenerOnPrintServicesChanged = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILayoutResultCallback ¶
type ILayoutResultCallback interface {
AsBinder() binder.IBinder
OnLayoutStarted(ctx context.Context, cancellation os.ICancellationSignal, sequence int32) error
OnLayoutFinished(ctx context.Context, info PrintDocumentInfo, changed bool, sequence int32) error
OnLayoutFailed(ctx context.Context, error_ string, sequence int32) error
OnLayoutCanceled(ctx context.Context, sequence int32) error
}
func NewLayoutResultCallbackStub ¶
func NewLayoutResultCallbackStub( impl ILayoutResultCallbackServer, ) ILayoutResultCallback
NewLayoutResultCallbackStub creates a server-side ILayoutResultCallback wrapping the given server implementation. The returned value satisfies ILayoutResultCallback and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type ILayoutResultCallbackServer ¶
type ILayoutResultCallbackServer interface {
OnLayoutStarted(ctx context.Context, cancellation os.ICancellationSignal, sequence int32) error
OnLayoutFinished(ctx context.Context, info PrintDocumentInfo, changed bool, sequence int32) error
OnLayoutFailed(ctx context.Context, error_ string, sequence int32) error
OnLayoutCanceled(ctx context.Context, sequence int32) error
}
ILayoutResultCallbackServer is the server-side interface that user implementations provide to NewLayoutResultCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPrintDocumentAdapter ¶
type IPrintDocumentAdapter interface {
AsBinder() binder.IBinder
SetObserver(ctx context.Context, observer IPrintDocumentAdapterObserver) error
Start(ctx context.Context) error
Layout(ctx context.Context, oldAttributes PrintAttributes, newAttributes PrintAttributes, callback ILayoutResultCallback, metadata os.Bundle, sequence int32) error
Write(ctx context.Context, pages []PageRange, fd int32, callback IWriteResultCallback, sequence int32) error
Finish(ctx context.Context) error
Kill(ctx context.Context, reason string) error
}
func NewPrintDocumentAdapterStub ¶
func NewPrintDocumentAdapterStub( impl IPrintDocumentAdapterServer, ) IPrintDocumentAdapter
NewPrintDocumentAdapterStub creates a server-side IPrintDocumentAdapter wrapping the given server implementation. The returned value satisfies IPrintDocumentAdapter and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPrintDocumentAdapterObserver ¶
type IPrintDocumentAdapterObserver interface {
AsBinder() binder.IBinder
OnDestroy(ctx context.Context) error
}
func NewPrintDocumentAdapterObserverStub ¶
func NewPrintDocumentAdapterObserverStub( impl IPrintDocumentAdapterObserverServer, ) IPrintDocumentAdapterObserver
NewPrintDocumentAdapterObserverStub creates a server-side IPrintDocumentAdapterObserver wrapping the given server implementation. The returned value satisfies IPrintDocumentAdapterObserver and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPrintDocumentAdapterObserverServer ¶
IPrintDocumentAdapterObserverServer is the server-side interface that user implementations provide to NewPrintDocumentAdapterObserverStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPrintDocumentAdapterServer ¶
type IPrintDocumentAdapterServer interface {
SetObserver(ctx context.Context, observer IPrintDocumentAdapterObserver) error
Start(ctx context.Context) error
Layout(ctx context.Context, oldAttributes PrintAttributes, newAttributes PrintAttributes, callback ILayoutResultCallback, metadata os.Bundle, sequence int32) error
Write(ctx context.Context, pages []PageRange, fd int32, callback IWriteResultCallback, sequence int32) error
Finish(ctx context.Context) error
Kill(ctx context.Context, reason string) error
}
IPrintDocumentAdapterServer is the server-side interface that user implementations provide to NewPrintDocumentAdapterStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPrintJobStateChangeListener ¶
type IPrintJobStateChangeListener interface {
AsBinder() binder.IBinder
OnPrintJobStateChanged(ctx context.Context, printJobId PrintJobId) error
}
func NewPrintJobStateChangeListenerStub ¶
func NewPrintJobStateChangeListenerStub( impl IPrintJobStateChangeListenerServer, ) IPrintJobStateChangeListener
NewPrintJobStateChangeListenerStub creates a server-side IPrintJobStateChangeListener wrapping the given server implementation. The returned value satisfies IPrintJobStateChangeListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPrintJobStateChangeListenerServer ¶
type IPrintJobStateChangeListenerServer interface {
OnPrintJobStateChanged(ctx context.Context, printJobId PrintJobId) error
}
IPrintJobStateChangeListenerServer is the server-side interface that user implementations provide to NewPrintJobStateChangeListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPrintManager ¶
type IPrintManager interface {
AsBinder() binder.IBinder
GetPrintJobInfos(ctx context.Context, appId int32) ([]PrintJobInfo, error)
GetPrintJobInfo(ctx context.Context, printJobId PrintJobId, appId int32) (PrintJobInfo, error)
Print(ctx context.Context, printJobName string, printAdapter IPrintDocumentAdapter, attributes PrintAttributes, packageName string, appId int32) (os.Bundle, error)
CancelPrintJob(ctx context.Context, printJobId PrintJobId, appId int32) error
RestartPrintJob(ctx context.Context, printJobId PrintJobId, appId int32) error
AddPrintJobStateChangeListener(ctx context.Context, listener IPrintJobStateChangeListener, appId int32) error
RemovePrintJobStateChangeListener(ctx context.Context, listener IPrintJobStateChangeListener) error
AddPrintServicesChangeListener(ctx context.Context, listener IPrintServicesChangeListener) error
RemovePrintServicesChangeListener(ctx context.Context, listener IPrintServicesChangeListener) error
GetPrintServices(ctx context.Context, selectionFlags int32) ([]printservice.PrintServiceInfo, error)
SetPrintServiceEnabled(ctx context.Context, service content.ComponentName, isEnabled bool) error
IsPrintServiceEnabled(ctx context.Context, service content.ComponentName) (bool, error)
AddPrintServiceRecommendationsChangeListener(ctx context.Context, listener recommendation.IRecommendationsChangeListener) error
RemovePrintServiceRecommendationsChangeListener(ctx context.Context, listener recommendation.IRecommendationsChangeListener) error
GetPrintServiceRecommendations(ctx context.Context) ([]recommendation.RecommendationInfo, error)
CreatePrinterDiscoverySession(ctx context.Context, observer IPrinterDiscoveryObserver) error
StartPrinterDiscovery(ctx context.Context, observer IPrinterDiscoveryObserver, priorityList []PrinterId) error
StopPrinterDiscovery(ctx context.Context, observer IPrinterDiscoveryObserver) error
ValidatePrinters(ctx context.Context, printerIds []PrinterId) error
StartPrinterStateTracking(ctx context.Context, printerId PrinterId) error
GetCustomPrinterIcon(ctx context.Context, printerId PrinterId) (drawable.Icon, error)
StopPrinterStateTracking(ctx context.Context, printerId PrinterId) error
DestroyPrinterDiscoverySession(ctx context.Context, observer IPrinterDiscoveryObserver) error
GetBindInstantServiceAllowed(ctx context.Context) (bool, error)
SetBindInstantServiceAllowed(ctx context.Context, allowed bool) error
}
func NewPrintManagerStub ¶
func NewPrintManagerStub( impl IPrintManagerServer, ) IPrintManager
NewPrintManagerStub creates a server-side IPrintManager wrapping the given server implementation. The returned value satisfies IPrintManager and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPrintManagerServer ¶
type IPrintManagerServer interface {
GetPrintJobInfos(ctx context.Context, appId int32) ([]PrintJobInfo, error)
GetPrintJobInfo(ctx context.Context, printJobId PrintJobId, appId int32) (PrintJobInfo, error)
Print(ctx context.Context, printJobName string, printAdapter IPrintDocumentAdapter, attributes PrintAttributes, packageName string, appId int32) (os.Bundle, error)
CancelPrintJob(ctx context.Context, printJobId PrintJobId, appId int32) error
RestartPrintJob(ctx context.Context, printJobId PrintJobId, appId int32) error
AddPrintJobStateChangeListener(ctx context.Context, listener IPrintJobStateChangeListener, appId int32) error
RemovePrintJobStateChangeListener(ctx context.Context, listener IPrintJobStateChangeListener) error
AddPrintServicesChangeListener(ctx context.Context, listener IPrintServicesChangeListener) error
RemovePrintServicesChangeListener(ctx context.Context, listener IPrintServicesChangeListener) error
GetPrintServices(ctx context.Context, selectionFlags int32) ([]printservice.PrintServiceInfo, error)
SetPrintServiceEnabled(ctx context.Context, service content.ComponentName, isEnabled bool) error
IsPrintServiceEnabled(ctx context.Context, service content.ComponentName) (bool, error)
AddPrintServiceRecommendationsChangeListener(ctx context.Context, listener recommendation.IRecommendationsChangeListener) error
RemovePrintServiceRecommendationsChangeListener(ctx context.Context, listener recommendation.IRecommendationsChangeListener) error
GetPrintServiceRecommendations(ctx context.Context) ([]recommendation.RecommendationInfo, error)
CreatePrinterDiscoverySession(ctx context.Context, observer IPrinterDiscoveryObserver) error
StartPrinterDiscovery(ctx context.Context, observer IPrinterDiscoveryObserver, priorityList []PrinterId) error
StopPrinterDiscovery(ctx context.Context, observer IPrinterDiscoveryObserver) error
ValidatePrinters(ctx context.Context, printerIds []PrinterId) error
StartPrinterStateTracking(ctx context.Context, printerId PrinterId) error
GetCustomPrinterIcon(ctx context.Context, printerId PrinterId) (drawable.Icon, error)
StopPrinterStateTracking(ctx context.Context, printerId PrinterId) error
DestroyPrinterDiscoverySession(ctx context.Context, observer IPrinterDiscoveryObserver) error
GetBindInstantServiceAllowed(ctx context.Context) (bool, error)
SetBindInstantServiceAllowed(ctx context.Context, allowed bool) error
}
IPrintManagerServer is the server-side interface that user implementations provide to NewPrintManagerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPrintServicesChangeListener ¶
type IPrintServicesChangeListener interface {
AsBinder() binder.IBinder
OnPrintServicesChanged(ctx context.Context) error
}
func NewPrintServicesChangeListenerStub ¶
func NewPrintServicesChangeListenerStub( impl IPrintServicesChangeListenerServer, ) IPrintServicesChangeListener
NewPrintServicesChangeListenerStub creates a server-side IPrintServicesChangeListener wrapping the given server implementation. The returned value satisfies IPrintServicesChangeListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPrintServicesChangeListenerServer ¶
type IPrintServicesChangeListenerServer interface {
OnPrintServicesChanged(ctx context.Context) error
}
IPrintServicesChangeListenerServer is the server-side interface that user implementations provide to NewPrintServicesChangeListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPrintSpooler ¶
type IPrintSpooler interface {
AsBinder() binder.IBinder
RemoveObsoletePrintJobs(ctx context.Context) error
GetPrintJobInfos(ctx context.Context, callback IPrintSpoolerCallbacks, componentName content.ComponentName, state int32, appId int32, sequence int32) error
GetPrintJobInfo(ctx context.Context, printJobId PrintJobId, callback IPrintSpoolerCallbacks, appId int32, sequence int32) error
CreatePrintJob(ctx context.Context, printJob PrintJobInfo) error
SetPrintJobState(ctx context.Context, printJobId PrintJobId, status int32, stateReason string, callback IPrintSpoolerCallbacks, sequence int32) error
SetProgress(ctx context.Context, printJobId PrintJobId, progress float32) error
SetStatus(ctx context.Context, printJobId PrintJobId, status string) error
SetStatusRes(ctx context.Context, printJobId PrintJobId, status int32, appPackageName string) error
OnCustomPrinterIconLoaded(ctx context.Context, printerId PrinterId, icon drawable.Icon, callbacks IPrintSpoolerCallbacks, sequence int32) error
GetCustomPrinterIcon(ctx context.Context, printerId PrinterId, callbacks IPrintSpoolerCallbacks, sequence int32) error
ClearCustomPrinterIconCache(ctx context.Context, callbacks IPrintSpoolerCallbacks, sequence int32) error
SetPrintJobTag(ctx context.Context, printJobId PrintJobId, tag string, callback IPrintSpoolerCallbacks, sequence int32) error
WritePrintJobData(ctx context.Context, fd int32, printJobId PrintJobId) error
SetClient(ctx context.Context, client IPrintSpoolerClient) error
SetPrintJobCancelling(ctx context.Context, printJobId PrintJobId, cancelling bool) error
PruneApprovedPrintServices(ctx context.Context, servicesToKeep []content.ComponentName) error
}
func NewPrintSpoolerStub ¶
func NewPrintSpoolerStub( impl IPrintSpoolerServer, ) IPrintSpooler
NewPrintSpoolerStub creates a server-side IPrintSpooler wrapping the given server implementation. The returned value satisfies IPrintSpooler and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPrintSpoolerCallbacks ¶
type IPrintSpoolerCallbacks interface {
AsBinder() binder.IBinder
OnGetPrintJobInfosResult(ctx context.Context, printJob []PrintJobInfo, sequence int32) error
OnCancelPrintJobResult(ctx context.Context, canceled bool, sequence int32) error
OnSetPrintJobStateResult(ctx context.Context, success bool, sequence int32) error
OnSetPrintJobTagResult(ctx context.Context, success bool, sequence int32) error
OnGetPrintJobInfoResult(ctx context.Context, printJob PrintJobInfo, sequence int32) error
OnGetCustomPrinterIconResult(ctx context.Context, icon drawable.Icon, sequence int32) error
OnCustomPrinterIconCached(ctx context.Context, sequence int32) error
CustomPrinterIconCacheCleared(ctx context.Context, sequence int32) error
}
func NewPrintSpoolerCallbacksStub ¶
func NewPrintSpoolerCallbacksStub( impl IPrintSpoolerCallbacksServer, ) IPrintSpoolerCallbacks
NewPrintSpoolerCallbacksStub creates a server-side IPrintSpoolerCallbacks wrapping the given server implementation. The returned value satisfies IPrintSpoolerCallbacks and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPrintSpoolerCallbacksServer ¶
type IPrintSpoolerCallbacksServer interface {
OnGetPrintJobInfosResult(ctx context.Context, printJob []PrintJobInfo, sequence int32) error
OnCancelPrintJobResult(ctx context.Context, canceled bool, sequence int32) error
OnSetPrintJobStateResult(ctx context.Context, success bool, sequence int32) error
OnSetPrintJobTagResult(ctx context.Context, success bool, sequence int32) error
OnGetPrintJobInfoResult(ctx context.Context, printJob PrintJobInfo, sequence int32) error
OnGetCustomPrinterIconResult(ctx context.Context, icon drawable.Icon, sequence int32) error
OnCustomPrinterIconCached(ctx context.Context, sequence int32) error
CustomPrinterIconCacheCleared(ctx context.Context, sequence int32) error
}
IPrintSpoolerCallbacksServer is the server-side interface that user implementations provide to NewPrintSpoolerCallbacksStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPrintSpoolerClient ¶
type IPrintSpoolerClient interface {
AsBinder() binder.IBinder
OnPrintJobQueued(ctx context.Context, printJob PrintJobInfo) error
OnAllPrintJobsForServiceHandled(ctx context.Context, printService content.ComponentName) error
OnAllPrintJobsHandled(ctx context.Context) error
OnPrintJobStateChanged(ctx context.Context, printJob PrintJobInfo) error
}
func NewPrintSpoolerClientStub ¶
func NewPrintSpoolerClientStub( impl IPrintSpoolerClientServer, ) IPrintSpoolerClient
NewPrintSpoolerClientStub creates a server-side IPrintSpoolerClient wrapping the given server implementation. The returned value satisfies IPrintSpoolerClient and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPrintSpoolerClientServer ¶
type IPrintSpoolerClientServer interface {
OnPrintJobQueued(ctx context.Context, printJob PrintJobInfo) error
OnAllPrintJobsForServiceHandled(ctx context.Context, printService content.ComponentName) error
OnAllPrintJobsHandled(ctx context.Context) error
OnPrintJobStateChanged(ctx context.Context, printJob PrintJobInfo) error
}
IPrintSpoolerClientServer is the server-side interface that user implementations provide to NewPrintSpoolerClientStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPrintSpoolerServer ¶
type IPrintSpoolerServer interface {
RemoveObsoletePrintJobs(ctx context.Context) error
GetPrintJobInfos(ctx context.Context, callback IPrintSpoolerCallbacks, componentName content.ComponentName, state int32, appId int32, sequence int32) error
GetPrintJobInfo(ctx context.Context, printJobId PrintJobId, callback IPrintSpoolerCallbacks, appId int32, sequence int32) error
CreatePrintJob(ctx context.Context, printJob PrintJobInfo) error
SetPrintJobState(ctx context.Context, printJobId PrintJobId, status int32, stateReason string, callback IPrintSpoolerCallbacks, sequence int32) error
SetProgress(ctx context.Context, printJobId PrintJobId, progress float32) error
SetStatus(ctx context.Context, printJobId PrintJobId, status string) error
SetStatusRes(ctx context.Context, printJobId PrintJobId, status int32, appPackageName string) error
OnCustomPrinterIconLoaded(ctx context.Context, printerId PrinterId, icon drawable.Icon, callbacks IPrintSpoolerCallbacks, sequence int32) error
GetCustomPrinterIcon(ctx context.Context, printerId PrinterId, callbacks IPrintSpoolerCallbacks, sequence int32) error
ClearCustomPrinterIconCache(ctx context.Context, callbacks IPrintSpoolerCallbacks, sequence int32) error
SetPrintJobTag(ctx context.Context, printJobId PrintJobId, tag string, callback IPrintSpoolerCallbacks, sequence int32) error
WritePrintJobData(ctx context.Context, fd int32, printJobId PrintJobId) error
SetClient(ctx context.Context, client IPrintSpoolerClient) error
SetPrintJobCancelling(ctx context.Context, printJobId PrintJobId, cancelling bool) error
PruneApprovedPrintServices(ctx context.Context, servicesToKeep []content.ComponentName) error
}
IPrintSpoolerServer is the server-side interface that user implementations provide to NewPrintSpoolerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPrinterDiscoveryObserver ¶
type IPrinterDiscoveryObserver interface {
AsBinder() binder.IBinder
OnPrintersAdded(ctx context.Context, printers pm.ParceledListSlice) error
OnPrintersRemoved(ctx context.Context, printerIds pm.ParceledListSlice) error
}
func NewPrinterDiscoveryObserverStub ¶
func NewPrinterDiscoveryObserverStub( impl IPrinterDiscoveryObserverServer, ) IPrinterDiscoveryObserver
NewPrinterDiscoveryObserverStub creates a server-side IPrinterDiscoveryObserver wrapping the given server implementation. The returned value satisfies IPrinterDiscoveryObserver and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPrinterDiscoveryObserverServer ¶
type IPrinterDiscoveryObserverServer interface {
OnPrintersAdded(ctx context.Context, printers pm.ParceledListSlice) error
OnPrintersRemoved(ctx context.Context, printerIds pm.ParceledListSlice) error
}
IPrinterDiscoveryObserverServer is the server-side interface that user implementations provide to NewPrinterDiscoveryObserverStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IWriteResultCallback ¶
type IWriteResultCallback interface {
AsBinder() binder.IBinder
OnWriteStarted(ctx context.Context, cancellation os.ICancellationSignal, sequence int32) error
OnWriteFinished(ctx context.Context, pages []PageRange, sequence int32) error
OnWriteFailed(ctx context.Context, error_ string, sequence int32) error
OnWriteCanceled(ctx context.Context, sequence int32) error
}
func NewWriteResultCallbackStub ¶
func NewWriteResultCallbackStub( impl IWriteResultCallbackServer, ) IWriteResultCallback
NewWriteResultCallbackStub creates a server-side IWriteResultCallback wrapping the given server implementation. The returned value satisfies IWriteResultCallback and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IWriteResultCallbackServer ¶
type IWriteResultCallbackServer interface {
OnWriteStarted(ctx context.Context, cancellation os.ICancellationSignal, sequence int32) error
OnWriteFinished(ctx context.Context, pages []PageRange, sequence int32) error
OnWriteFailed(ctx context.Context, error_ string, sequence int32) error
OnWriteCanceled(ctx context.Context, sequence int32) error
}
IWriteResultCallbackServer is the server-side interface that user implementations provide to NewWriteResultCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type LayoutResultCallbackProxy ¶
func NewLayoutResultCallbackProxy ¶
func NewLayoutResultCallbackProxy( remote binder.IBinder, ) *LayoutResultCallbackProxy
func (*LayoutResultCallbackProxy) AsBinder ¶
func (p *LayoutResultCallbackProxy) AsBinder() binder.IBinder
func (*LayoutResultCallbackProxy) OnLayoutCanceled ¶
func (p *LayoutResultCallbackProxy) OnLayoutCanceled( ctx context.Context, sequence int32, ) error
func (*LayoutResultCallbackProxy) OnLayoutFailed ¶
func (*LayoutResultCallbackProxy) OnLayoutFinished ¶
func (p *LayoutResultCallbackProxy) OnLayoutFinished( ctx context.Context, info PrintDocumentInfo, changed bool, sequence int32, ) error
func (*LayoutResultCallbackProxy) OnLayoutStarted ¶
func (p *LayoutResultCallbackProxy) OnLayoutStarted( ctx context.Context, cancellation os.ICancellationSignal, sequence int32, ) error
type LayoutResultCallbackStub ¶
type LayoutResultCallbackStub struct {
Impl ILayoutResultCallback
Transport binder.VersionAwareTransport
}
LayoutResultCallbackStub dispatches incoming binder transactions to a typed ILayoutResultCallback implementation.
func (*LayoutResultCallbackStub) Descriptor ¶
func (s *LayoutResultCallbackStub) Descriptor() string
func (*LayoutResultCallbackStub) OnTransaction ¶
func (s *LayoutResultCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PrintAttributes ¶
func (*PrintAttributes) MarshalParcel ¶
func (s *PrintAttributes) MarshalParcel( p *parcel.Parcel, ) error
func (*PrintAttributes) UnmarshalParcel ¶
func (s *PrintAttributes) UnmarshalParcel( p *parcel.Parcel, ) error
type PrintDocumentAdapterObserverProxy ¶
func NewPrintDocumentAdapterObserverProxy ¶
func NewPrintDocumentAdapterObserverProxy( remote binder.IBinder, ) *PrintDocumentAdapterObserverProxy
func (*PrintDocumentAdapterObserverProxy) AsBinder ¶
func (p *PrintDocumentAdapterObserverProxy) AsBinder() binder.IBinder
type PrintDocumentAdapterObserverStub ¶
type PrintDocumentAdapterObserverStub struct {
Impl IPrintDocumentAdapterObserver
Transport binder.VersionAwareTransport
}
PrintDocumentAdapterObserverStub dispatches incoming binder transactions to a typed IPrintDocumentAdapterObserver implementation.
func (*PrintDocumentAdapterObserverStub) Descriptor ¶
func (s *PrintDocumentAdapterObserverStub) Descriptor() string
func (*PrintDocumentAdapterObserverStub) OnTransaction ¶
func (s *PrintDocumentAdapterObserverStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PrintDocumentAdapterProxy ¶
func NewPrintDocumentAdapterProxy ¶
func NewPrintDocumentAdapterProxy( remote binder.IBinder, ) *PrintDocumentAdapterProxy
func (*PrintDocumentAdapterProxy) AsBinder ¶
func (p *PrintDocumentAdapterProxy) AsBinder() binder.IBinder
func (*PrintDocumentAdapterProxy) Finish ¶
func (p *PrintDocumentAdapterProxy) Finish( ctx context.Context, ) error
func (*PrintDocumentAdapterProxy) Kill ¶
func (p *PrintDocumentAdapterProxy) Kill( ctx context.Context, reason string, ) error
func (*PrintDocumentAdapterProxy) Layout ¶
func (p *PrintDocumentAdapterProxy) Layout( ctx context.Context, oldAttributes PrintAttributes, newAttributes PrintAttributes, callback ILayoutResultCallback, metadata os.Bundle, sequence int32, ) error
func (*PrintDocumentAdapterProxy) SetObserver ¶
func (p *PrintDocumentAdapterProxy) SetObserver( ctx context.Context, observer IPrintDocumentAdapterObserver, ) error
func (*PrintDocumentAdapterProxy) Start ¶
func (p *PrintDocumentAdapterProxy) Start( ctx context.Context, ) error
func (*PrintDocumentAdapterProxy) Write ¶
func (p *PrintDocumentAdapterProxy) Write( ctx context.Context, pages []PageRange, fd int32, callback IWriteResultCallback, sequence int32, ) error
type PrintDocumentAdapterStub ¶
type PrintDocumentAdapterStub struct {
Impl IPrintDocumentAdapter
Transport binder.VersionAwareTransport
}
PrintDocumentAdapterStub dispatches incoming binder transactions to a typed IPrintDocumentAdapter implementation.
func (*PrintDocumentAdapterStub) Descriptor ¶
func (s *PrintDocumentAdapterStub) Descriptor() string
func (*PrintDocumentAdapterStub) OnTransaction ¶
func (s *PrintDocumentAdapterStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PrintDocumentInfo ¶
func (*PrintDocumentInfo) MarshalParcel ¶
func (s *PrintDocumentInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*PrintDocumentInfo) UnmarshalParcel ¶
func (s *PrintDocumentInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type PrintJobId ¶
type PrintJobId struct {
Value string
}
func (*PrintJobId) MarshalParcel ¶
func (s *PrintJobId) MarshalParcel( p *parcel.Parcel, ) error
func (*PrintJobId) UnmarshalParcel ¶
func (s *PrintJobId) UnmarshalParcel( p *parcel.Parcel, ) error
type PrintJobInfo ¶
type PrintJobInfo struct {
Label string
PrinterName string
State int32
AppId int32
Tag string
CreationTime int64
Copies int32
Progress float32
StatusRes int32
PrinterId *PrinterId
}
func (*PrintJobInfo) MarshalParcel ¶
func (s *PrintJobInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*PrintJobInfo) UnmarshalParcel ¶
func (s *PrintJobInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type PrintJobStateChangeListenerProxy ¶
func NewPrintJobStateChangeListenerProxy ¶
func NewPrintJobStateChangeListenerProxy( remote binder.IBinder, ) *PrintJobStateChangeListenerProxy
func (*PrintJobStateChangeListenerProxy) AsBinder ¶
func (p *PrintJobStateChangeListenerProxy) AsBinder() binder.IBinder
func (*PrintJobStateChangeListenerProxy) OnPrintJobStateChanged ¶
func (p *PrintJobStateChangeListenerProxy) OnPrintJobStateChanged( ctx context.Context, printJobId PrintJobId, ) error
type PrintJobStateChangeListenerStub ¶
type PrintJobStateChangeListenerStub struct {
Impl IPrintJobStateChangeListener
Transport binder.VersionAwareTransport
}
PrintJobStateChangeListenerStub dispatches incoming binder transactions to a typed IPrintJobStateChangeListener implementation.
func (*PrintJobStateChangeListenerStub) Descriptor ¶
func (s *PrintJobStateChangeListenerStub) Descriptor() string
func (*PrintJobStateChangeListenerStub) OnTransaction ¶
func (s *PrintJobStateChangeListenerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PrintManagerProxy ¶
func GetPrintManager ¶
func GetPrintManager( ctx context.Context, sm *servicemanager.ServiceManager, ) (*PrintManagerProxy, error)
GetPrintManager retrieves the PrintService service and returns a typed proxy.
func NewPrintManagerProxy ¶
func NewPrintManagerProxy( remote binder.IBinder, ) *PrintManagerProxy
func (*PrintManagerProxy) AddPrintJobStateChangeListener ¶
func (p *PrintManagerProxy) AddPrintJobStateChangeListener( ctx context.Context, listener IPrintJobStateChangeListener, appId int32, ) error
func (*PrintManagerProxy) AddPrintServiceRecommendationsChangeListener ¶
func (p *PrintManagerProxy) AddPrintServiceRecommendationsChangeListener( ctx context.Context, listener recommendation.IRecommendationsChangeListener, ) error
func (*PrintManagerProxy) AddPrintServicesChangeListener ¶
func (p *PrintManagerProxy) AddPrintServicesChangeListener( ctx context.Context, listener IPrintServicesChangeListener, ) error
func (*PrintManagerProxy) AsBinder ¶
func (p *PrintManagerProxy) AsBinder() binder.IBinder
func (*PrintManagerProxy) CancelPrintJob ¶
func (p *PrintManagerProxy) CancelPrintJob( ctx context.Context, printJobId PrintJobId, appId int32, ) error
func (*PrintManagerProxy) CreatePrinterDiscoverySession ¶
func (p *PrintManagerProxy) CreatePrinterDiscoverySession( ctx context.Context, observer IPrinterDiscoveryObserver, ) error
func (*PrintManagerProxy) DestroyPrinterDiscoverySession ¶
func (p *PrintManagerProxy) DestroyPrinterDiscoverySession( ctx context.Context, observer IPrinterDiscoveryObserver, ) error
func (*PrintManagerProxy) GetBindInstantServiceAllowed ¶
func (p *PrintManagerProxy) GetBindInstantServiceAllowed( ctx context.Context, ) (bool, error)
func (*PrintManagerProxy) GetCustomPrinterIcon ¶
func (*PrintManagerProxy) GetPrintJobInfo ¶
func (p *PrintManagerProxy) GetPrintJobInfo( ctx context.Context, printJobId PrintJobId, appId int32, ) (PrintJobInfo, error)
func (*PrintManagerProxy) GetPrintJobInfos ¶
func (p *PrintManagerProxy) GetPrintJobInfos( ctx context.Context, appId int32, ) ([]PrintJobInfo, error)
func (*PrintManagerProxy) GetPrintServiceRecommendations ¶
func (p *PrintManagerProxy) GetPrintServiceRecommendations( ctx context.Context, ) ([]recommendation.RecommendationInfo, error)
func (*PrintManagerProxy) GetPrintServices ¶
func (p *PrintManagerProxy) GetPrintServices( ctx context.Context, selectionFlags int32, ) ([]printservice.PrintServiceInfo, error)
func (*PrintManagerProxy) IsPrintServiceEnabled ¶
func (p *PrintManagerProxy) IsPrintServiceEnabled( ctx context.Context, service content.ComponentName, ) (bool, error)
func (*PrintManagerProxy) Print ¶
func (p *PrintManagerProxy) Print( ctx context.Context, printJobName string, printAdapter IPrintDocumentAdapter, attributes PrintAttributes, packageName string, appId int32, ) (os.Bundle, error)
func (*PrintManagerProxy) RemovePrintJobStateChangeListener ¶
func (p *PrintManagerProxy) RemovePrintJobStateChangeListener( ctx context.Context, listener IPrintJobStateChangeListener, ) error
func (*PrintManagerProxy) RemovePrintServiceRecommendationsChangeListener ¶
func (p *PrintManagerProxy) RemovePrintServiceRecommendationsChangeListener( ctx context.Context, listener recommendation.IRecommendationsChangeListener, ) error
func (*PrintManagerProxy) RemovePrintServicesChangeListener ¶
func (p *PrintManagerProxy) RemovePrintServicesChangeListener( ctx context.Context, listener IPrintServicesChangeListener, ) error
func (*PrintManagerProxy) RestartPrintJob ¶
func (p *PrintManagerProxy) RestartPrintJob( ctx context.Context, printJobId PrintJobId, appId int32, ) error
func (*PrintManagerProxy) SetBindInstantServiceAllowed ¶
func (p *PrintManagerProxy) SetBindInstantServiceAllowed( ctx context.Context, allowed bool, ) error
func (*PrintManagerProxy) SetPrintServiceEnabled ¶
func (p *PrintManagerProxy) SetPrintServiceEnabled( ctx context.Context, service content.ComponentName, isEnabled bool, ) error
func (*PrintManagerProxy) StartPrinterDiscovery ¶
func (p *PrintManagerProxy) StartPrinterDiscovery( ctx context.Context, observer IPrinterDiscoveryObserver, priorityList []PrinterId, ) error
func (*PrintManagerProxy) StartPrinterStateTracking ¶
func (p *PrintManagerProxy) StartPrinterStateTracking( ctx context.Context, printerId PrinterId, ) error
func (*PrintManagerProxy) StopPrinterDiscovery ¶
func (p *PrintManagerProxy) StopPrinterDiscovery( ctx context.Context, observer IPrinterDiscoveryObserver, ) error
func (*PrintManagerProxy) StopPrinterStateTracking ¶
func (p *PrintManagerProxy) StopPrinterStateTracking( ctx context.Context, printerId PrinterId, ) error
func (*PrintManagerProxy) ValidatePrinters ¶
func (p *PrintManagerProxy) ValidatePrinters( ctx context.Context, printerIds []PrinterId, ) error
type PrintManagerStub ¶
type PrintManagerStub struct {
Impl IPrintManager
Transport binder.VersionAwareTransport
}
PrintManagerStub dispatches incoming binder transactions to a typed IPrintManager implementation.
func (*PrintManagerStub) Descriptor ¶
func (s *PrintManagerStub) Descriptor() string
func (*PrintManagerStub) OnTransaction ¶
func (s *PrintManagerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PrintServicesChangeListenerProxy ¶
func NewPrintServicesChangeListenerProxy ¶
func NewPrintServicesChangeListenerProxy( remote binder.IBinder, ) *PrintServicesChangeListenerProxy
func (*PrintServicesChangeListenerProxy) AsBinder ¶
func (p *PrintServicesChangeListenerProxy) AsBinder() binder.IBinder
func (*PrintServicesChangeListenerProxy) OnPrintServicesChanged ¶
func (p *PrintServicesChangeListenerProxy) OnPrintServicesChanged( ctx context.Context, ) error
type PrintServicesChangeListenerStub ¶
type PrintServicesChangeListenerStub struct {
Impl IPrintServicesChangeListener
Transport binder.VersionAwareTransport
}
PrintServicesChangeListenerStub dispatches incoming binder transactions to a typed IPrintServicesChangeListener implementation.
func (*PrintServicesChangeListenerStub) Descriptor ¶
func (s *PrintServicesChangeListenerStub) Descriptor() string
func (*PrintServicesChangeListenerStub) OnTransaction ¶
func (s *PrintServicesChangeListenerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PrintSpoolerCallbacksProxy ¶
func NewPrintSpoolerCallbacksProxy ¶
func NewPrintSpoolerCallbacksProxy( remote binder.IBinder, ) *PrintSpoolerCallbacksProxy
func (*PrintSpoolerCallbacksProxy) AsBinder ¶
func (p *PrintSpoolerCallbacksProxy) AsBinder() binder.IBinder
func (*PrintSpoolerCallbacksProxy) CustomPrinterIconCacheCleared ¶
func (p *PrintSpoolerCallbacksProxy) CustomPrinterIconCacheCleared( ctx context.Context, sequence int32, ) error
func (*PrintSpoolerCallbacksProxy) OnCancelPrintJobResult ¶
func (*PrintSpoolerCallbacksProxy) OnCustomPrinterIconCached ¶
func (p *PrintSpoolerCallbacksProxy) OnCustomPrinterIconCached( ctx context.Context, sequence int32, ) error
func (*PrintSpoolerCallbacksProxy) OnGetCustomPrinterIconResult ¶
func (*PrintSpoolerCallbacksProxy) OnGetPrintJobInfoResult ¶
func (p *PrintSpoolerCallbacksProxy) OnGetPrintJobInfoResult( ctx context.Context, printJob PrintJobInfo, sequence int32, ) error
func (*PrintSpoolerCallbacksProxy) OnGetPrintJobInfosResult ¶
func (p *PrintSpoolerCallbacksProxy) OnGetPrintJobInfosResult( ctx context.Context, printJob []PrintJobInfo, sequence int32, ) error
func (*PrintSpoolerCallbacksProxy) OnSetPrintJobStateResult ¶
func (*PrintSpoolerCallbacksProxy) OnSetPrintJobTagResult ¶
type PrintSpoolerCallbacksStub ¶
type PrintSpoolerCallbacksStub struct {
Impl IPrintSpoolerCallbacks
Transport binder.VersionAwareTransport
}
PrintSpoolerCallbacksStub dispatches incoming binder transactions to a typed IPrintSpoolerCallbacks implementation.
func (*PrintSpoolerCallbacksStub) Descriptor ¶
func (s *PrintSpoolerCallbacksStub) Descriptor() string
func (*PrintSpoolerCallbacksStub) OnTransaction ¶
func (s *PrintSpoolerCallbacksStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PrintSpoolerClientProxy ¶
func NewPrintSpoolerClientProxy ¶
func NewPrintSpoolerClientProxy( remote binder.IBinder, ) *PrintSpoolerClientProxy
func (*PrintSpoolerClientProxy) AsBinder ¶
func (p *PrintSpoolerClientProxy) AsBinder() binder.IBinder
func (*PrintSpoolerClientProxy) OnAllPrintJobsForServiceHandled ¶
func (p *PrintSpoolerClientProxy) OnAllPrintJobsForServiceHandled( ctx context.Context, printService content.ComponentName, ) error
func (*PrintSpoolerClientProxy) OnAllPrintJobsHandled ¶
func (p *PrintSpoolerClientProxy) OnAllPrintJobsHandled( ctx context.Context, ) error
func (*PrintSpoolerClientProxy) OnPrintJobQueued ¶
func (p *PrintSpoolerClientProxy) OnPrintJobQueued( ctx context.Context, printJob PrintJobInfo, ) error
func (*PrintSpoolerClientProxy) OnPrintJobStateChanged ¶
func (p *PrintSpoolerClientProxy) OnPrintJobStateChanged( ctx context.Context, printJob PrintJobInfo, ) error
type PrintSpoolerClientStub ¶
type PrintSpoolerClientStub struct {
Impl IPrintSpoolerClient
Transport binder.VersionAwareTransport
}
PrintSpoolerClientStub dispatches incoming binder transactions to a typed IPrintSpoolerClient implementation.
func (*PrintSpoolerClientStub) Descriptor ¶
func (s *PrintSpoolerClientStub) Descriptor() string
func (*PrintSpoolerClientStub) OnTransaction ¶
func (s *PrintSpoolerClientStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PrintSpoolerProxy ¶
func NewPrintSpoolerProxy ¶
func NewPrintSpoolerProxy( remote binder.IBinder, ) *PrintSpoolerProxy
func (*PrintSpoolerProxy) AsBinder ¶
func (p *PrintSpoolerProxy) AsBinder() binder.IBinder
func (*PrintSpoolerProxy) ClearCustomPrinterIconCache ¶
func (p *PrintSpoolerProxy) ClearCustomPrinterIconCache( ctx context.Context, callbacks IPrintSpoolerCallbacks, sequence int32, ) error
func (*PrintSpoolerProxy) CreatePrintJob ¶
func (p *PrintSpoolerProxy) CreatePrintJob( ctx context.Context, printJob PrintJobInfo, ) error
func (*PrintSpoolerProxy) GetCustomPrinterIcon ¶
func (p *PrintSpoolerProxy) GetCustomPrinterIcon( ctx context.Context, printerId PrinterId, callbacks IPrintSpoolerCallbacks, sequence int32, ) error
func (*PrintSpoolerProxy) GetPrintJobInfo ¶
func (p *PrintSpoolerProxy) GetPrintJobInfo( ctx context.Context, printJobId PrintJobId, callback IPrintSpoolerCallbacks, appId int32, sequence int32, ) error
func (*PrintSpoolerProxy) GetPrintJobInfos ¶
func (p *PrintSpoolerProxy) GetPrintJobInfos( ctx context.Context, callback IPrintSpoolerCallbacks, componentName content.ComponentName, state int32, appId int32, sequence int32, ) error
func (*PrintSpoolerProxy) OnCustomPrinterIconLoaded ¶
func (p *PrintSpoolerProxy) OnCustomPrinterIconLoaded( ctx context.Context, printerId PrinterId, icon drawable.Icon, callbacks IPrintSpoolerCallbacks, sequence int32, ) error
func (*PrintSpoolerProxy) PruneApprovedPrintServices ¶
func (p *PrintSpoolerProxy) PruneApprovedPrintServices( ctx context.Context, servicesToKeep []content.ComponentName, ) error
func (*PrintSpoolerProxy) RemoveObsoletePrintJobs ¶
func (p *PrintSpoolerProxy) RemoveObsoletePrintJobs( ctx context.Context, ) error
func (*PrintSpoolerProxy) SetClient ¶
func (p *PrintSpoolerProxy) SetClient( ctx context.Context, client IPrintSpoolerClient, ) error
func (*PrintSpoolerProxy) SetPrintJobCancelling ¶
func (p *PrintSpoolerProxy) SetPrintJobCancelling( ctx context.Context, printJobId PrintJobId, cancelling bool, ) error
func (*PrintSpoolerProxy) SetPrintJobState ¶
func (p *PrintSpoolerProxy) SetPrintJobState( ctx context.Context, printJobId PrintJobId, status int32, stateReason string, callback IPrintSpoolerCallbacks, sequence int32, ) error
func (*PrintSpoolerProxy) SetPrintJobTag ¶
func (p *PrintSpoolerProxy) SetPrintJobTag( ctx context.Context, printJobId PrintJobId, tag string, callback IPrintSpoolerCallbacks, sequence int32, ) error
func (*PrintSpoolerProxy) SetProgress ¶
func (p *PrintSpoolerProxy) SetProgress( ctx context.Context, printJobId PrintJobId, progress float32, ) error
func (*PrintSpoolerProxy) SetStatus ¶
func (p *PrintSpoolerProxy) SetStatus( ctx context.Context, printJobId PrintJobId, status string, ) error
func (*PrintSpoolerProxy) SetStatusRes ¶
func (p *PrintSpoolerProxy) SetStatusRes( ctx context.Context, printJobId PrintJobId, status int32, appPackageName string, ) error
func (*PrintSpoolerProxy) WritePrintJobData ¶
func (p *PrintSpoolerProxy) WritePrintJobData( ctx context.Context, fd int32, printJobId PrintJobId, ) error
type PrintSpoolerStub ¶
type PrintSpoolerStub struct {
Impl IPrintSpooler
Transport binder.VersionAwareTransport
}
PrintSpoolerStub dispatches incoming binder transactions to a typed IPrintSpooler implementation.
func (*PrintSpoolerStub) Descriptor ¶
func (s *PrintSpoolerStub) Descriptor() string
func (*PrintSpoolerStub) OnTransaction ¶
func (s *PrintSpoolerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PrinterCapabilitiesInfo ¶
func (*PrinterCapabilitiesInfo) MarshalParcel ¶
func (s *PrinterCapabilitiesInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*PrinterCapabilitiesInfo) UnmarshalParcel ¶
func (s *PrinterCapabilitiesInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type PrinterDiscoveryObserverProxy ¶
func NewPrinterDiscoveryObserverProxy ¶
func NewPrinterDiscoveryObserverProxy( remote binder.IBinder, ) *PrinterDiscoveryObserverProxy
func (*PrinterDiscoveryObserverProxy) AsBinder ¶
func (p *PrinterDiscoveryObserverProxy) AsBinder() binder.IBinder
func (*PrinterDiscoveryObserverProxy) OnPrintersAdded ¶
func (p *PrinterDiscoveryObserverProxy) OnPrintersAdded( ctx context.Context, printers pm.ParceledListSlice, ) error
func (*PrinterDiscoveryObserverProxy) OnPrintersRemoved ¶
func (p *PrinterDiscoveryObserverProxy) OnPrintersRemoved( ctx context.Context, printerIds pm.ParceledListSlice, ) error
type PrinterDiscoveryObserverStub ¶
type PrinterDiscoveryObserverStub struct {
Impl IPrinterDiscoveryObserver
Transport binder.VersionAwareTransport
}
PrinterDiscoveryObserverStub dispatches incoming binder transactions to a typed IPrinterDiscoveryObserver implementation.
func (*PrinterDiscoveryObserverStub) Descriptor ¶
func (s *PrinterDiscoveryObserverStub) Descriptor() string
func (*PrinterDiscoveryObserverStub) OnTransaction ¶
func (s *PrinterDiscoveryObserverStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PrinterInfo ¶
type PrinterInfo struct {
Name string
Status int32
Description string
IconResourceId int32
CustomPrinterIconGen int32
Capabilities *neuralnetworks.Capabilities
}
func (*PrinterInfo) MarshalParcel ¶
func (s *PrinterInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*PrinterInfo) UnmarshalParcel ¶
func (s *PrinterInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type WriteResultCallbackProxy ¶
func NewWriteResultCallbackProxy ¶
func NewWriteResultCallbackProxy( remote binder.IBinder, ) *WriteResultCallbackProxy
func (*WriteResultCallbackProxy) AsBinder ¶
func (p *WriteResultCallbackProxy) AsBinder() binder.IBinder
func (*WriteResultCallbackProxy) OnWriteCanceled ¶
func (p *WriteResultCallbackProxy) OnWriteCanceled( ctx context.Context, sequence int32, ) error
func (*WriteResultCallbackProxy) OnWriteFailed ¶
func (*WriteResultCallbackProxy) OnWriteFinished ¶
func (*WriteResultCallbackProxy) OnWriteStarted ¶
func (p *WriteResultCallbackProxy) OnWriteStarted( ctx context.Context, cancellation os.ICancellationSignal, sequence int32, ) error
type WriteResultCallbackStub ¶
type WriteResultCallbackStub struct {
Impl IWriteResultCallback
Transport binder.VersionAwareTransport
}
WriteResultCallbackStub dispatches incoming binder transactions to a typed IWriteResultCallback implementation.
func (*WriteResultCallbackStub) Descriptor ¶
func (s *WriteResultCallbackStub) Descriptor() string
func (*WriteResultCallbackStub) OnTransaction ¶
func (s *WriteResultCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
Source Files
¶
- get_print.go
- ilayoutresultcallback.go
- iprintdocumentadapter.go
- iprintdocumentadapterobserver.go
- iprinterdiscoveryobserver.go
- iprintjobstatechangelistener.go
- iprintmanager.go
- iprintserviceschangelistener.go
- iprintspooler.go
- iprintspoolercallbacks.go
- iprintspoolerclient.go
- iwriteresultcallback.go
- pagerange.go
- printattributes.go
- printdocumentinfo.go
- printercapabilitiesinfo.go
- printerid.go
- printerinfo.go
- printjobid.go
- printjobinfo.go