public class MessageEvent extends ActionEvent
Modifier and Type | Class and Description |
---|---|
static class |
MessageEvent.PromptPromise
Encapsulates a promise that should be fulfilled when implementingn a custom permissions
prompt to record or play audio.
|
ActionEvent.Type
Constructor and Description |
---|
MessageEvent(Object source,
String message,
int code)
Creates a new message.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Gets the message code.
|
String |
getMessage()
Gets the message content.
|
MessageEvent.PromptPromise |
getPromptPromise()
This obtains the "promise" that should be fulfilled if implementing a custom permissions prompt
for playing or recording audio.
|
boolean |
isPromptForAudioPlayer()
Checks to see if this message is a prompt to play audio.
|
boolean |
isPromptForAudioRecorder()
Checks to see if this message is a prompt to record audio.
|
consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerPressedDuringDrag
public String getMessage()
public int getCode()
public boolean isPromptForAudioRecorder()
See Displaying Custom Prompt to Play Audio for an example.
public boolean isPromptForAudioPlayer()
See Displaying Custom Prompt to Play Audio for an example.
public MessageEvent.PromptPromise getPromptPromise()
See Displaying Custom Prompt to Play Audio for an example.
isPromptForAudioPlayer()
,
isPromptForAudioRecorder()