Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

CarAudioPatchHandle

public final class CarAudioPatchHandle
extends Object implements Parcelable

java.lang.Object
   ↳ android.car.media.CarAudioPatchHandle


A class to encapsulate the handle for a system level audio patch. This is used to provide a "safe" way for permitted applications to route automotive audio sources outside of android.

Summary

Inherited constants

Fields

public static final Creator<CarAudioPatchHandle> CREATOR

Public constructors

CarAudioPatchHandle(AudioPatch patch)

Construct a audio patch handle container given the system level handle NOTE: Assumes (as it true today), that there is exactly one device port in the source and sink arrays.

Public methods

int describeContents()
String toString()
void writeToParcel(Parcel out, int flags)

Serialize our internal data to a parcel

Inherited methods

Fields

CREATOR

public static final Creator<CarAudioPatchHandle> CREATOR

Public constructors

CarAudioPatchHandle

public CarAudioPatchHandle (AudioPatch patch)

Construct a audio patch handle container given the system level handle NOTE: Assumes (as it true today), that there is exactly one device port in the source and sink arrays.

Parameters
patch AudioPatch

Public methods

describeContents

public int describeContents ()

Returns
int

toString

public String toString ()

Returns
String

writeToParcel

public void writeToParcel (Parcel out, 
                int flags)

Serialize our internal data to a parcel

Parameters
out Parcel

flags int