public interface PrintServicePlugin
print service
. You cannot print using the plugin. The only functionality in the plugin is to
report the number of printers that the real service would discover.Modifier and Type | Interface and Description |
---|---|
static interface |
PrintServicePlugin.PrinterDiscoveryCallback
Call back used by the print service plugins.
|
Modifier and Type | Method and Description |
---|---|
int |
getName()
Get the name (a string reference) of the
print
service with the specified package name . |
CharSequence |
getPackageName()
The package name of the full print service.
|
void |
start(PrintServicePlugin.PrinterDiscoveryCallback callback)
Start the discovery plugin.
|
void |
stop()
Stop the plugin.
|
@StringRes int getName()
print
service
with the specified package name
. This is read once, hence
returning different data at different times is not allowed.CharSequence getPackageName()
void start(PrintServicePlugin.PrinterDiscoveryCallback callback) throws Exception
callback
- Callbacks used by this plugin.Exception
- If anything went wrong when starting the plugin