List of usage examples for android.print PrintDocumentAdapter onLayout
public abstract void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, CancellationSignal cancellationSignal, LayoutResultCallback callback, Bundle extras);
From source file:android.webkit.cts.WebViewTest.java
private void printDocumentLayout(final PrintDocumentAdapter adapter, final PrintAttributes oldAttributes, final PrintAttributes newAttributes, final LayoutResultCallback layoutResultCallback) { mOnUiThread.runOnUiThread(new Runnable() { @Override/*from w w w.j a v a2 s . c om*/ public void run() { adapter.onLayout(oldAttributes, newAttributes, new CancellationSignal(), layoutResultCallback, null); } }); }