Methods Summary |
---|
public void | addHistoricalPrinter(android.print.PrinterInfo printer)
FusedPrintersProvider provider = getPrinterProvider();
if (provider != null) {
getPrinterProvider().addHistoricalPrinter(printer);
}
|
public boolean | areHistoricalPrintersLoaded()
FusedPrintersProvider provider = getPrinterProvider();
if (provider != null) {
return getPrinterProvider().areHistoricalPrintersLoaded();
}
return false;
|
public void | forgetFavoritePrinter(android.print.PrinterId printerId)
FusedPrintersProvider provider = getPrinterProvider();
if (provider != null) {
provider.forgetFavoritePrinter(printerId);
}
|
private FusedPrintersProvider | getPrinterProvider()
Loader<?> loader = mActivity.getLoaderManager().getLoader(LOADER_ID_PRINTERS_LOADER);
return (FusedPrintersProvider) loader;
|
public java.util.List | getPrinters()
return mPrinters;
|
public boolean | isFavoritePrinter(android.print.PrinterId printerId)
FusedPrintersProvider provider = getPrinterProvider();
if (provider != null) {
return provider.isFavoritePrinter(printerId);
}
return false;
|
public void | setOnPrintersChangeListener(com.android.printspooler.ui.PrinterRegistry$OnPrintersChangeListener listener)
mOnPrintersChangeListener = listener;
|
public void | setTrackedPrinter(android.print.PrinterId printerId)
FusedPrintersProvider provider = getPrinterProvider();
if (provider != null) {
provider.setTrackedPrinter(printerId);
}
|