語言

ContentCaptureManager.ContentCaptureEnabled 屬性

定義

檢查此活動是否啟用內容擷取。 -或- 應用程式呼叫來明確啟用或關閉內容擷取。

public bool ContentCaptureEnabled { [Android.Runtime.Register("isContentCaptureEnabled", "()Z", "", ApiSince=29)] get; [Android.Runtime.Register("setContentCaptureEnabled", "(Z)V", "", ApiSince=29)] set; }
[<get: Android.Runtime.Register("isContentCaptureEnabled", "()Z", "", ApiSince=29)>]
[<set: Android.Runtime.Register("setContentCaptureEnabled", "(Z)V", "", ApiSince=29)>]
member this.ContentCaptureEnabled : bool with get, set

屬性值

true 當活動啟用內容擷取時;否則, false。

屬性

備註

財產取得者文件:

檢查此活動是否啟用內容擷取。

有許多原因可能導致它被停用,例如:<ul><li>應用程式本身透過 關閉了內容擷取。#setContentCaptureEnabled(boolean) <情報>部門未將此活動的內容擷取列入允許清單。 <情報>機構並未為此特定活動提供允許內容擷取。 <情報>部門在全球範圍內關閉了內容擷取。 <使用者>透過 Android 設定應用程式全域關閉內容擷取。 <li>裝置製造商(OEM)已全局禁用內容擷取功能。 <短暫>錯誤,例如情報服務資料包更新。 </ul>

Java 文件 android.view.contentcapture.ContentCaptureManager.isContentCaptureEnabled()。

屬性設定文件:

應用程式會呼叫它來明確啟用或關閉內容擷取。

注意:此呼叫不會在重新啟動後持續存在,因此應用程式通常應呼叫該呼叫。android.app.Activity#onCreate(android.os.Bundle, android.os.PersistableBundle)

Java 文件 android.view.contentcapture.ContentCaptureManager.setContentCaptureEnabled(boolean)。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於