Ejemplo n.º 1
0
                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();
                }
Ejemplo n.º 2
0
                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);
                }