DefaultDelegate class
Default implementation of {@link Delegate}, based on {@link Window}.
class DefaultDelegate implements Delegate { HandlerRegistration addWindowClosingHandler(ClosingHandler handler) { return new ClosingHandlerRegistration(handler); } bool confirm(String message) { return dart_html.window.confirm(message); } }
Implements
Methods
HandlerRegistration addWindowClosingHandler(ClosingHandler handler) #
Adds a {@link ClosingHandler} to the Delegate.
@param handler a {@link ClosingHandler} instance @return a {@link HandlerRegistration} instance
docs inherited from Delegate
HandlerRegistration addWindowClosingHandler(ClosingHandler handler) { return new ClosingHandlerRegistration(handler); }