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

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

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

origin: square/assertj-android

public MediaRouterRouteInfoAssert isConnecting() {
 isNotNull();
 assertThat(actual.isConnecting()) //
   .overridingErrorMessage("Expected to be connecting but was not.") //
   .isTrue();
 return this;
}
origin: square/assertj-android

public MediaRouterRouteInfoAssert isNotConnecting() {
 isNotNull();
 assertThat(actual.isConnecting()) //
   .overridingErrorMessage("Expected to not be connecting but was.") //
   .isFalse();
 return this;
}
origin: derry/delion

@Override
public void onRouteChanged(MediaRouter router, RouteInfo route) {
  // We only care about changes to the current route.
  if (!route.equals(getCurrentRoute())) return;
  // When there is no wifi connection, this condition becomes true.
  if (route.isConnecting()) {
    // We don't want to post the same Runnable twice.
    if (!mConnectionFailureNotifierQueued) {
      mConnectionFailureNotifierQueued = true;
      getHandler().postDelayed(mConnectionFailureNotifier,
          CONNECTION_FAILURE_NOTIFICATION_DELAY_MS);
    }
  } else {
    // Only cancel the disconnect if we already posted the message. We can get into this
    // situation if we swap the current route provider (for example, switching to a YT
    // video while casting a non-YT video).
    if (mConnectionFailureNotifierQueued) {
      // We have reconnected, cancel the delayed disconnect.
      getHandler().removeCallbacks(mConnectionFailureNotifier);
      mConnectionFailureNotifierQueued = false;
    }
  }
}
android.support.v7.mediaMediaRouter$RouteInfoisConnecting

Popular methods of MediaRouter$RouteInfo

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

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • Menu (java.awt)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • String (java.lang)
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • 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