| Package | Description |
|---|---|
| com.codename1.impl |
The implementation package should not be used by developers, it is an internal implementation detail
which will break compatibility between major Codename One releases.
|
| com.codename1.io |
Networking, Storage, Filesystem & related API's
|
| com.codename1.media |
Video and Audio playback support are handled within this package using the
Media & MediaManager APIs. |
| com.codename1.social |
Connectors for native social network SDK's
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| com.codename1.ui.events |
Observable pattern event listeners in the spirit of AWT 1.1's event
dispatching architecture, all events are dispatched on the EDT (Event Dispatch Thread).
|
| com.codename1.util |
General utilities classes
|
| com.codename1.util.promise |
| Modifier and Type | Method and Description |
|---|---|
AsyncResource<Image> |
CodenameOneImplementation.captureBrowserScreenshot(PeerComponent browserPeer)
Captures a screenshot from a browser component asynchronously.
|
AsyncResource<Media> |
CodenameOneImplementation.createBackgroundMediaAsync(String uri)
Creates an audio media that can be played in the background.
|
AsyncResource<Media> |
CodenameOneImplementation.createMediaAsync(InputStream stream,
String mimeType,
Runnable onCompletion)
Creates media asynchronously.
|
AsyncResource<Media> |
CodenameOneImplementation.createMediaAsync(String uri,
boolean video,
Runnable onCompletion)
Creates media asynchronously.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Oauth2.RefreshTokenRequest |
| Modifier and Type | Method and Description |
|---|---|
AsyncResource<ConnectionRequest> |
NetworkManager.addToQueueAsync(ConnectionRequest request)
Identical to add to queue but returns an AsyncResource object that will resolve to
the ConnectionRequest.
|
static AsyncResource<Image> |
Util.downloadImageToCache(String url)
Downloads an image to the cache asynchronously.
|
AsyncResource<Image> |
ConnectionRequest.downloadImageToFileSystem(String file)
Downloads an image to a the file system asynchronously returning an AsyncResource object that resolves to the loaded image..
|
AsyncResource<Image> |
ConnectionRequest.downloadImageToFileSystem(String file,
boolean useCache)
Downloads an image to a the file system asynchronously returning an AsyncResource object that resolves to the loaded image..
|
static AsyncResource<Image> |
Util.downloadImageToFileSystem(String url,
String fileName)
Downloads an image to the file system asynchronously.
|
AsyncResource<Image> |
ConnectionRequest.downloadImageToStorage(String storageFile)
Downloads an image to a specified storage file asynchronously returning an AsyncResource that resolves to the resulting image..
|
AsyncResource<Image> |
ConnectionRequest.downloadImageToStorage(String storageFile,
boolean useCache)
Downloads an image to a specified storage file asynchronously returning an AsyncResource that resolves to the resulting image..
|
static AsyncResource<Image> |
Util.downloadImageToStorage(String url,
String fileName)
Downloads an image to storage asynchronously.
|
static AsyncResource<Map<String,Object>> |
ConnectionRequest.fetchJSONAsync(String url)
Fetches JSON asynchronously.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncMedia.PauseRequest
An async resource used to track the progress of a pauseAsync() request.
|
static class |
AsyncMedia.PlayRequest
An async resource used to track the progress of a playAsync() request.
|
| Modifier and Type | Method and Description |
|---|---|
static AsyncResource<Media> |
MediaManager.createBackgroundMediaAsync(String uri)
Creates an audio media asynchronously that can be played in the background.
|
static AsyncResource<Media> |
MediaManager.createMediaAsync(InputStream stream,
String mimeType,
Runnable onCompletion)
Creates the Media in the given stream asynchronously.
|
static AsyncResource<Media> |
MediaManager.createMediaAsync(String uri,
boolean isVideo,
Runnable onCompletion)
Creates a Media from a given URI asynchronously.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncResource<Login> |
Login.connect()
Connects to the login service asynchronously, automatically logging in
if not yet logged in.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
BrowserWindow.EvalRequest
A future that is returned from the eval() method.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncResource<Image> |
BrowserComponent.captureScreenshot()
Async method for capturing a screenshot of the browser content.
|
AsyncResource<Media> |
Display.createBackgroundMediaAsync(String uri)
Creates an audio media that can be played in the background.
|
AsyncResource<Media> |
Display.createMediaAsync(InputStream stream,
String mimeType,
Runnable onCompletion) |
AsyncResource<Media> |
Display.createMediaAsync(String uri,
boolean video,
Runnable onCompletion)
Creates media asynchronously.
|
AsyncResource<BrowserComponent> |
BrowserComponent.ready()
Returns a promise that will complete when the browser component is "ready".
|
AsyncResource<BrowserComponent> |
BrowserComponent.ready(int timeout)
Returns a promise that will complete when the browser component is "ready".
|
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageEvent.PromptPromise
Encapsulates a promise that should be fulfilled when implementingn a custom permissions
prompt to record or play audio.
|
| Modifier and Type | Method and Description |
|---|---|
static AsyncResource<Boolean> |
AsyncResource.all(AsyncResource<?>... resources)
Creates a single AsyncResource that will fire its ready() only when all of the provided resources
are ready.
|
static AsyncResource<Boolean> |
AsyncResource.all(Collection<AsyncResource<?>> resources)
Creates a single AsyncResource that will fire its ready() only when all of the provided resources
are ready.
|
AsyncResource<V> |
AsyncResource.except(SuccessCallback<Throwable> callback)
Sets callback to run if an error occurs.
|
AsyncResource<V> |
AsyncResource.except(SuccessCallback<Throwable> callback,
EasyThread t)
Sets callback to run if an error occurs.
|
AsyncResource<V> |
AsyncResource.ready(SuccessCallback<V> callback)
Runs the provided callback when the resource is ready.
|
AsyncResource<V> |
AsyncResource.ready(SuccessCallback<V> callback,
EasyThread t)
Runs the provided callback when the resource is ready.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncResource.addListener(AsyncResource<V> resource)
Adds another AsyncResource as a listener to this async resource.
|
static AsyncResource<Boolean> |
AsyncResource.all(AsyncResource<?>... resources)
Creates a single AsyncResource that will fire its ready() only when all of the provided resources
are ready.
|
static void |
AsyncResource.await(AsyncResource<?>... resources)
Waits for a set of AsyncResources to be complete.
|
| Modifier and Type | Method and Description |
|---|---|
static AsyncResource<Boolean> |
AsyncResource.all(Collection<AsyncResource<?>> resources)
Creates a single AsyncResource that will fire its ready() only when all of the provided resources
are ready.
|
static void |
AsyncResource.await(Collection<AsyncResource<?>> resources)
Waits for a set of AsyncResources to be complete.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncResource<T> |
Promise.asAsyncResource() |
| Modifier and Type | Method and Description |
|---|---|
static <V> Promise<V> |
Promise.promisify(AsyncResource<V> res) |
Copyright © 2021. All rights reserved.