Language

AppSearchSchema.StringPropertyConfig.Builder.SetCardinality(Int32) Method

Definition

Sets the cardinality of the property (whether it is optional, required or repeated).

[Android.Runtime.Register("setCardinality", "(I)Landroid/app/appsearch/AppSearchSchema$StringPropertyConfig$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.AppSearchSchema.StringPropertyConfig.Builder SetCardinality(int cardinality);
[<Android.Runtime.Register("setCardinality", "(I)Landroid/app/appsearch/AppSearchSchema$StringPropertyConfig$Builder;", "", ApiSince=31)>]
member this.SetCardinality : int -> Android.App.AppSearch.AppSearchSchema.StringPropertyConfig.Builder

Parameters

cardinality
Int32

Value is one of the following: AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL AppSearchSchema.PropertyConfig.CARDINALITY_REQUIRED

Returns

Attributes

Remarks

Sets the cardinality of the property (whether it is optional, required or repeated). If this method is not called, the default cardinality is PropertyConfig.CARDINALITY_OPTIONAL.

Android reference for android.app.appsearch.AppSearchSchema.StringPropertyConfig.Builder.setCardinality.

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