track

abstract fun track(vararg events: Event?)

Deprecated

To leverage the benefits of the Unified SDK propagating your tracked events across all configured products, please use its event tracking API rather than the Push specific event tracking.

Replace with

import com.salesforce.marketingcloud.sfmcsdk
SFMCSdk.track(event)

Method to track events, which could result in actions such as an InApp Message being displayed.