java.lang.Object
public Builder()
The primary line of text for display on the alert. If fewer than three alert lines are available on the head unit, the screen manager will automatically concatenate some of the lines together.
public com.smartdevicelink.managers.screen.AlertView.Builder setText(String text)
The secondary line of text for display on the alert. If fewer than three alert lines are available on the head unit, the screen manager will automatically concatenate some of the lines together.
public com.smartdevicelink.managers.screen.AlertView.Builder setSecondaryText(String secondaryText)
The tertiary line of text for display on the alert. If fewer than three alert lines are available on the head unit, the screen manager will automatically concatenate some of the lines together.
public com.smartdevicelink.managers.screen.AlertView.Builder setTertiaryText(String tertiaryText)
Timeout in seconds. Defaults to 0, which will use `defaultTimeout`. If this is set below the minimum, it will be capped at 3 seconds. Minimum 3 seconds, maximum 10 seconds. If this is set above the maximum, it will be capped at 10 seconds. Defaults to 0. Please note that if a button is added to the alert, the defaultTimeout and timeout values will be ignored.
public com.smartdevicelink.managers.screen.AlertView.Builder setTimeout(Integer timeout)
If supported, the alert GUI will display some sort of indefinite waiting / refresh / loading indicator animation. Defaults to NO.
public com.smartdevicelink.managers.screen.AlertView.Builder setShowWaitIndicator(boolean showWaitIndicator)
Soft buttons the user may select to perform actions. Only one `SoftButtonState` per object is supported; if any soft button object contains multiple states, an exception will be thrown.
public com.smartdevicelink.managers.screen.AlertView.Builder setSoftButtons(java.util.List<com.smartdevicelink.managers.screen.SoftButtonObject> softButtons)
Text spoken, file(s) played, and/or tone played when the alert appears
public com.smartdevicelink.managers.screen.AlertView.Builder setAudio(AlertAudioData audio)
An artwork that will be displayed when the icon appears. This will be uploaded prior to the appearance of the alert if necessary. This will not be uploaded if the head unit does not declare support for alertIcon.
public com.smartdevicelink.managers.screen.AlertView.Builder setIcon(SdlArtwork icon)
Set this to change the default timeout for all alerts. If a timeout is not set on an individual alert object (or if it is set to 0.0), then it will use this timeout instead. See `timeout` for more details. If this is not set by you, it will default to 5 seconds. The minimum is 3 seconds, the maximum is 10 seconds. If this is set below the minimum, it will be capped at 3 seconds. If this is set above the maximum, it will be capped at 10 seconds.
public com.smartdevicelink.managers.screen.AlertView.Builder setDefaultTimeOut(int defaultTimeOut)
public com.smartdevicelink.managers.screen.AlertView build()
From Class | Methods |
---|---|
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |