-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce DisplayNameStyle in ContactStore#fetchContacts
The preferred style for the [Contact.displayName] to be returned. The fetched contacts' sorting order will match this option.
- Loading branch information
Showing
7 changed files
with
187 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
library/src/main/java/com/alexstyl/contactstore/DisplayNameStyle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.alexstyl.contactstore | ||
|
||
public enum class DisplayNameStyle { | ||
/** | ||
* The standard text shown as the contact's display name, based on the best available information for the contact (for example, it might be the email address if the name | ||
* is not available). | ||
*/ | ||
Primary, | ||
|
||
/** | ||
* An alternative representation of the display name, such as "family name first" instead of "given name first" for Western names. | ||
* If an alternative is not available, the values should be the same as [Primary]. | ||
*/ | ||
Alternative | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.