OpenMicrophoneResponse.Builder


class OpenMicrophoneResponse.Builder


A builder for OpenMicrophoneResponses.

Summary

Public constructors

Public functions

OpenMicrophoneResponse

Builds the OpenMicrophoneResponse for this builder.

OpenMicrophoneResponse.Builder
setCarMicrophoneDescriptor(
    carMicrophoneDescriptor: ParcelFileDescriptor
)

Sets the ParcelFileDescriptor that is to be used to read microphone bytes from the car.

Public constructors

Builder

Added in 1.3.0
Builder(callback: CarAudioCallback)

Public functions

build

Added in 1.3.0
fun build(): OpenMicrophoneResponse

Builds the OpenMicrophoneResponse for this builder.

setCarMicrophoneDescriptor

Added in 1.3.0
fun setCarMicrophoneDescriptor(
    carMicrophoneDescriptor: ParcelFileDescriptor
): OpenMicrophoneResponse.Builder

Sets the ParcelFileDescriptor that is to be used to read microphone bytes from the car.

This is only needed in projected case, where the car microphone comes from the host.