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.

    Throws

    Will throw a VayErrorType.invalidInput if the provided url is in the wrong format or if the url-scheme is invalid.

    Declaration

    Swift

    public static func createStreamingAnalyser(url: String, apiKey: String, exerciseKey: Int, listener: VayListener, userExternalId: String = "") throws -> 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.