getServiceIdsWrapper

abstract fun getServiceIdsWrapper(iviInstanceId: IviInstanceId = IviFunctionalTestCase.defaultIviInstanceId, callback: GetServiceIdsCallback): List<IviServiceId>

Wrapper around <Service>.getServiceIds calls.

This wrapper ensures the API class instance is created on the main thread.

Example:

val serviceIds = getServiceIdsWrapper { iviServiceProvider ->
ExampleService.getServiceIds(iviServiceProvider)
}

Parameters

iviInstanceId

The IVI instance ID to use.

callback

Called on the main thread which allows the caller to get the service ids of discoverable service interface. The callback is provided with the IviServiceProvider instance.