Class PadTemplate.Builder<B extends PadTemplate.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
PadTemplate

public static class PadTemplate.Builder<B extends PadTemplate.Builder<B>> extends GstObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public PadTemplate build()
      Finish building the PadTemplate object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to PadTemplate.
      Overrides:
      build in class GstObject.Builder<B extends PadTemplate.Builder<B>>
      Returns:
      a new instance of PadTemplate with the properties that were set in the Builder object.
    • setCaps

      public B setCaps(Caps caps)
      The capabilities of the pad described by the pad template.
      Parameters:
      caps - the value for the caps property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDirection

      public B setDirection(PadDirection direction)
      The direction of the pad described by the pad template.
      Parameters:
      direction - the value for the direction property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setGtype

      public B setGtype(Type gtype)
      The type of the pad described by the pad template.
      Parameters:
      gtype - the value for the gtype property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.14
    • setNameTemplate

      public B setNameTemplate(String nameTemplate)
      The name template of the pad template.
      Parameters:
      nameTemplate - the value for the name-template property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setPresence

      public B setPresence(PadPresence presence)
      When the pad described by the pad template will become available.
      Parameters:
      presence - the value for the presence property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onPadCreated

      public B onPadCreated(PadTemplate.PadCreatedCallback handler)
      This signal is fired when an element creates a pad from this template.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: