Tabnine Logo
MediaRouter$RouteInfo.supportsControlCategory
Code IndexAdd Tabnine to your IDE (free)

How to use
supportsControlCategory
method
in
android.support.v7.media.MediaRouter$RouteInfo

Best Java code snippets using android.support.v7.media.MediaRouter$RouteInfo.supportsControlCategory (Showing top 2 results out of 315)

origin: googlesamples/android-MediaRouter

public static Player create(Context context, RouteInfo route) {
  Player player;
  if (route != null && route.supportsControlCategory(
      MediaControlIntent.CATEGORY_REMOTE_PLAYBACK)) {
    player = new RemotePlayer(context);
  } else if (route != null) {
    player = new LocalPlayer.SurfaceViewPlayer(context);
  } else {
    player = new LocalPlayer.OverlayPlayer(context);
  }
  player.connect(route);
  return player;
}
origin: derry/delion

@Override
public boolean currentRouteSupportsRemotePlayback() {
  return mCurrentRoute != null && mCurrentRoute.supportsControlCategory(
      MediaControlIntent.CATEGORY_REMOTE_PLAYBACK);
}
android.support.v7.mediaMediaRouter$RouteInfosupportsControlCategory

Popular methods of MediaRouter$RouteInfo

  • getName
  • getDescription
  • getId
  • getPlaybackType
  • getVolumeHandling
  • isConnecting
  • isSelected
  • select
  • sendControlRequest
  • supportsControlRequest
  • getExtras
  • getPlaybackStream
  • getExtras,
  • getPlaybackStream,
  • getPresentationDisplay,
  • getProvider,
  • getVolume,
  • getVolumeMax,
  • isDefault,
  • isEnabled,
  • matchesSelector

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Join (org.hibernate.mapping)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now