java.lang.Object | |
↳ | com.urbanairship.automation.Schedule.Builder<T extends com.urbanairship.automation.ScheduleData> |
In-app message schedule info builder.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder<T> |
addTrigger(Trigger trigger)
Adds a trigger.
| ||||||||||
Builder<T> |
addTriggers(List<Trigger> triggers)
Adds a list of triggers.
| ||||||||||
Schedule<T> |
build()
Builds the in-app message schedule.
| ||||||||||
Builder<T> |
setAudience(Audience audience)
Sets the audience.
| ||||||||||
Builder<T> |
setAudience(AudienceSelector audience)
Sets the audience.
| ||||||||||
Builder<T> |
setDelay(ScheduleDelay delay)
Set a schedule delay.
| ||||||||||
Builder<T> |
setEditGracePeriod(long duration, TimeUnit timeUnit)
Sets the edit grace period after a schedule expires or finishes.
| ||||||||||
Builder<T> |
setEnd(long end)
Sets the end time in ms.
| ||||||||||
Builder<T> |
setGroup(String group)
Sets the group.
| ||||||||||
Builder<T> |
setId(String id)
Sets the schedule ID.
| ||||||||||
Builder<T> |
setInterval(long duration, TimeUnit timeUnit)
Sets the display interval.
| ||||||||||
Builder<T> |
setLimit(int limit)
Sets the display limit.
| ||||||||||
Builder<T> |
setMetadata(JsonMap metadata)
Sets the metadata.
| ||||||||||
Builder<T> |
setPriority(int priority)
Sets the priority level, in ascending order.
| ||||||||||
Builder<T> |
setStart(long start)
Sets the start time in ms.
| ||||||||||
Builder<T> |
setTriggers(List<Trigger> triggers)
Sets the list of triggers.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adds a trigger.
trigger | A trigger instance. |
---|
Adds a list of triggers.
triggers | A list of trigger instances. |
---|
Builds the in-app message schedule.
IllegalArgumentException | if no triggers are set, TRIGGER_LIMIT triggers are set,
or the start time is set after the end time.
|
---|
Sets the audience.
audience | The audience. |
---|
Sets the audience.
audience | The audience. |
---|
Set a schedule delay.
delay | A ScheduleDelay object. |
---|
Sets the edit grace period after a schedule expires or finishes.
duration | The grace period. |
---|---|
timeUnit | The time unit. |
Sets the end time in ms.
end | The end time in ms. |
---|
Sets the group.
group | The group. |
---|
Sets the schedule ID.
id | The schedule ID. |
---|
Sets the display interval.
duration | The interval. |
---|---|
timeUnit | The time unit. |
Sets the display limit.
limit | The display limit. |
---|
Sets the metadata.
metadata | The metadata. |
---|
Sets the priority level, in ascending order.
priority | The priority level. |
---|
Sets the start time in ms.
start | The start time in ms. |
---|
Sets the list of triggers.
triggers | A list of trigger instances. |
---|