ShortcutInfo.Builder.SetPersons(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.
Sets multiple persons instead of a single person.
[Android.Runtime.Register("setPersons", "([Landroid/app/Person;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetPersons_arrayLandroid_app_Person_Handler", ApiSince=29)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetPersons(Android.App.Person[] persons);
[<Android.Runtime.Register("setPersons", "([Landroid/app/Person;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetPersons_arrayLandroid_app_Person_Handler", ApiSince=29)>]
abstract member SetPersons : Android.App.Person[] -> Android.Content.PM.ShortcutInfo.Builder
override this.SetPersons : Android.App.Person[] -> Android.Content.PM.ShortcutInfo.Builder
Parameters
- persons
- Person[]
A non-null array of non-null people associated with the shortcut. Android 10 through Android 13 accept an empty array; Android 14 (API 34) and later reject it.
Returns
This builder after copies of the person records, without their icons, are stored.
- Attributes
Remarks
Sets multiple persons instead of a single person.
Android reference for android.content.pm.ShortcutInfo.Builder.setPersons.
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.