Package ai.vay.client.impl.streaming
Interface ResponseHandler
-
public interface ResponseHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onError(ErrorPair errorPair)
Pass an error to the response handlervoid
onMessage(ai.vay.vup.VayVup.ResponseContainer responseContainer)
Pass a response container to the response handlervoid
onReady()
Ready to configure the sessionvoid
stop()
Stop analyser
-
-
-
Method Detail
-
onMessage
void onMessage(ai.vay.vup.VayVup.ResponseContainer responseContainer)
Pass a response container to the response handler- Parameters:
responseContainer
- containing the metadata or analysis result.
-
onReady
void onReady()
Ready to configure the session
-
onError
void onError(ErrorPair errorPair)
Pass an error to the response handler- Parameters:
errorPair
- containing the error type and the error text
-
stop
void stop()
Stop analyser
-
-