語言

SearchSpec.Builder.SetNumericSearchEnabled(Boolean) 方法

定義

根據啟用參數將NUMERIC_SEARCH功能設定為啟用或停用。

[Android.Runtime.Register("setNumericSearchEnabled", "(Z)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=34)]
public Android.App.AppSearch.SearchSpec.Builder SetNumericSearchEnabled(bool enabled);
[<Android.Runtime.Register("setNumericSearchEnabled", "(Z)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=34)>]
member this.SetNumericSearchEnabled : bool -> Android.App.AppSearch.SearchSpec.Builder

參數

enabled
Boolean

如果為真,則啟用該功能,否則會停用。 若停用,則禁止使用 AppSearchSchema.LongPropertyConfig.INDEXING_TYPE_RANGE 及所有其他數值查詢功能。

傳回

屬性

備註

根據啟用參數將NUMERIC_SEARCH功能設定為啟用或停用。

Android 參考資料。android.app.appsearch.SearchSpec.Builder.setNumericSearchEnabled

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於