Language

ContactsPickerSessionContract.ExtraPickContactsSelectionLimit Field

Definition

An integer extra that defines the maximum number of contacts a user can select in a single session.

[Android.Runtime.Register("EXTRA_PICK_CONTACTS_SELECTION_LIMIT", ApiSince=37)]
public const string ExtraPickContactsSelectionLimit;
[<Android.Runtime.Register("EXTRA_PICK_CONTACTS_SELECTION_LIMIT", ApiSince=37)>]
val mutable ExtraPickContactsSelectionLimit : string

Field Value

Attributes

Remarks

An integer extra that defines the maximum number of contacts a user can select in a single session. The Contacts Picker uses this value to configure its UI.

If this extra is not set, the default selection limit is 50. The absolute maximum allowed value is 100.

Clients should not set this value higher than the documented maximum limit. The application handling ACTION_PICK_CONTACTS will throw an IllegalArgumentException if the provided value exceeds the maximum allowed limit.

Android reference for android.provider.ContactsPickerSessionContract.EXTRA_PICK_CONTACTS_SELECTION_LIMIT.

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.

Applies to