public interface

NetworkTypeObserver.Listener

 androidx.media3.common.util.NetworkTypeObserver.Listener

Overview

A listener for network type changes.

Summary

Methods
public voidonNetworkTypeChanged(int networkType)

Called when the network type changed or when the listener is first registered.

Methods

public void onNetworkTypeChanged(int networkType)

Called when the network type changed or when the listener is first registered.

This method is always called on the main thread.