Tracks
class Tracks
Information about groups of tracks.
Summary
Nested types |
|---|
class Tracks.GroupInformation about a single group of tracks, including the underlying |
Public constructors |
|---|
@UnstableApiConstructs an instance. |
Public functions |
|
|---|---|
Boolean |
containsType(@C.TrackType trackType: Int)Returns true if there are tracks of type |
Boolean |
|
java-static Tracks! |
@UnstableApiRestores a |
Int |
hashCode() |
Boolean |
isEmpty()Returns |
Boolean |
isTypeSelected(@C.TrackType trackType: Int)Returns true if at least one track of the type |
Boolean |
isTypeSupported(@C.TrackType trackType: Int)Returns true if at least one track of type |
Boolean |
isTypeSupported(Returns true if at least one track of type |
Boolean |
@UnstableApiThis function is deprecated. Use |
Boolean |
@UnstableApiThis function is deprecated. Use |
Bundle! |
Public properties |
|
|---|---|
ImmutableList<Tracks.Group!>! |
Public constructors
Tracks
@UnstableApi
Tracks(groups: (Mutable)List<Tracks.Group!>!)
Constructs an instance.
| Parameters | |
|---|---|
groups: (Mutable)List<Tracks.Group!>! |
The |
Public functions
containsType
fun containsType(@C.TrackType trackType: Int): Boolean
Returns true if there are tracks of type trackType, and false otherwise.
fromBundle
@UnstableApi
java-static fun fromBundle(bundle: Bundle!): Tracks!
Restores a Tracks from a Bundle.
isTypeSelected
fun isTypeSelected(@C.TrackType trackType: Int): Boolean
Returns true if at least one track of the type trackType is selected for playback.
isTypeSupported
fun isTypeSupported(@C.TrackType trackType: Int): Boolean
Returns true if at least one track of type trackType is supported.
isTypeSupported
fun isTypeSupported(
@C.TrackType trackType: Int,
allowExceedsCapabilities: Boolean
): Boolean
Returns true if at least one track of type trackType is supported.
| Parameters | |
|---|---|
@C.TrackType trackType: Int |
The track type to query support for. |
allowExceedsCapabilities: Boolean |
Whether to consider the track as supported if it has a supported |
isTypeSupportedOrEmpty
@UnstableApi
funisTypeSupportedOrEmpty(
@C.TrackType trackType: Int,
allowExceedsCapabilities: Boolean
): Boolean