Skip to content

Instantly share code, notes, and snippets.

@PierfrancescoSoffritti
Created February 11, 2019 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PierfrancescoSoffritti/01ee69cf75c7985833fb1ec371e2cfa2 to your computer and use it in GitHub Desktop.
Save PierfrancescoSoffritti/01ee69cf75c7985833fb1ec371e2cfa2 to your computer and use it in GitHub Desktop.
public final class CastOptionsProvider implements OptionsProvider {
public CastOptions getCastOptions(Context appContext) {
// Register your receiver on Cast Developer Console to get this ID: https://cast.google.com/publish
String receiverId = "";
return new CastOptions.Builder()
.setReceiverApplicationId(receiverId)
.build();
}
public List<SessionProvider> getAdditionalSessionProviders(Context context) {
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment