BestLeastRecentlyViewedSaliencyStrategy.QueryBestContent(IEnumerable)

Method in BestLeastRecentlyViewedSaliencyStrategy

Summary

Chooses an item from content that is the most appropriate (or salient ) for the user’s current context.

public ContentSaliencyOption? QueryBestContent(IEnumerable<ContentSaliencyOption> content)

Remarks

Implementations of this method should not modify any state

  • that is, they should be ‘read-only’ operations. If a strategy needs to record information about when a piece of content has been selected, it should do it in the ContentWasSelected(ContentSaliencyOption) method.

Parameters

NameDescription
System.Collections.Generic.IEnumerable<Yarn.Saliency.ContentSaliencyOption> contentA collection of content items. This collection may be empty.

Returns

An item from content that is the most appropriate for display, or null if no content should be displayed.