Created
May 15, 2019 19:23
-
-
Save akhilamadari/2532f09bdbd99d452efa37002c051b61 to your computer and use it in GitHub Desktop.
MainActivity.kt
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