trackImpressionResult

suspend fun EngageBySailthru.trackImpressionResult(sectionId: String, urls: List<URI>?): Result<Unit>

Asynchronously registers an impression - a reasonable expectation that a user has seen a piece of content - with Marigold SPM. Can be used in conjunction with RecyclerView.Adapter#onViewAttachedToWindow or similar to know when a particular content item has entered the user's viewport.

Return

Result representing the outcome of the request

Parameters

sectionId

the Section ID on Marigold SPM corresponding to the section being viewed. Must not be null.

urls

a List of the URLs of the items contained within this section. Useful if multiple items of content are contained within a section, otherwise just pass a single-item array. May be null.