NoteIntents

public class NoteIntents extends Object

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

Constant Summary

String ACTION_APPEND_NOTE Intent action for appending to an existing note.
String ACTION_CREATE_NOTE Intent action for creating a note.
String ACTION_DELETE_NOTE Intent action for removing an existing note.
String EXTRA_NAME Intent extra specifying an optional title or subject for the note as a string.
String EXTRA_NOTE_QUERY Intent extra specifying an unstructured query for a note as a string.
String EXTRA_TEXT Intent extra specifying the text of the note as a string.

Inherited Method Summary

Constants

public static final String ACTION_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(Uri) - 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.

Constant Value: "com.google.android.gms.actions.APPEND_NOTE"

public static final String ACTION_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 ClipData with the data mimetype of "audio/<type>".

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.

Constant Value: "com.google.android.gms.actions.CREATE_NOTE"

public static final String ACTION_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(Uri) - 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.

Constant Value: "com.google.android.gms.actions.DELETE_NOTE"

public static final String 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.

Constant Value: "com.google.android.gms.actions.extra.NAME"

public static final String 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.

Constant Value: "com.google.android.gms.actions.extra.NOTE_QUERY"

public static final String EXTRA_TEXT

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

Constant Value: "com.google.android.gms.actions.extra.TEXT"