Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
The Windows Share Sheet can display suggested contacts in the suggestions row, so users can quickly share with their top contacts. By storing your app's contacts in Windows, you let those contacts appear as suggestions.
How the suggestions row works
The suggestions row appears at the top of the Share Sheet and shows contacts the user is most likely to want to share with. Windows sources these suggestions from the Windows People feature, which aggregates contact information from your app and other apps on the device.
Enable contact suggestions for your app
To make your app's contacts appear in the suggestions row, your app needs package identity. The high-level steps are:
- Create a
UserDataAccountfor the People contract - Store your app's contacts in the Windows
ContactStore - Add a
ContactAnnotationwithSupportedOperationsset toShareand aRankprovider property for each top contact - Contacts surface as suggestions on the Share panel for relevant sharing scenarios
The Rank value is a non-negative integer, and lower values take precedence within your app's list. Assign a unique rank to each contact. Your app's ranks express priority within its own list; Windows uses internal logic based on usage to order contacts across apps. For details, see Storing ranks for contacts.
Learn more
For comprehensive guidance on implementing contact suggestions, see Windows People.
The Windows People guides cover:
- Creating a
UserDataAccountfor the People contract - Storing contacts in the Windows
ContactStore - Required and optional contact fields
- Controlling access to your contacts with
ExplictReadAccessPackageFamilyNames(note: this is the actual API spelling) - Ranking contacts for the suggestions row (see Rank contacts for Windows Share)
- Communication actions and contact activities
Related content
Windows developer