Language

CaptureContentForNoteResult Enum

Definition

Defines result codes returned after an activity captures content for a note.

public enum CaptureContentForNoteResult
type CaptureContentForNoteResult = 
Inheritance
CaptureContentForNoteResult

Fields

Name Value Description
Success 0

A response code used with EXTRA_CAPTURE_CONTENT_FOR_NOTE_STATUS_CODE to indicate that the request was a success. This code will only be returned after the user has interacted with the system screenshot activity to consent to sharing the data with the note. The captured screenshot is returned as a Uri through getData() . Constant Value: 0 (0x00000000)

Failed 1

A response code used with EXTRA_CAPTURE_CONTENT_FOR_NOTE_STATUS_CODE to indicate that something went wrong.

UserCanceled 2

A response code used with EXTRA_CAPTURE_CONTENT_FOR_NOTE_STATUS_CODE to indicate that user canceled the content capture flow.

WindowModeUnsupported 3

A response code used with EXTRA_CAPTURE_CONTENT_FOR_NOTE_STATUS_CODE to indicate that the intent action ACTION_LAUNCH_CAPTURE_CONTENT_ACTIVITY_FOR_NOTE was started by an activity that is running in a non-supported window mode.

BlockedByAdmin 4

A response code used with EXTRA_CAPTURE_CONTENT_FOR_NOTE_STATUS_CODE to indicate that screenshot is blocked by IT admin.

Remarks

Defines result codes returned after an activity captures content for a note.

Java documentation for android.content.Intent.

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