Products Google APIs for Android Reference CastStateListener public interface CastStateListener A listener interface for monitoring the current CastState. Public Method Summary abstract void onCastStateChanged(int newState) Called when the current CastState changes. Public Methods public abstract void onCastStateChanged (int newState) Called when the current CastState changes. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Last updated September 6, 2017.