语言

PrintManager.IsPrintServiceEnabled(ComponentName) 方法

定义

检查给定的打印服务是否已启用。

[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

参数

service
ComponentName

要检查的打印服务。

返回

如果启用了给定的打印服务,则为 true

特性

注解

检查给定的打印服务是否已启用。 所提供的服务必须与调用包共享 UID,否则将引发 a SecurityException 。

Java文档android.print.PrintManager.isPrintServiceEnabled(android.content.ComponentName)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于