Language

AppSearchSchema.StringPropertyConfig.Builder.SetDeletePropagationType Method

Definition

Configures how the deletion will be propagated between this document and the referenced document whose qualified id is held by this property.

[Android.Runtime.Register("setDeletePropagationType", "(I)Landroid/app/appsearch/AppSearchSchema$StringPropertyConfig$Builder;", "", ApiSince=37)]
public Android.App.AppSearch.AppSearchSchema.StringPropertyConfig.Builder SetDeletePropagationType(Android.App.AppSearch.AppSearchSchemaDeletePropagationType deletePropagationType);
[<Android.Runtime.Register("setDeletePropagationType", "(I)Landroid/app/appsearch/AppSearchSchema$StringPropertyConfig$Builder;", "", ApiSince=37)>]
member this.SetDeletePropagationType : Android.App.AppSearch.AppSearchSchemaDeletePropagationType -> Android.App.AppSearch.AppSearchSchema.StringPropertyConfig.Builder

Parameters

deletePropagationType
AppSearchSchemaDeletePropagationType

Value is one of the following: AppSearchSchema.StringPropertyConfig.DELETE_PROPAGATION_TYPE_NONE; AppSearchSchema.StringPropertyConfig.DELETE_PROPAGATION_TYPE_PROPAGATE_FROM

Returns

Attributes

Remarks

Configures how the deletion will be propagated between this document and the referenced document whose qualified id is held by this property.

If this method is not called, the default delete propagation type is StringPropertyConfig.DELETE_PROPAGATION_TYPE_NONE, indicating that deletion will not propagate between this document and the referenced document.

If the delete propagation type is not StringPropertyConfig.DELETE_PROPAGATION_TYPE_NONE, then StringPropertyConfig.JOINABLE_VALUE_TYPE_QUALIFIED_ID must also be set since the delete propagation has to use the qualified id. Otherwise, throw IllegalStateException when building.

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

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