次の方法で共有


PrintJob.Block(String) Method

Definition

Blocks the print job.

[Android.Runtime.Register("block", "(Ljava/lang/String;)Z", "")]
public bool Block (string? reason);
[<Android.Runtime.Register("block", "(Ljava/lang/String;)Z", "")>]
member this.Block : string -> bool

Parameters

reason
String

The human readable, short, and translated reason why the print job is blocked.

Returns

Whether the job was blocked.

Attributes

Remarks

Blocks the print job. You should call this method if #isStarted() returns true and you need to block the print job. For example, the user has to add some paper to continue printing. To resume the print job call #start(). To change the reason call #setStatus(CharSequence).

Java documentation for android.printservice.PrintJob.block(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also