OpenMicrophoneResponse.Builder

public final class OpenMicrophoneResponse.Builder


A builder for OpenMicrophoneResponses.

Summary

Public constructors

Public methods

@NonNull OpenMicrophoneResponse

Builds the OpenMicrophoneResponse for this builder.

@NonNull OpenMicrophoneResponse.Builder
setCarMicrophoneDescriptor(
    @NonNull ParcelFileDescriptor carMicrophoneDescriptor
)

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

Public constructors

Builder

Added in 1.3.0
public Builder(@NonNull CarAudioCallback callback)

Public methods

build

Added in 1.3.0
public @NonNull OpenMicrophoneResponse build()

Builds the OpenMicrophoneResponse for this builder.

setCarMicrophoneDescriptor

Added in 1.3.0
public @NonNull OpenMicrophoneResponse.Builder setCarMicrophoneDescriptor(
    @NonNull ParcelFileDescriptor carMicrophoneDescriptor
)

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.