Table of Contents

Class StreamHandler<T>

public abstract class StreamHandler<T> : IStreamHandler

Type Parameters

T
Inheritance
StreamHandler<T>
Implements
Derived
Inherited Members
Extension Methods

Constructors

StreamHandler(Action, Action<T>, Action<string>, Action<float>, Action)

public StreamHandler(Action onStart = null, Action<T> onStream = null, Action<string> onError = null, Action<float> onProgress = null, Action onDone = null)

Parameters

onStart Action
onStream Action<T>
onError Action<string>
onProgress Action<float>
onDone Action

Fields

onDone

public Action onDone

Field Value

Action

onError

public Action<string> onError

Field Value

Action<string>

onProgress

public Action<float> onProgress

Field Value

Action<float>

onStart

public Action onStart

Field Value

Action

onStream

public Action<T> onStream

Field Value

Action<T>

Properties

OnProgressEnabled

public bool OnProgressEnabled { get; }

Property Value

bool

Methods

FinishStreaming()

public virtual void FinishStreaming()

OnError(string)

public virtual void OnError(string error)

Parameters

error string

OnProgress(float)

public virtual void OnProgress(float progress)

Parameters

progress float

StartStreaming()

public virtual void StartStreaming()

Stream(T)

public virtual void Stream(T data)

Parameters

data T