Language

DataShareError Enum

Definition

Identifies an error reported during a content-capture data-sharing request.

public enum DataShareError
type DataShareError = 
Inheritance
DataShareError

Fields

Name Value Description
Unknown 1

An error occurred during the data-sharing session.

Android reference for android.view.contentcapture.ContentCaptureManager.DATA_SHARE_ERROR_UNKNOWN.

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.

ConcurrentRequest 2

The request was rejected because another data-sharing session is in progress.

Android reference for android.view.contentcapture.ContentCaptureManager.DATA_SHARE_ERROR_CONCURRENT_REQUEST.

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.

TimeoutInterrupted 3

The request was interrupted because the data-sharing session timed out.

Android reference for android.view.contentcapture.ContentCaptureManager.DATA_SHARE_ERROR_TIMEOUT_INTERRUPTED.

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.

Remarks

The codes distinguish an unspecified failure, a concurrent request, and interruption by a session timeout. Each value is a separate error code, not a combination of flags.

Applies to