PrintManager.IsPrintServiceEnabled(ComponentName) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
檢查特定列印服務是否已啟用。
[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
列印服務可以檢查。
傳回
如果該列印服務已啟用,則為真
- 屬性
備註
檢查特定列印服務是否已啟用。 所提供的服務必須與呼叫的套件共享 UID,否則會拋出 a SecurityException 。
Java 文件 android.print.PrintManager.isPrintServiceEnabled(android.content.ComponentName)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。