java.lang.Object | |
↳ | com.urbanairship.analytics.SearchEventTemplate |
A class that represents a custom search event template for the application.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CustomEvent |
createEvent()
Creates the custom search event.
| ||||||||||
static SearchEventTemplate | newSearchTemplate() | ||||||||||
SearchEventTemplate |
setCategory(String category)
Set the category.
| ||||||||||
SearchEventTemplate |
setId(String id)
Set the ID.
| ||||||||||
SearchEventTemplate |
setQuery(String query)
Set the query.
| ||||||||||
SearchEventTemplate |
setTotalResults(long totalResults)
Set the total results.
| ||||||||||
SearchEventTemplate |
setType(String type)
Set the type.
| ||||||||||
SearchEventTemplate |
setValue(int value)
Sets the event value.
| ||||||||||
SearchEventTemplate |
setValue(double value)
Sets the event value.
| ||||||||||
SearchEventTemplate |
setValue(String value)
Sets the event value.
| ||||||||||
SearchEventTemplate |
setValue(BigDecimal value)
Sets the event value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Set the category.
category | The category as a string. |
---|
Set the ID.
id | The ID as a string. |
---|
Set the query.
query | The query as a string. |
---|
Set the total results.
totalResults | The total results as a string. |
---|
Set the type.
type | The type as a string. |
---|
Sets the event value.
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's value as an int. |
---|
Sets the event value.
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's value as a double. Must be a number. |
---|
NumberFormatException | if the value is infinity or not a number. |
---|
Sets the event value.
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's 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. |
---|
Sets the event value.
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's value as a BigDecimal. |
---|