Back to Exoplayer

SessionAvailabilityListener (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/ext/cast/SessionAvailabilityListener.html

latest1.4 KB
Original Source

Package com.google.android.exoplayer2.ext.cast

Interface SessionAvailabilityListener


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceSessionAvailabilityListener

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Listener of changes in the cast session availability.

Method Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | onCastSessionAvailable() | Deprecated.

Called when a cast session becomes available to the player. | | void | onCastSessionUnavailable() | Deprecated.

Called when the cast session becomes unavailable. |

Method Detail

- 

onCastSessionAvailable

void onCastSessionAvailable()

Deprecated.

Called when a cast session becomes available to the player.

- 

onCastSessionUnavailable

void onCastSessionUnavailable()

Deprecated.

Called when the cast session becomes unavailable.