MerchantCategoriesView

TerraCore v0

Introduction#

Use this built-in view to display a horizontal list of merchant (shop) categories.

Usage#

After init your TerraApp, call

TerraUserCornerUI.getInstance(terraApp)

to initialize SDK.

Then You can add MerchantCategoriesView into your layout like any Android widget.

The MerchantCategoriesView must be set with a terra app and lifeCycleOwner before being able to load data.

val merchantCategoriesView = MerchantCategoriesView(context)
merchantCategoriesView.setTerraApp(terraAppName, lifecycleOwner)

Then you can reload its data when you need by calling loadData method

merchantCategoriesView.loadData()