Tabnine Logo
AsyncDrawableLoader
Code IndexAdd Tabnine to your IDE (free)

How to use
AsyncDrawableLoader
in
ru.noties.markwon.il

Best Java code snippets using ru.noties.markwon.il.AsyncDrawableLoader (Showing top 5 results out of 315)

origin: noties/Markwon

@NonNull
public static AsyncDrawableLoader create() {
  return builder().build();
}
origin: noties/Markwon

@Override
public void load(@NonNull String destination, @NonNull AsyncDrawable drawable) {
  // if drawable is not a link -> show loading placeholder...
  requests.put(destination, execute(destination, drawable));
}
origin: noties/Markwon

return new AsyncDrawableLoader(this);
origin: noties/Markwon

@Provides
AsyncDrawable.Loader asyncDrawableLoader(
    OkHttpClient client,
    ExecutorService executorService,
    Resources resources) {
  return AsyncDrawableLoader.builder()
      .client(client)
      .executorService(executorService)
      .resources(resources)
      .mediaDecoders(
          SvgMediaDecoder.create(resources),
          GifMediaDecoder.create(false),
          ImageMediaDecoder.create(resources)
      )
      .build();
}
origin: noties/Markwon

final JLatexMathMedia jLatexMathMedia = new JLatexMathMedia(config);
final AsyncDrawableLoader asyncDrawableLoader = AsyncDrawableLoader.builder()
    .addSchemeHandler(jLatexMathMedia.schemeHandler())
    .mediaDecoders(jLatexMathMedia.mediaDecoder())
ru.noties.markwon.ilAsyncDrawableLoader

Most used methods

  • builder
  • <init>
  • execute

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Join (org.hibernate.mapping)
  • Best IntelliJ 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