Unify

class Unify

The main unify interface

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface Observer_

Functions

Link copied to clipboard

Add a network instrument.

Link copied to clipboard

Configure the calibration

Link copied to clipboard

Configure the overlay set.

Link copied to clipboard

Configure the test

Link copied to clipboard
suspend fun connectInstrument(serialNumber: String): ConnectionResult

Connect to an instrument.

Link copied to clipboard
suspend fun disconnectInstrument(serialNumber: String)

Disconnect an instrument.

Link copied to clipboard

Get batched overlay results.

Link copied to clipboard

Get batched test results.

Link copied to clipboard

Get the instrument definition for a serial number.

Link copied to clipboard

Get the available instrument definitions.

Link copied to clipboard
fun getInstrumentStates(serialNumber: String): Flow<InstrumentState>

Get state updates for an instrument.

Link copied to clipboard
fun getLogs(): Flow<Log>

Get the log stream.

Link copied to clipboard

Get realtime overlay results.

Link copied to clipboard

Get realtime test results.

Link copied to clipboard

Get the report details.

Link copied to clipboard

Get the report logo.

Link copied to clipboard

Get the report records.

Link copied to clipboard

Get test contexts.

Link copied to clipboard
suspend fun identifyInstrument(serialNumber: String, text: String, duration: Double)

Display identification text on an instrument.

Link copied to clipboard
suspend fun mergeReport(filePath: String)

Merge a report from disk into the current report.

Link copied to clipboard
fun newReport()

Create a new report.

Link copied to clipboard
suspend fun openReport(filePath: String)

Open a report from disk.

Link copied to clipboard
suspend fun printReportToPdf(filePath: String, orientation: Orientation)

Print the report to a PDF file.

Link copied to clipboard
fun printTraceToPng(traceId: Long, filePath: String, width: Int, height: Int)

Print a trace to a PNG file.

Link copied to clipboard
fun recordImage(filePath: String, tags: List<String>, comment: String?, location: Location?): Record

Record an image in the report.

Link copied to clipboard
fun recordTrace(traceId: Long, tags: List<String>, comment: String?, location: Location?, viewport: Viewport): Record

Record a trace in the report.

Link copied to clipboard
suspend fun runBluetoothScan()

Run a Bluetooth scan.

Link copied to clipboard

Run the calibration

Link copied to clipboard
fun runCalibrationStep(stepId: String): Flow<Double>

Run the calibration step

Link copied to clipboard

Run instrument discovery.

Link copied to clipboard
fun runTest(checkRl: Boolean): Flow<TestProgress>

Run the test

Link copied to clipboard
suspend fun saveReport(filePath: String)

Save the report to disk.

Link copied to clipboard
suspend fun setInstrumentIsSoundOn(serialNumber: String, on: Boolean)

Enable or disable the sound on the instrument

Link copied to clipboard
fun setLogLevels(minLevel: LogLevel, maxLevel: LogLevel)

Set the minimum and maximum log levels.

Link copied to clipboard
fun setReportDetails(reportDetails: ReportDetails)

Set the report details.

Link copied to clipboard
fun setReportLogo(filePath: String?)

Set the report logo.

Link copied to clipboard
suspend fun stopBluetoothScan()

Stop the Bluetooth scan.

Link copied to clipboard
suspend fun stopCalibration()

Stop the running calibration.

Link copied to clipboard
suspend fun stopCalibrationStep()

Stop the running calibration step.

Link copied to clipboard
suspend fun stopTest()

Stop the running test.