| Package | Description |
|---|---|
| com.codename1.ads |
A legacy banner Ads API.
|
| com.codename1.analytics |
The analytics API allows tracking your mobile application usage in the field to give you real-time
data on how your application is used.
|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| 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.io.gzip |
gzip support based on https://github.com/ymnk/jzlib
|
| com.codename1.io.rest |
Simplified REST API
|
| com.codename1.io.services |
Default WebService implementations
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| com.codename1.ui.html |
This package is deprecated and used only for legacy support, use the WebBrowser component
from the components package.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AdsService
This is an abstract Ads Service.
|
class |
InnerActive
This is an Ad service implementation by InnerActive see:
http://console.inner-active.com/iamp/publisher/register?ref_id=affiliate_CodenameOne
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AnalyticsService.decorateVisitPageRequest(String page,
String referer,
ConnectionRequest request)
Decorates the ConnectionRequest to be sent to the server before the request is sent.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SliderBridge.bindProgress(ConnectionRequest[] sources,
Slider s)
Allows binding progress to an arbitrary slider
|
static void |
SliderBridge.bindProgress(ConnectionRequest source,
Slider s)
Allows binding progress to an arbitrary slider
|
static void |
ToastBar.showConnectionProgress(String message,
ConnectionRequest cr,
SuccessCallback<NetworkEvent> onSuccess,
FailureCallback<NetworkEvent> onError) |
| Constructor and Description |
|---|
Progress(String title,
ConnectionRequest request)
Binds the progress UI to the completion of this request
|
Progress(String title,
ConnectionRequest request,
boolean showPercentage)
Binds the progress UI to the completion of this request
|
SliderBridge(ConnectionRequest source)
Displays progress only for the source object, every other object in the queue
before completion will produce an infinite progress.
|
SliderBridge(ConnectionRequest[] sources)
Allows displaying progress of multiple requests being sent
|
| Modifier and Type | Method and Description |
|---|---|
protected ConnectionRequest |
VServAds.createAdRequest()
Creates a new request for an ad
|
protected abstract ConnectionRequest |
FullScreenAdService.createAdRequest()
Creates a new request for an ad
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodenameOneImplementation.addConnectionToQueue(ConnectionRequest req)
This method is called by the NetworkManager when a request is added to the queue.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MultipartRequest
A multipart post request allows a developer to submit large binary data
files to the server in a multipart mime post request.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionRequest |
NetworkEvent.getConnectionRequest()
Equivalent to getSource() casted to connection request
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NetworkManager.addToQueue(ConnectionRequest request)
Adds the given network connection to the queue of execution
|
void |
NetworkManager.addToQueueAndWait(ConnectionRequest request)
Identical to add to queue but waits until the request is processed in the queue,
this is useful for completely synchronous operations.
|
AsyncResource<ConnectionRequest> |
NetworkManager.addToQueueAsync(ConnectionRequest request)
Identical to add to queue but returns an AsyncResource object that will resolve to
the ConnectionRequest.
|
void |
NetworkManager.killAndWait(ConnectionRequest request)
Kills the given request and waits until the request is killed if it is
being processed by one of the threads.
|
| Constructor and Description |
|---|
NetworkEvent(ConnectionRequest source,
Exception error)
Constructs an event for an error message
|
NetworkEvent(ConnectionRequest request,
int progressType)
Constructs a network status update event used to update progress indicators
and application logic of the current state in the NetworkManager
|
NetworkEvent(ConnectionRequest request,
int responseCode,
String message)
Constructs a response code even
|
NetworkEvent(ConnectionRequest request,
Object metaData)
Constructs a callback event from a connection request with some arbitrary associated meta data
|
| Modifier and Type | Class and Description |
|---|---|
class |
GZConnectionRequest
A connection request that can detect a GZipped response, parse it automatically and unzip it.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionRequest |
RequestBuilder.fetchAsBytes(OnComplete<Response<byte[]>> callback)
Executes the request asynchronously and writes the response to the provided
Callback
|
ConnectionRequest |
RequestBuilder.fetchAsJsonMap(OnComplete<Response<Map>> callback)
Executes the request asynchronously and writes the response to the provided
Callback
|
ConnectionRequest |
RequestBuilder.fetchAsProperties(OnComplete<Response<PropertyBusinessObject>> callback,
Class type)
Executes the request asynchronously and writes the response to the provided
Callback.
|
ConnectionRequest |
RequestBuilder.fetchAsPropertyList(OnComplete<Response<List<PropertyBusinessObject>>> callback,
Class type)
Executes the request asynchronously and writes the response to the provided
Callback.
|
ConnectionRequest |
RequestBuilder.fetchAsPropertyList(OnComplete<Response<List<PropertyBusinessObject>>> callback,
Class type,
String root)
Executes the request asynchronously and writes the response to the provided
Callback.
|
ConnectionRequest |
RequestBuilder.fetchAsString(OnComplete<Response<String>> callback)
Executes the request asynchronously and writes the response to the provided
Callback
|
ConnectionRequest |
RequestBuilder.getAsJsonMap(SuccessCallback<Response<Map>> callback)
Deprecated.
|
ConnectionRequest |
RequestBuilder.getAsJsonMap(SuccessCallback<Response<Map>> callback,
FailureCallback<? extends Object> onError)
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CachedDataService
Simple service that allows downloading and caching data locally.
|
class |
ImageDownloadService
Deprecated.
this class uses an unconventional storage mechanism and has many issues, we recommend
replacing it with the simpler and more powerful URLImage or Util.dowloadFileTo* calls.
|
class |
RSSService
Simple RSS read and parse request, to handle errors just subclass this and override
parsingError.
|
class |
TwitterRESTService
Calls to the Twitter REST API can be performed via this class although currently
support for authentication isn't implemented due to the transition to oAuth instead
of basic authentication.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
CN.addToQueue(ConnectionRequest request)
Adds the given network connection to the queue of execution
|
static void |
CN.addToQueueAndWait(ConnectionRequest request)
Identical to add to queue but waits until the request is processed in the queue,
this is useful for completely synchronous operations.
|
static void |
CN.killAndWait(ConnectionRequest request)
Kills the given request and waits until the request is killed if it is
being processed by one of the threads.
|
| Modifier and Type | Method and Description |
|---|---|
protected ConnectionRequest |
AsyncDocumentRequestHandlerImpl.createConnectionRequest(DocumentInfo docInfo,
IOCallback callback,
Object[] response) |
Copyright © 2021. All rights reserved.