Event.BuilderBase
@ExperimentalAppSearchApi
class Event.BuilderBase<T : Event.BuilderBase<T!>?> : Thing.BuilderBase
| kotlin.Any | ||
| ↳ | androidx.appsearch.builtintypes.Thing.BuilderBase | |
| ↳ | androidx.appsearch.builtintypes.Event.BuilderBase |
Builder for Event.
Summary
Public constructors |
|---|
BuilderBase(event: Event)Constructor for |
BuilderBase(namespace: String, id: String, startDate: Instant)Constructor for |
Public functions |
|
|---|---|
Event |
build()Builds a |
T |
setDuration(duration: Duration?)Sets the duration of the event as a |
T |
setEndDate(endDate: Instant?)Sets the end date of the event as a |
T |
setLocation(location: String?)Sets the location of the event. |
T |
setLogo(logo: ImageObject?)Sets the logo of the event. |
Inherited functions |
||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
BuilderBase
BuilderBase(event: Event)
Constructor for Event.BuilderBase with all the existing values.
BuilderBase
BuilderBase(namespace: String, id: String, startDate: Instant)
Constructor for Event.BuilderBase.
| Parameters | |
|---|---|
namespace: String |
Namespace for the Document. See |
id: String |
The unique identifier for the Document. |
startDate: Instant |
The start date of the event. |
Public functions
setDuration
fun setDuration(duration: Duration?): T
Sets the duration of the event as a Duration.
| Parameters | |
|---|---|
duration: Duration? |
The duration of the event. |
setEndDate
fun setEndDate(endDate: Instant?): T
Sets the end date of the event as a Instant.
| Parameters | |
|---|---|
endDate: Instant? |
The end date of the event. |
setLocation
fun setLocation(location: String?): T
Sets the location of the event. A freeform string describing the Event location. This could be a venue name, a string representation of a street address, or a string representation of a latitude/longitude pair. For example, "Some Place" or "123 Main Street, Anytown, CA" or "37.7749,-122.4194".