public static class

ScheduleDelay.Builder

extends Object
java.lang.Object
   ↳ com.urbanairship.automation.ScheduleDelay.Builder

Class Overview

Builder class.

Summary

Public Constructors
Builder()
Public Methods
ScheduleDelay.Builder addCancellationTrigger(Trigger cancellationTrigger)
Adds a cancellation trigger.
ScheduleDelay build()
Builds the ScheduleDelay instance.
ScheduleDelay.Builder setAppState(int appState)
Sets the app state.
ScheduleDelay.Builder setRegionId(String regionId)
Sets the region ID.
ScheduleDelay.Builder setScreen(String screen)
Sets the app screen.
ScheduleDelay.Builder setScreens(JsonList screens)
Sets the app screens.
ScheduleDelay.Builder setScreens(List<String> screens)
Sets the app screens.
ScheduleDelay.Builder setSeconds(long seconds)
Sets the delay in seconds.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public ScheduleDelay.Builder addCancellationTrigger (Trigger cancellationTrigger)

Adds a cancellation trigger.

Parameters
cancellationTrigger The cancellation trigger.
Returns
  • The Builder instance.

public ScheduleDelay build ()

Builds the ScheduleDelay instance.

Returns
  • The ScheduleDelay instance.

public ScheduleDelay.Builder setAppState (int appState)

Sets the app state.

Parameters
appState The app state.
Returns
  • The Builder instance.

public ScheduleDelay.Builder setRegionId (String regionId)

Sets the region ID.

Parameters
regionId The region ID.
Returns
  • The Builder instance.

public ScheduleDelay.Builder setScreen (String screen)

Sets the app screen.

Parameters
screen The app screen.
Returns
  • The Builder instance.

public ScheduleDelay.Builder setScreens (JsonList screens)

Sets the app screens.

Returns
  • The Builder instance.

public ScheduleDelay.Builder setScreens (List<String> screens)

Sets the app screens.

Parameters
screens The app screens.
Returns
  • The Builder instance.

public ScheduleDelay.Builder setSeconds (long seconds)

Sets the delay in seconds.

Parameters
seconds The delay in seconds.
Returns
  • The Builder instance.