public class Dialog extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Dialog.DialogBuilder |
| Constructor and Description |
|---|
Dialog() |
Dialog(String title,
String callbackId,
List<DialogElement> elements,
String submitLabel,
boolean notifyOnCancel,
String state) |
| Modifier and Type | Method and Description |
|---|---|
static Dialog.DialogBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getCallbackId()
An identifier strictly for you to recognize submissions of this particular instance of
a dialog.
|
List<DialogElement> |
getElements()
Up to 5 form elements are allowed per dialog.
|
String |
getState()
An optional string that will be echoed back to your app when a user interacts with your dialog.
|
String |
getSubmitLabel()
User-facing string for whichever button-like thing submits the form, depending on
form factor.
|
String |
getTitle()
User-facing title of this entire dialog.
|
int |
hashCode() |
boolean |
isNotifyOnCancel()
Default is false.
|
void |
setCallbackId(String callbackId)
An identifier strictly for you to recognize submissions of this particular instance of
a dialog.
|
void |
setElements(List<DialogElement> elements)
Up to 5 form elements are allowed per dialog.
|
void |
setNotifyOnCancel(boolean notifyOnCancel)
Default is false.
|
void |
setState(String state)
An optional string that will be echoed back to your app when a user interacts with your dialog.
|
void |
setSubmitLabel(String submitLabel)
User-facing string for whichever button-like thing submits the form, depending on
form factor.
|
void |
setTitle(String title)
User-facing title of this entire dialog.
|
String |
toString() |
public static Dialog.DialogBuilder builder()
public String getTitle()
public String getCallbackId()
public List<DialogElement> getElements()
public String getSubmitLabel()
Submit, localized in whichever language the end user
prefers. 24 characters maximum, and may contain only a single word.public boolean isNotifyOnCancel()
public String getState()
public void setTitle(String title)
public void setCallbackId(String callbackId)
public void setElements(List<DialogElement> elements)
public void setSubmitLabel(String submitLabel)
Submit, localized in whichever language the end user
prefers. 24 characters maximum, and may contain only a single word.public void setNotifyOnCancel(boolean notifyOnCancel)
public void setState(String state)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.