Class NativeCustomEvent

  • All Implemented Interfaces:
    IsJSType, IsCastable

    @JsType(isNative=true,
            name="CustomEvent",
            namespace="<global>")
    public class NativeCustomEvent
    extends NativeBaseEvent
    Internal implementation of a custom native event.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • NativeCustomEvent

        protected NativeCustomEvent​(String type)
        Create a custom event by its type.
        Parameters:
        type - type of the animation event
      • NativeCustomEvent

        protected NativeCustomEvent​(String type,
                                    NativeObject init)
        Create a custom event by its type and initialization configuration.
        Parameters:
        type - type of the custom event
        init - event initialization dictionary to configure the event
    • Method Detail

      • createCustomEvent

        @JsOverlay
        public static final NativeCustomEvent createCustomEvent​(String type)
        Creates a new event object for a specific event type.
        Parameters:
        type - type of event
        Returns:
        a new event object for a specific event type
      • createCustomEvent

        @JsOverlay
        public static final NativeCustomEvent createCustomEvent​(IsEvent type)
        Creates a new event object for a specific event type.
        Parameters:
        type - type of event
        Returns:
        a new event object for a specific event type
      • createCustomEvent

        @JsOverlay
        public static final NativeCustomEvent createCustomEvent​(IsEvent type,
                                                                EventInit init)
        Creates a new event object for a specific event type with initial configuration.
        Parameters:
        type - type of event
        init - initial configuration of the event
        Returns:
        a new event object for a specific event type
      • createCustomEvent

        @JsOverlay
        public static final NativeCustomEvent createCustomEvent​(String type,
                                                                EventInit init)
        Creates a new event object for a specific event type with initial configuration.
        Parameters:
        type - type of event
        init - initial configuration of the event
        Returns:
        a new event object for a specific event type