NoteIntents
public class NoteIntents
Constants for intents to create and modify notes from a Search Action.
Summary
Constants |
|
|---|---|
static final String |
ACTION_APPEND_NOTE = "com.google.android.gms.actions.APPEND_NOTE"Intent action for appending to an existing note. |
static final String |
ACTION_CREATE_NOTE = "com.google.android.gms.actions.CREATE_NOTE"Intent action for creating a note. |
static final String |
ACTION_DELETE_NOTE = "com.google.android.gms.actions.DELETE_NOTE"Intent action for removing an existing note. |
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. |
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. |
static final String |
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 text EXTRA_TEXT to append.
The intent should specify the note to append to with the EXTRA_NOTE_QUERY extra. Alternatively the note can be specified using setData - the intent data URI will always be preferred over EXTRA_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 note EXTRA_NAME.
For a text note the data mimetype will be "text/plain" and the content will be included in the EXTRA_TEXT.
For an audio note, the audio data will be attached as android.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 the EXTRA_NOTE_QUERY extra. Alternatively the note can be specified using setData - the intent data URI will always be preferred over EXTRA_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 with EXTRA_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.