다음을 통해 공유


PrintManager.IsPrintServiceEnabled(ComponentName) Method

Definition

Checks whether a given print service is enabled.

[Android.Runtime.Register("isPrintServiceEnabled", "(Landroid/content/ComponentName;)Z", "", ApiSince=33)]
public bool IsPrintServiceEnabled (Android.Content.ComponentName service);
[<Android.Runtime.Register("isPrintServiceEnabled", "(Landroid/content/ComponentName;)Z", "", ApiSince=33)>]
member this.IsPrintServiceEnabled : Android.Content.ComponentName -> bool

Parameters

service
ComponentName

Returns

true if the given print service is enabled

Attributes

Remarks

Checks whether a given print service is enabled. The provided service must share UID with the calling package, otherwise a SecurityException is thrown.

Java documentation for android.print.PrintManager.isPrintServiceEnabled(android.content.ComponentName).

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