FakeFrameProcessor.Factory


class FakeFrameProcessor.Factory : FrameProcessor.Factory


A factory for FakeFrameProcessor implementations.

Summary

Public constructors

Factory(shouldCompleteIncomingFrames: Boolean)

Creates a new instance.

Public functions

FakeFrameProcessor!
create(output: FrameWriter!)

Helper create method for tests that don't need to specify listener.

FakeFrameProcessor!
create(
    output: FrameWriter!,
    listenerExecutor: Executor!,
    listener: FrameProcessor.Listener!
)

Creates a FrameProcessor that sends frames to the given FrameWriter.

Public constructors

Factory

Factory(shouldCompleteIncomingFrames: Boolean)

Creates a new instance.

Parameters
shouldCompleteIncomingFrames: Boolean

When true, the FrameProcessor will call the completion listener for every queued frame.

Public functions

create

fun create(output: FrameWriter!): FakeFrameProcessor!

Helper create method for tests that don't need to specify listener.

create

fun create(
    output: FrameWriter!,
    listenerExecutor: Executor!,
    listener: FrameProcessor.Listener!
): FakeFrameProcessor!

Creates a FrameProcessor that sends frames to the given FrameWriter.

Parameters
output: FrameWriter!

The FrameWriter to which the FrameProcessor outputs.

listenerExecutor: Executor!

The Executor on which the listener is invoked.

listener: FrameProcessor.Listener!

A Listener to be invoked for FrameProcessor events.

Public properties

createdProcessor

val createdProcessorFakeFrameProcessor?