Class Stream.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Use Builder to construct an Stream object instance.
    • Method Detail

      • width

        @NonNull
        public Stream.Builder width​(int width)
        Parameters:
        width - initial width of the incoming stream. Whether this value is used is stream dependent. On Android, it must be set when using stream(long)
        Returns:
        This Builder, for chaining calls.
      • height

        @NonNull
        public Stream.Builder height​(int height)
        Parameters:
        height - initial height of the incoming stream. Whether this value is used is stream dependent. On Android, it must be set when using stream(long)
        Returns:
        This Builder, for chaining calls.
      • build

        @NonNull
        public Stream build​(@NonNull
                            Engine engine)
        Creates a new Stream object instance.
        Parameters:
        engine - Engine instance to associate this Stream with.
        Returns:
        newly created Stream object
        Throws:
        java.lang.IllegalStateException - if the Stream couldn't be created