AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.AsynchUtil Class Reference

Static Public Member Functions

static void runAsynchronously (final Runnable call)
 
static void runAsynchronously (final Handler androidUIHandler, final Runnable call, final Runnable callback)
 

Detailed Description

Utilities for handling asynchronous calls.

Author
markf.nosp@m.@goo.nosp@m.gle.c.nosp@m.om (Mark Friedman)

Definition at line 17 of file AsynchUtil.java.

Member Function Documentation

◆ runAsynchronously() [1/2]

static void com.google.appinventor.components.runtime.util.AsynchUtil.runAsynchronously ( final Handler  androidUIHandler,
final Runnable  call,
final Runnable  callback 
)
static

Make an asynchronous call in a separate thread, with a callback that's run on the current Android UI thread.

Parameters
androidUIHandlerthe Handler from the current Android context
calla Runnable to run in the thread.
callbacka Runnable to run in the Android UI thread when the call above returns

Definition at line 34 of file AsynchUtil.java.

◆ runAsynchronously() [2/2]

static void com.google.appinventor.components.runtime.util.AsynchUtil.runAsynchronously ( final Runnable  call)
static

Make an asynchronous call in a separate thread.

Parameters
calla Runnable to run in the thread.

Definition at line 23 of file AsynchUtil.java.


The documentation for this class was generated from the following file: