Package com.slack.api.model.dialog
Class Dialog
java.lang.Object
com.slack.api.model.dialog.Dialog
Represents a Slack Modal Dialog
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Dialog.DialogBuilderbuilder()protected booleanbooleanAn identifier strictly for you to recognize submissions of this particular instance of a dialog.Up to 5 form elements are allowed per dialog.getState()An optional string that will be echoed back to your app when a user interacts with your dialog.User-facing string for whichever button-like thing submits the form, depending on form factor.getTitle()User-facing title of this entire dialog.inthashCode()booleanDefault is false.voidsetCallbackId(String callbackId) An identifier strictly for you to recognize submissions of this particular instance of a dialog.voidsetElements(List<DialogElement> elements) Up to 5 form elements are allowed per dialog.voidsetNotifyOnCancel(boolean notifyOnCancel) Default is false.voidAn optional string that will be echoed back to your app when a user interacts with your dialog.voidsetSubmitLabel(String submitLabel) User-facing string for whichever button-like thing submits the form, depending on form factor.voidUser-facing title of this entire dialog.toString()
-
Constructor Details
-
Dialog
public Dialog() -
Dialog
-
-
Method Details
-
builder
-
getTitle
User-facing title of this entire dialog. 24 characters to work with and it's required. -
getCallbackId
An identifier strictly for you to recognize submissions of this particular instance of a dialog. Use something meaningful to your app. 255 characters maximum. Absolutely required. -
getElements
Up to 5 form elements are allowed per dialog. Required. -
getSubmitLabel
User-facing string for whichever button-like thing submits the form, depending on form factor. Defaults toSubmit, localized in whichever language the end user prefers. 24 characters maximum, and may contain only a single word. -
isNotifyOnCancel
public boolean isNotifyOnCancel()Default is false. When set to true, we'll notify your request URL whenever there's a user-induced dialog cancellation. -
getState
An optional string that will be echoed back to your app when a user interacts with your dialog. Use it as a pointer to reference sensitive data stored elsewhere. -
setTitle
User-facing title of this entire dialog. 24 characters to work with and it's required. -
setCallbackId
An identifier strictly for you to recognize submissions of this particular instance of a dialog. Use something meaningful to your app. 255 characters maximum. Absolutely required. -
setElements
Up to 5 form elements are allowed per dialog. Required. -
setSubmitLabel
User-facing string for whichever button-like thing submits the form, depending on form factor. Defaults toSubmit, localized in whichever language the end user prefers. 24 characters maximum, and may contain only a single word. -
setNotifyOnCancel
public void setNotifyOnCancel(boolean notifyOnCancel) Default is false. When set to true, we'll notify your request URL whenever there's a user-induced dialog cancellation. -
setState
An optional string that will be echoed back to your app when a user interacts with your dialog. Use it as a pointer to reference sensitive data stored elsewhere. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-