Created
May 15, 2019 19:25
-
-
Save akhilamadari/61f0293ca5a95e4b4c16c55c2bd1a221 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.android.gms.cast.framework.CastButtonFactory; | |
override fun onCreateOptionsMenu(menu: Menu): Boolean { | |
super.onCreateOptionsMenu(menu) | |
menuInflater.inflate(R.menu.cast, menu) | |
CastButtonFactory.setUpMediaRouteButton(this, menu, R.id.media_route_menu_item) | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment