getCastContext

fun Context.getCastContext(): CastContext

Get the shared instance of CastContext if available, or initialize a new one. Call this method inside your Activity or Application. The sooner, the better.