Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
public final class
GmailContract
Vertrag zur Nutzung mit dem Gmail-Contentanbieter
Entwickler können diesen Contentanbieter verwenden, um Labelinformationen für den Nutzer anzuzeigen.
Die Label-Informationen umfassen Folgendes:
Labelname
Gesamtzahl der Unterhaltungen
Anzahl der ungelesenen Unterhaltungen
Farbe des Labeltexts
Hintergrundfarbe des Labels
Dieser Contentanbieter ist in Gmail ab Version 2.3.6 für Froyo/Gingerbread und ab Version 4.0.5 für Honeycomb und Ice Cream Sandwich verfügbar
Eine Anwendung kann den
Content-Resolver direkt abfragen oder einen Loader verwenden, um einen Cursor mit Informationen für alle Labels in einem Konto abzurufen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-09-03 (UTC)."],[[["The GmailContract provides access to Gmail label information like name, unread counts, and colors for developers."],["Developers can query this content provider directly using a Content Resolver or Loader."],["Requires Gmail version 2.3.6 or newer for Froyo/Gingerbread and 4.0.5 or newer for Honeycomb and Ice Cream Sandwich."],["Accessing label information is contingent upon the `com.google.android.gm.permission.READ_CONTENT_PROVIDER` permission."],["The `canReadLabels()` method allows developers to check if querying label information is supported by the installed Gmail app."]]],["The `GmailContract` allows developers to access Gmail label information, including label name, conversation counts, and colors, through the Gmail content provider. This feature is available in specific Gmail versions. Applications can query the `ContentResolver` to obtain a `Cursor` with label data. `AUTHORITY` and `PERMISSION` constants define access, while the `canReadLabels` method checks if label queries are supported. The `GmailContract.Labels` class contains additional relevant information.\n"]]