# Class MessageEvent.PromptPromise

java.lang.Object
java.util.Observable
com.codename1.util.AsyncResource<Boolean>
com.codename1.ui.events.MessageEvent.PromptPromise

Enclosing class:
  `MessageEvent`

public static class MessageEvent.PromptPromise extends AsyncResource<Boolean>

Encapsulates a promise that should be fulfilled when implementingn a custom permissions prompt to record or play audio. Currently this is only used for the Javscript port.

See Displaying Custom Prompt to Play Audio for an example.

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class AsyncResource

  `AsyncResource.AsyncExecutionException, AsyncResource.CancellationException`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PromptPromise()`

- ## Method Summary

  ### Methods inherited from class AsyncResource

  `addListener, all, all, asPromise, await, await, await, cancel, complete, error, except, except, get, get, get, isCancelled, isCancelled, isDone, isReady, onResult, ready, ready, waitFor`

  ### Methods inherited from class Observable

  `addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PromptPromise

    public PromptPromise()