Skip to content

Instantly share code, notes, and snippets.

@quentin7b
Last active November 13, 2018 16:02
Show Gist options
  • Save quentin7b/6c9f9f12a940035a733a8631a6e80bea to your computer and use it in GitHub Desktop.
Save quentin7b/6c9f9f12a940035a733a8631a6e80bea to your computer and use it in GitHub Desktop.
CAF_Sender_options
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