PrintDocumentAdapter.OnLayout Methode

Definition

Wird aufgerufen, wenn sich die Druckattribute (Seitengröße, Dichte usw.) geändert haben, sodass Sie die Möglichkeit haben, den Inhalt so zu layouten, dass sie den neuen Einschränkungen entspricht.

[Android.Runtime.Register("onLayout", "(Landroid/print/PrintAttributes;Landroid/print/PrintAttributes;Landroid/os/CancellationSignal;Landroid/print/PrintDocumentAdapter$LayoutResultCallback;Landroid/os/Bundle;)V", "GetOnLayout_Landroid_print_PrintAttributes_Landroid_print_PrintAttributes_Landroid_os_CancellationSignal_Landroid_print_PrintDocumentAdapter_LayoutResultCallback_Landroid_os_Bundle_Handler")]
public abstract void OnLayout(Android.Print.PrintAttributes? oldAttributes, Android.Print.PrintAttributes? newAttributes, Android.OS.CancellationSignal? cancellationSignal, Android.Print.PrintDocumentAdapter.LayoutResultCallback? callback, Android.OS.Bundle? extras);
[<Android.Runtime.Register("onLayout", "(Landroid/print/PrintAttributes;Landroid/print/PrintAttributes;Landroid/os/CancellationSignal;Landroid/print/PrintDocumentAdapter$LayoutResultCallback;Landroid/os/Bundle;)V", "GetOnLayout_Landroid_print_PrintAttributes_Landroid_print_PrintAttributes_Landroid_os_CancellationSignal_Landroid_print_PrintDocumentAdapter_LayoutResultCallback_Landroid_os_Bundle_Handler")>]
abstract member OnLayout : Android.Print.PrintAttributes * Android.Print.PrintAttributes * Android.OS.CancellationSignal * Android.Print.PrintDocumentAdapter.LayoutResultCallback * Android.OS.Bundle -> unit

Parameter

oldAttributes
PrintAttributes

Die alten Druckattribute.

newAttributes
PrintAttributes

Die neuen Druckattribute.

cancellationSignal
CancellationSignal

Signal zum Beobachten von Abbruchlayoutanforderungen.

callback
PrintDocumentAdapter.LayoutResultCallback

Rückruf, um das System über das Layoutergebnis zu informieren.

extras
Bundle

Weitere Informationen zum Layout des Inhalts.

Attribute

Hinweise

Java Dokumentation für android.print.PrintDocumentAdapter.onLayout(android.print.PrintAttributes, android.print.PrintAttributes, android.os.CancellationSignal, android.print.LayoutResultCallback, android.os.Bundle).

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für:

Weitere Informationen