# Class IsGalleryTypeSupportedEvent

java.lang.Object
com.codename1.ui.events.ActionEvent
com.codename1.plugin.event.PluginEvent<Boolean>
com.codename1.plugin.event.IsGalleryTypeSupportedEvent

public class IsGalleryTypeSupportedEvent extends PluginEvent<Boolean>
Plugin event fired when `Display#isGalleryTypeSupported(int)` method is called to give plugins an opportunity to answer this question.

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class ActionEvent

  `ActionEvent.Type`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IsGalleryTypeSupportedEvent(int type)`
  Creates a new event with the given type.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getType()`
  Gets the type of gallery to open.

  ### Methods inherited from class PluginEvent

  `getPluginEventResponse, setPluginEventResponse`

  ### Methods inherited from class ActionEvent

  `consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerPressedDuringDrag`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### IsGalleryTypeSupportedEvent

    public IsGalleryTypeSupportedEvent(int type)

    Creates a new event with the given type.

    ###### Parameters

    - `type`: The type of the gallery. This is one of the constants defined in `Display`.

- ## Method Details

  - ### getType

    public int getType()

    Gets the type of gallery to open.

    ###### Returns

    The type of gallery to open. This is one of the constants defined in `Display`.

    ###### Since

    8.0

    ###### See also

    - Display#openGallery(com.codename1.ui.events.ActionListener, int)