Class AggregatorPad.Builder<B extends AggregatorPad.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Direct Known Subclasses:
AudioAggregatorPad.Builder, VideoAggregatorPad.Builder
Enclosing class:
AggregatorPad

public static class AggregatorPad.Builder<B extends AggregatorPad.Builder<B>> extends Pad.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
1.14
  • Constructor Details

    • Builder

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

    • build

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

      public B setEmitSignals(boolean emitSignals)
      Enables the emission of signals such as GstAggregatorPad::buffer-consumed
      Parameters:
      emitSignals - the value for the emit-signals property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.16
    • onBufferConsumed

      public B onBufferConsumed(AggregatorPad.BufferConsumedCallback handler)
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: