ShortcutInfo.Builder.SetPerson(Person) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Add a person that is relevant to this shortcut.
[Android.Runtime.Register("setPerson", "(Landroid/app/Person;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetPerson_Landroid_app_Person_Handler", ApiSince=29)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetPerson(Android.App.Person person);
[<Android.Runtime.Register("setPerson", "(Landroid/app/Person;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetPerson_Landroid_app_Person_Handler", ApiSince=29)>]
abstract member SetPerson : Android.App.Person -> Android.Content.PM.ShortcutInfo.Builder
override this.SetPerson : Android.App.Person -> Android.Content.PM.ShortcutInfo.Builder
Parameters
- person
- Person
Returns
- Attributes
Remarks
Add a person that is relevant to this shortcut. Alternatively, setPersons(Person[]) can be used to add multiple persons to a shortcut. This is an optional field, but the addition of person may cause this shortcut to appear more prominently in the user interface (e.g. ShareSheet). A person should usually contain a uri in order to benefit from the ranking boost. However, even if no uri is provided, it's beneficial to provide people in the shortcut, such that listeners and voice only devices can announce and handle them properly.
Android reference for android.content.pm.ShortcutInfo.Builder.setPerson.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.