Interface InstantRun


public interface InstantRun
Model for InstantRun related information.
  • Field Details

    • STATUS_SUPPORTED

      static final int STATUS_SUPPORTED
      Instant Run is supported.
      See Also:
    • STATUS_NOT_SUPPORTED_FOR_NON_DEBUG_VARIANT

      static final int STATUS_NOT_SUPPORTED_FOR_NON_DEBUG_VARIANT
      Instant Run is not supported for non-debug build variants.
      See Also:
    • STATUS_NOT_SUPPORTED_VARIANT_USED_FOR_TESTING

      static final int STATUS_NOT_SUPPORTED_VARIANT_USED_FOR_TESTING
      Instant Run is not supported because the variant is used for testing.
      See Also:
    • STATUS_NOT_SUPPORTED_FOR_JACK

      static final int STATUS_NOT_SUPPORTED_FOR_JACK
      Instant Run is not supported when Jack is used.
      See Also:
    • STATUS_NOT_SUPPORTED_FOR_EXTERNAL_NATIVE_BUILD

      static final int STATUS_NOT_SUPPORTED_FOR_EXTERNAL_NATIVE_BUILD
      Instant Run currently does not support projects with external native build system.
      See Also:
    • STATUS_NOT_SUPPORTED_FOR_EXPERIMENTAL_PLUGIN

      static final int STATUS_NOT_SUPPORTED_FOR_EXPERIMENTAL_PLUGIN
      Instant Run is currently disabled for the experimental plugin.
      See Also:
    • STATUS_NOT_SUPPORTED_FOR_MULTI_APK

      static final int STATUS_NOT_SUPPORTED_FOR_MULTI_APK
      Instant Run is currently disabled for multi-apk applications (http://b/77685496)
      See Also:
    • STATUS_REMOVED

      static final int STATUS_REMOVED
      Instant Run was removed
      See Also:
  • Method Details

    • getInfoFile

      @NonNull File getInfoFile()
      Returns the last incremental build information, including success or failure, verifier reason for requesting a restart, etc...
      Returns:
      a file location, possibly not existing.
    • isSupportedByArtifact

      boolean isSupportedByArtifact()
      Whether the owner artifact supports Instant Run. This may depend on the toolchain used.
    • getSupportStatus

      int getSupportStatus()
      Returns a status code indicating whether Instant Run is supported and why.