SharedContentEvent

.media. SharedContentEvent

new SharedContentEvent(source, medium, propertiesopt, transactionIdopt)

Creates an instance of SharedContentEvent with a predefined name and known properties. Differs from other MediaEvents in that value must be set after creation if needed.

See:
Parameters:
Name Type Attributes Default Description
source String

e.g. 'facebook'

medium String

e.g. 'social'

properties Object <optional>
{}
transactionId String <optional>
Example
const sharedEvent = new sdk.CustomEvent.templates.media.SharedContentEvent(
  'facebook',
  'social',
  {
    category: 'entertainment',
    type: 'video',
    identifier: '23413'
  })
sharedEvent.value = 23
sharedEvent.track()

Extends

  • AirshipCustomEvent.templates.media.MediaEvent