NoteIntents

Kotlin|Java

public classNoteIntents


Constants for intents to create and modify notes from a Search Action.

Summary

Constants

static finalString
ACTION_APPEND_NOTE = "com.google.android.gms.actions.APPEND_NOTE"

Intent action for appending to an existing note.

static finalString
ACTION_CREATE_NOTE = "com.google.android.gms.actions.CREATE_NOTE"

Intent action for creating a note.

static finalString
ACTION_DELETE_NOTE = "com.google.android.gms.actions.DELETE_NOTE"

Intent action for removing an existing note.

static finalString
EXTRA_NAME = "com.google.android.gms.actions.extra.NAME"

Intent extra specifying an optional title or subject for the note as a string.

static finalString
EXTRA_NOTE_QUERY = "com.google.android.gms.actions.extra.NOTE_QUERY"

Intent extra specifying an unstructured query for a note as a string.

static finalString
EXTRA_TEXT = "com.google.android.gms.actions.extra.TEXT"

Intent extra specifying the text of the note as a string.

Constants

ACTION_APPEND_NOTE

public static final String ACTION_APPEND_NOTE = "com.google.android.gms.actions.APPEND_NOTE"

Intent action for appending to an existing note. The intent should include an extra to specify the textEXTRA_TEXT to append.

The intent should specify the note to append to with theEXTRA_NOTE_QUERY extra. Alternatively the note can be specified usingsetData - the intent data URI will always be preferred overEXTRA_NOTE_QUERY. If the note is ambiguous, the activity MUST ask the user to disambiguate.

The activity MUST verify the result with the user before committing the change.

ACTION_CREATE_NOTE

public static final String ACTION_CREATE_NOTE = "com.google.android.gms.actions.CREATE_NOTE"

Intent action for creating a note. The intent may optionally include an extra to specify the title or subject of the noteEXTRA_NAME.

For a text note the data mimetype will be "text/plain" and the content will be included in theEXTRA_TEXT.

For an audio note, the audio data will be attached asandroid.content.ClipData with the data mimetype of "audio/".

Activities should restrict the types of content they can handle in the intent filter.

The activity MUST verify the result with the user before committing the change.

ACTION_DELETE_NOTE

public static final String ACTION_DELETE_NOTE = "com.google.android.gms.actions.DELETE_NOTE"

Intent action for removing an existing note.

The intent should specify the note to append to with theEXTRA_NOTE_QUERY extra. Alternatively the note can be specified usingsetData - the intent data URI will always be preferred overEXTRA_NOTE_QUERY. If the note is ambiguous, the activity MUST ask the user to disambiguate.

The activity MUST verify the result with the user before committing the change.

EXTRA_NAME

public static final String EXTRA_NAME = "com.google.android.gms.actions.extra.NAME"

Intent extra specifying an optional title or subject for the note as a string. The name can be used to locate the note later withEXTRA_NOTE_QUERY.

EXTRA_NOTE_QUERY

public static final String EXTRA_NOTE_QUERY = "com.google.android.gms.actions.extra.NOTE_QUERY"

Intent extra specifying an unstructured query for a note as a string. This could search the note name or the text content of the note.

EXTRA_TEXT

public static final String EXTRA_TEXT = "com.google.android.gms.actions.extra.TEXT"

Intent extra specifying the text of the note as a string.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-03-17 UTC.