# LegacyPlayerControlView.VisibilityListener

Artifact: [androidx.media3:media3-ui](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/ui/LegacyPlayerControlView.java+class:androidx.media3.ui.LegacyPlayerControlView.VisibilityListener)

*** ** * ** ***


```
public interface LegacyPlayerControlView.VisibilityListener
```

<br />

*** ** * ** ***

Listener to be notified about changes of the visibility of the UI control.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/media3/ui/LegacyPlayerControlView.VisibilityListener#onVisibilityChange(int)(int visibility)` Called when the visibility changes. |

## Public methods

### onVisibilityChange

```
abstract void onVisibilityChange(int visibility)
```

Called when the visibility changes.

| Parameters |
|---|---|
| `int visibility` | The new visibility. Either `https://developer.android.com/reference/android/view/View.html#VISIBLE` or `https://developer.android.com/reference/android/view/View.html#GONE`. |