public MyOnLayoutAsyncTask(MyPrintDocumentAdapter self, PrintAttributes newAttributes, CancellationSignal cancellationSignal, LayoutResultCallback callback) { this.self = self; this.newAttributes = newAttributes; this.cancellationSignal = cancellationSignal; this.callback = callback; items = ((MotoGpStatAdapter)self.pcc.ListAdapter).CloneItems(); }
public MyOnWriteAsyncTask(MyPrintDocumentAdapter self, PageRange[] pages, ParcelFileDescriptor destination, CancellationSignal cancellationSignal, WriteResultCallback callback) { this.self = self; this.pages = pages; this.destination = destination; this.cancellationSignal = cancellationSignal; this.callback = callback; items = ((MotoGpStatAdapter)self.pcc.ListAdapter).CloneItems(); mPdfDocument = new PrintedPdfDocument(self.mPrintContext, self.mPrintAttributes); }