newConsumedTemplate
Creates a consumed content event template.
Return
A MediaEventTemplate.
Creates a consumed content event template.
The event's value will be accurate 6 digits after the decimal. The number must fall in the range [-2^31, 2^31-1]. Any value outside that range will cause the event to be invalid.
Return
A MediaEventTemplate.
Parameters
The event value as a BigDecimal.
Creates a consumed content event template.
The event's value will be accurate 6 digits after the decimal. The number must fall in the range [-2^31, 2^31-1]. Any value outside that range will cause the event to be invalid.
Return
A MediaEventTemplate.
Parameters
The event value as a double. Must be a number.
Throws
if the value is infinity or not a number.
Creates a consumed content event template.
The event's value will be accurate 6 digits after the decimal. The number must fall in the range [-2^31, 2^31-1]. Any value outside that range will cause the event to be invalid.
Return
A MediaEventTemplate.
Parameters
The event value as a string. Must contain valid string representation of a big decimal.
Throws
if the event value does not contain a valid string representation of a big decimal.
Creates a consumed content event template.
The event's value will be accurate 6 digits after the decimal. The number must fall in the range [-2^31, 2^31-1]. Any value outside that range will cause the event to be invalid.
Return
A MediaEventTemplate.
Parameters
The event value as an int.