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

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

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

origin: googlesamples/android-MediaRouter

@Override
public void updatePresentation() {
  // Get the current route and its presentation display.
  Display presentationDisplay = mRoute != null ? mRoute.getPresentationDisplay() : null;
  // Dismiss the current presentation if the display has changed.
  if (mPresentation != null && mPresentation.getDisplay() != presentationDisplay) {
    Log.i(TAG, "Dismissing presentation because the current route no longer "
        + "has a presentation display.");
    mPresentation.dismiss();
    mPresentation = null;
  }
  // Show a new presentation if needed.
  if (mPresentation == null && presentationDisplay != null) {
    Log.i(TAG, "Showing presentation on display: " + presentationDisplay);
    mPresentation = new DemoPresentation(getContext(), presentationDisplay);
    mPresentation.setOnDismissListener(mOnDismissListener);
    try {
      mPresentation.show();
    } catch (WindowManager.InvalidDisplayException ex) {
      Log.w(TAG, "Couldn't show presentation!  Display was removed in "
           + "the meantime.", ex);
      mPresentation = null;
    }
  }
  updateContents();
}
android.support.v7.mediaMediaRouter$RouteInfogetPresentationDisplay

Popular methods of MediaRouter$RouteInfo

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

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • Path (java.nio.file)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Sublime Text plugins
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