newInstance

open fun newInstance(@NonNull context: Context, @NonNull coreApi: CoreApi, @NonNull fragmentManager: FragmentManager, @NonNull inAppNotificationsApi: InAppNotificationsApi, @Nullable callback: Consumer<Entity>): LocationMarketingApi

This public constructor creates Location Marketing API instance. This instance is used to consume services such as getting feed data, get notifications of any marketing campaign.

Parameters

context

used to instantiate a few system level services, helper classes, perform share

coreApi

base dependency, used to create a few helper classes, analytics, fetch entities

fragmentManager

used to show dialog fragment when any feed has more than one entities associated

inAppNotificationsApi

used to the in app notification

callback

used perform notification click event