CatalogSearchParams

Show Deprecated

The CatalogSearchParams data type stores the parameters of a catalog search via AvatarEditorService:SearchCatalog().

When accessing the value of the CatalogSearchParams.BundleTypes or CatalogSearchParams.AssetTypes property the returned table will be read-only to avoid confusion when not directly accessing the CatalogSearchParams instance.

For example, you can use these properties as follows:


local params = CatalogSearchParams.new()
params.SearchKeyword = "Test"
params.MinPrice = 5000
params.MaxPrice = 10000
params.BundleTypes = {Enum.BundleType.Animations, Enum.BundleType.BodyParts}
local types = params.BundleTypes
for _, val in types do
print(val)
end
-- table.insert(types, Enum.BundleType.Animations) -- This would not work because the table is read only

Summary

Properties

Properties

SearchKeyword

The keyword to search for catalog results with.

MinPrice

The minimum item price to search for.

0

MaxPrice

The maximum item price to search for.

Default Value: 2147483647

The order in which to sort the results, represented by a Enum.CatalogSortType.

Default Value: Enum.CatalogSortType.Relevance

The time period to use to aggregate the sort results by, represented by a Enum.CatalogCategoryFilter. This only applies when the sort type is Enum.CatalogSortType.MostFavorited or Enum.CatalogSortType.BestSelling. It does not apply for other sort types.

Default Value: Enum.CatalogSortAggregation.AllTime

The category to filter the search by, represented by a Enum.CatalogCategoryFilter.

Default Value: Enum.CatalogCategoryFilter.None

SalesTypeFilter

The sales type the search by, represented by a Enum.SalesTypeFilter.

Default Value: Enum.SalesTypeFilter.All

An array containing Enum.BundleType values to filter the search by.

Default Value: {}

An array containing Enum.AvatarAssetType values to filter the search by.

IncludeOffSale

Whether off sale items should be included in the results.

CreatorName

Search for items with the given creator.

Limit

Specifies the number of items to return. Accepts 10, 28, 30, 60, and 120. Defaults to 30.