Last active
November 13, 2018 16:02
-
-
Save quentin7b/6c9f9f12a940035a733a8631a6e80bea to your computer and use it in GitHub Desktop.
CAF_Sender_options
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
package com.github.quentin7b.estimateit | |
import android.content.Context | |
import com.google.android.gms.cast.framework.CastOptions | |
import com.google.android.gms.cast.framework.OptionsProvider | |
class CastOptionsProvider : OptionsProvider { | |
override fun getCastOptions(ctx: Context): CastOptions { | |
return CastOptions | |
.Builder() | |
.setReceiverApplicationId( | |
ctx.getString(R.string.receiver_id) | |
) | |
.build() | |
} | |
override fun getAdditionalSessionProviders(ctx: Context) = null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment