前往主控台

ContentViewEvent

public class ContentViewEvent extends PredefinedEvent<ContentViewEvent>

A content view event to be sent to Answers with optional attributes.

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

ContentViewEvent
putContentId(String contentId)
Put unique id for viewed content.
ContentViewEvent
putContentName(String contentName)
Put name for viewed content.
ContentViewEvent
putContentType(String contentType)
Put type of viewed content.

Inherited Method Summary

Public Constructors

public ContentViewEvent ()

Public Methods

public ContentViewEvent putContentId (String contentId)

Put unique id for viewed content.

Parameters
contentId unique id for viewed content, not null, no more than MAX_STRING_LENGTH chars
Returns
  • this

public ContentViewEvent putContentName (String contentName)

Put name for viewed content. Answers uses content names for display purposes on the dashboard.

Parameters
contentName name for viewed content, not null, no more than MAX_STRING_LENGTH chars
Returns
  • this

public ContentViewEvent putContentType (String contentType)

Put type of viewed content. Answers uses content types to group content.

Parameters
contentType type of viewed content, not null, no more than MAX_STRING_LENGTH chars
Returns
  • this