Udostępnij za pośrednictwem


ContentCaptureManager.ContentCaptureEnabled Property

Definition

Checks whether content capture is enabled for this activity. -or- Called by apps to explicitly enable or disable content capture.

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

Property Value

Attributes

Remarks

Property getter documentation:

Checks whether content capture is enabled for this activity.

There are many reasons it could be disabled, such as: <ul> <li>App itself disabled content capture through #setContentCaptureEnabled(boolean). <li>Intelligence service did not allowlist content capture for this activity's package. <li>Intelligence service did not allowlist content capture for this specific activity. <li>Intelligence service disabled content capture globally. <li>User disabled content capture globally through the Android Settings app. <li>Device manufacturer (OEM) disabled content capture globally. <li>Transient errors, such as intelligence service package being updated. </ul>

Java documentation for android.view.contentcapture.ContentCaptureManager.isContentCaptureEnabled().

Property setter documentation:

Called by apps to explicitly enable or disable content capture.

<b>Note: </b> this call is not persisted accross reboots, so apps should typically call it on android.app.Activity#onCreate(android.os.Bundle, android.os.PersistableBundle).

Java documentation for android.view.contentcapture.ContentCaptureManager.setContentCaptureEnabled(boolean).

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