AnalyserFactory

public class AnalyserFactory

Analyser Factory creates Analysers and Inputs.

  • Create Input.

    Declaration

    Swift

    public static func createInput(for image: Data, timestamp: Date? = nil) -> VayAnalyserInput

    Parameters

    image

    Image data.

    timestamp

    Optional timestamp at image capture time.

    Return Value

    Analyser input.

  • Create a Streaming Analyser.

    Declaration

    Swift

    public static func createStreamingAnalyser(url: String, apiKey: String, exerciseKey: Int, listener: VayListener, userExternalId: String = "") -> VayAnalyser?

    Parameters

    url

    Analyser server URL.

    apiKey

    The authentication client token.

    exerciseKey

    Exercise key.

    listener

    Listener of events.

    userExternalId

    Optional user ID.

    Return Value

    Streaming Analyser.