Table containing label information.
Nested Classes | ||
---|---|---|
GmailContract.Labels.LabelCanonicalNames |
Constants | ||
---|---|---|
BACKGROUND_COLOR | ||
CANONICAL_NAME | ||
CONTENT_ITEM_TYPE | ||
CONTENT_TYPE | ||
NAME | ||
NUM_CONVERSATIONS | ||
NUM_UNREAD_CONVERSATIONS | ||
TEXT_COLOR | ||
URI |
Public Methods | ||
---|---|---|
Constants
public static final String BACKGROUND_COLOR
This integer value is the label's background color in 32-bit 0xAARRGGBB format.
Type: INTEGER
public static final String CANONICAL_NAME
This string value is the canonical name of a label. Canonical names are not localized and are not user-facing.
Type: TEXT
public static final String CONTENT_ITEM_TYPE
The MIME-type of a label item.
public static final String CONTENT_TYPE
The MIME-type of uri providing a directory of label items.
public static final String NAME
This string value is the user-visible name of a label. Names of system labels (Inbox, Sent, Drafts...) are localized.
Type: TEXT
public static final String NUM_CONVERSATIONS
This integer value is the number of conversations in this label.
Type: INTEGER
public static final String NUM_UNREAD_CONVERSATIONS
This integer value is the number of unread conversations in this label.
Type: INTEGER
public static final String TEXT_COLOR
This integer value is the label's foreground text color in 32-bit 0xAARRGGBB format.
Type: INTEGER
public static final String URI
This string column value is the uri that can be used in subsequent calls to android.content.ContentProvider#query() to query for information on the single label represented by this row.
Type: TEXT
Public Methods
public static Uri getLabelsUri (String account)
Returns a URI that, when queried, will return the list of labels for an account.
To use the Labels API, an app must first find the email address of a valid Gmail account to query for label information. The AccountManager can return this information (example).
Parameters
account | Name of a valid Google account. |
Returns
- The URL that can be queried to retrieve the the label list.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.