java.lang.Object | |
↳ | com.urbanairship.analytics.MediaEventTemplate |
A class that represents a custom media event template for the application.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BROWSED_CONTENT_EVENT | The browsed event name. | |||||||||
String | CONSUMED_CONTENT_EVENT | The consumed_content event name. | |||||||||
String | MEDIA_EVENT_TEMPLATE | The media event template type. | |||||||||
String | SHARED_CONTENT_EVENT | The shared_content event name. | |||||||||
String | STARRED_CONTENT_EVENT | The starred_content event name. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CustomEvent |
createEvent()
Creates the custom media event.
| ||||||||||
static MediaEventTemplate |
newBrowsedTemplate()
Creates a browsed event template.
| ||||||||||
static MediaEventTemplate |
newConsumedTemplate(int value)
Creates a consumed content event template.
| ||||||||||
static MediaEventTemplate |
newConsumedTemplate(BigDecimal value)
Creates a consumed content event template.
| ||||||||||
static MediaEventTemplate |
newConsumedTemplate(double value)
Creates a consumed content event template.
| ||||||||||
static MediaEventTemplate |
newConsumedTemplate(String value)
Creates a consumed content event template.
| ||||||||||
static MediaEventTemplate |
newConsumedTemplate()
Creates a consumed content event template.
| ||||||||||
static MediaEventTemplate |
newSharedTemplate()
Creates a shared content event template.
| ||||||||||
static MediaEventTemplate |
newSharedTemplate(String source, String medium)
Creates a shared content event template.
| ||||||||||
static MediaEventTemplate |
newStarredTemplate()
Creates a starred content event template.
| ||||||||||
MediaEventTemplate |
setAuthor(String author)
Set the author.
| ||||||||||
MediaEventTemplate |
setCategory(String category)
Set the category.
| ||||||||||
MediaEventTemplate |
setDescription(String description)
Set the description.
| ||||||||||
MediaEventTemplate |
setFeature(boolean feature)
Set the feature.
| ||||||||||
MediaEventTemplate |
setId(String id)
Set the ID.
| ||||||||||
MediaEventTemplate |
setPublishedDate(String publishedDate)
Set the publishedDate.
| ||||||||||
MediaEventTemplate |
setType(String type)
Set the type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The browsed event name.
The consumed_content event name.
The media event template type.
The shared_content event name.
The starred_content event name.
Creates a browsed event template.
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.
value | The event value as an int. |
---|
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.
value | 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.
value | The event value as a double. Must be a number. |
---|
NumberFormatException | 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.
value | The event value as a string. Must contain valid string representation of a big decimal. |
---|
NumberFormatException | if the event value does not contain a valid string representation of a big decimal. |
---|
Creates a consumed content event template.
Creates a shared content event template.
Creates a shared content event template.
If the source or medium exceeds 255 characters it will cause the event to be invalid.
source | The source as a string. |
---|---|
medium | The medium as a string. |
Creates a starred content event template.
Set the author.
If the author exceeds 255 characters it will cause the event to be invalid.
author | The author as a string. |
---|
Set the category.
If the category exceeds 255 characters it will cause the event to be invalid.
category | The category as a string. |
---|
Set the description.
If the description exceeds 255 characters it will cause the event to be invalid.
description | The description as a string. |
---|
Set the feature.
feature | The feature as a boolean. |
---|
Set the ID.
If the ID exceeds 255 characters it will cause the event to be invalid.
id | The ID as a string. |
---|
Set the publishedDate.
If the publishedDate exceeds 255 characters it will cause the event to be invalid.
publishedDate | The publishedDate as a string. |
---|
Set the type.
If the type exceeds 255 characters it will cause the event to be invalid.
type | The type as a string. |
---|