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

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

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

origin: derry/delion

  @Override
  public void onRouteUnselected(MediaRouter router, RouteInfo route) {
    onRouteUnselectedEvent(router, route);
    if (getCurrentRoute() != null && !getCurrentRoute().isDefault()
        && route.getId().equals(getCurrentRoute().getId())) {
      RecordCastAction.castEndedTimeRemaining(getDuration(),
          getDuration() - getPosition());
      release();
    }
  }
}
origin: derry/delion

private void sendControlIntent(final Intent intent, final ResultBundleHandler bundleHandler) {
  Log.d(TAG, "Sending intent to %s %s", getCurrentRoute().getName(),
      getCurrentRoute().getId());
  logIntent("sendControlIntent ", intent);
  if (getCurrentRoute().isDefault()) {
    Log.d(TAG, "Route is default, not sending");
    return;
  }
  getCurrentRoute().sendControlRequest(intent, new MediaRouter.ControlRequestCallback() {
    @Override
    public void onResult(Bundle data) {
      if (data != null && bundleHandler != null) bundleHandler.onResult(data);
    }
    @Override
    public void onError(String message, Bundle data) {
      logControlRequestError(intent, message, data);
      int errorCode = 0;
      if (data != null) {
        errorCode = data.getInt(CastMediaControlIntent.EXTRA_ERROR_CODE);
      }
      sendErrorToListeners(errorCode);
      if (bundleHandler != null) bundleHandler.onError(message, data);
    }
  });
}
origin: derry/delion

@Override
public boolean routeIsDefaultRoute() {
  return mCurrentRoute != null && mCurrentRoute.isDefault();
}
android.support.v7.mediaMediaRouter$RouteInfoisDefault

Popular methods of MediaRouter$RouteInfo

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

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JOptionPane (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • CodeWhisperer alternatives
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