語言

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) <李>情報局未將此活動的內容擷取列入清單。 <李>情報局未針對此特定活動列入內容擷取。 <李>情報局全球禁用內容擷取。 <li>使用者透過 Android 設定應用程式全局關閉內容擷取。 <li>裝置製造商(OEM)已全面關閉內容擷取。 <短暫>錯誤,例如情報服務資料包正在更新。 </ul>

的 android.view.contentcapture.ContentCaptureManager.isContentCaptureEnabled()Java 檔。

屬性設定文件:

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

<b>注意:</b> 這個呼叫不會在重啟後持續存在,因此應用程式通常會呼叫它。android.app.Activity#onCreate(android.os.Bundle, android.os.PersistableBundle)

的 android.view.contentcapture.ContentCaptureManager.setContentCaptureEnabled(boolean)Java 檔。

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

適用於