diff --git a/Versions.properties b/Versions.properties index f8e7a35..3c639db 100644 --- a/Versions.properties +++ b/Versions.properties @@ -1,7 +1,7 @@ # -#Thu Aug 13 08:20:06 PDT 2020 +#Thu Sep 03 08:20:40 PDT 2020 CodeNameOneBuildClientJar=105 -CodenameOne_SRCzip=140 -CodenameOneJar=140 -JavaSEJar=140 +CodenameOne_SRCzip=141 +CodenameOneJar=142 +JavaSEJar=142 CLDC11Jar=108 diff --git a/bin/webrtc.cn1lib b/bin/webrtc.cn1lib index 0ae2e44..28fded1 100644 Binary files a/bin/webrtc.cn1lib and b/bin/webrtc.cn1lib differ diff --git a/docs/javadoc/allclasses-frame.html b/docs/javadoc/allclasses-frame.html index d5ba2b0..74e9f20 100644 --- a/docs/javadoc/allclasses-frame.html +++ b/docs/javadoc/allclasses-frame.html @@ -2,9 +2,9 @@
- +public class WebRTCAccessor +extends Object+
Constructor and Description | +
---|
WebRTCAccessor() |
+
Modifier and Type | +Method and Description | +
---|---|
static PeerComponent |
+getInternal(BrowserComponent cmp) |
+
public static PeerComponent getInternal(BrowserComponent cmp)+
Class | +Description | +
---|---|
WebRTCAccessor | ++ |
audio, getDeviceId, getGroupId, getParent, setDeviceId, setGroupId, stream, video
+audio, deviceId, getDeviceId, getGroupId, getParent, setDeviceId, setGroupId, stream, video
ConstrainObject<T>
exact(T exact)
T
getExact()
T
getFallback()
T
getIdeal()
ConstrainObject.ConstrainValues<T>
getValues()
ConstrainObject<T>
ideal(T ideal)
void
setExact(T exact)
void
setFallback(T fallback)
void
setIdeal(T ideal)
void
setValues(ConstrainObject.ConstrainValues<T> values)
Object
toJSONStruct()
public ConstrainObject<T> exact(T exact)+
public ConstrainObject<T> ideal(T ideal)+
Modifier and Type | +Method and Description | +
---|---|
ConstrainString |
+exact(String str) |
+
getExact, getFallback, getIdeal, getValues, setExact, setFallback, setIdeal, setValues, toJSONStruct
getExact, getFallback, getIdeal, getValues, ideal, setExact, setFallback, setIdeal, setValues, toJSONStruct
public ConstrainString exact(String str)+
exact
in class ConstrainObject<String>
public interface ExecutorFunction
+Modifier and Type | +Method and Description | +
---|---|
void |
+call(Functor resolutionFunc,
+ Functor rejectionFunc) |
+
public interface Functor<T,V>
+Modifier and Type | +Method and Description | +
---|---|
V |
+call(T arg) |
+
audio, getDeviceId, getGroupId, getParent, setDeviceId, setGroupId, stream, toJSONStruct, video
+audio, deviceId, getDeviceId, getGroupId, getParent, setDeviceId, setGroupId, stream, toJSONStruct, video
public static enum MediaDeviceInfo.Kind +extends Enum<MediaDeviceInfo.Kind>+
Enum Constant and Description | +
---|
AudioInput |
+
AudioOutput |
+
VideoInput |
+
Modifier and Type | +Method and Description | +
---|---|
static MediaDeviceInfo.Kind |
+fromString(String str) |
+
String |
+toString() |
+
static MediaDeviceInfo.Kind |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static MediaDeviceInfo.Kind[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final MediaDeviceInfo.Kind VideoInput+
public static final MediaDeviceInfo.Kind AudioInput+
public static final MediaDeviceInfo.Kind AudioOutput+
public static MediaDeviceInfo.Kind[] values()+
+for (MediaDeviceInfo.Kind c : MediaDeviceInfo.Kind.values()) + System.out.println(c); +
public static MediaDeviceInfo.Kind valueOf(String name)+
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static MediaDeviceInfo.Kind fromString(String str)+
public String toString()+
toString
in class Enum<MediaDeviceInfo.Kind>
public interface MediaDeviceInfo
+Modifier and Type | +Interface and Description | +
---|---|
static class |
+MediaDeviceInfo.Kind |
+
Modifier and Type | +Method and Description | +
---|---|
String |
+getDeviceId() |
+
String |
+getGroupId() |
+
MediaDeviceInfo.Kind |
+getKind() |
+
String |
+getLabel() |
+
RTCPromise
Promise
applyConstraints(MediaTrackConstraints constraints)
RTCPromise applyConstraints(MediaTrackConstraints constraints)+
Promise applyConstraints(MediaTrackConstraints constraints)
Lets the application specify the ideal and/or ranges of acceptable values for any number of the available constrainable properties of the MediaStreamTrack.
MediaTrackConstraints
deviceId(ConstrainString deviceId)
ConstrainString
getDeviceId()
ConstrainString
getGroupId()
MediaStreamConstraints
getParent()
MediaStreamConstraints
object that this track constraints is associated with.void
setDeviceId(ConstrainString deviceId)
void
setGroupId(ConstrainString groupId)
MediaStreamConstraints
stream()
Object
toJSONStruct()
VideoTrackConstraints
video()
VideoTrackConstraints
that this constraints object is associated with.public MediaTrackConstraints deviceId(ConstrainString deviceId)+
public static enum Promise.State +extends Enum<Promise.State>+
Encapsulates the state of a Promise.
Enum Constant and Description | +
---|
Fulfilled
+the operation completed successfully.
+ |
+
Pending
+initial state, neither fulfilled nor rejected.
+ |
+
Rejected
+the operation failed.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static Promise.State |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static Promise.State[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final Promise.State Pending+
initial state, neither fulfilled nor rejected.
public static final Promise.State Fulfilled+
the operation completed successfully.
public static final Promise.State Rejected+
the operation failed.
public static Promise.State[] values()+
+for (Promise.State c : Promise.State.values()) + System.out.println(c); +
public static Promise.State valueOf(String name)+
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic class Promise<T> +extends Object+
An implementation of <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a> for +use with Codename One applications. Due to java reserved words, there are a few differences in this implementation:
+<ol> +<li>Instead of catch(), we use except()</li> +<li>Instead of finally(), we use always()</li> +</ol>
+<p>Since then(com.codename1.webrtc.Functor, com.codename1.webrtc.Functor)
, except(com.codename1.webrtc.Functor)
,
+and always(com.codename1.webrtc.Functor)
take Functors as parameters, which must have a return value, this implementation
+provides convenience wrappers onSuccess(com.codename1.util.SuccessCallback)
, onFail(com.codename1.util.SuccessCallback)
,
+and onComplete(com.codename1.util.SuccessCallback)
which take SuccessCallback
objects instead. For simple cases,
+these wrappers will be easier to use because you don’t need to return a dummy null at the end of the callback.</p>
<p>For more complex cases, where the return value of one Functor is meant to be piped into the subsequent Functor, then the Functor +variants should be used.</p>
Modifier and Type | +Class and Description | +
---|---|
static class |
+Promise.State
+Encapsulates the state of a Promise.
+ |
+
Constructor and Description | +
---|
Promise(ExecutorFunction executor)
+Creates a new promise with the given executor function.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static Promise |
+all(Promise... promises)
+The Promise.all() method takes an iterable of promises as an input, and returns a single Promise that resolves to an array of the results of the input promises.
+ |
+
static Promise |
+allSettled(Promise... promises)
+<p>
+The Promise.allSettled() method returns a promise that resolves after all
+of the given promises have either fulfilled or rejected, with an array of
+objects that each describes the outcome of each promise.</p>
+ |
+
Promise |
+always(Functor handlerFunc)
+Implementation of Promise.finally().
+ |
+
Promise |
+except(Functor<Throwable,?> rejectionFunc)
+Implementation of Promise.catch().
+ |
+
Promise.State |
+getState()
+Returns the current state of the promise.
+ |
+
T |
+getValue()
+Gets the return value once the promise is fulfilled.
+ |
+
Promise |
+onComplete(SuccessCallback handlerFunc)
+
+ |
+
Promise |
+onFail(SuccessCallback<Throwable> rejectionFunc)
+
+ |
+
Promise |
+onSuccess(SuccessCallback<T> resolutionFunc)
+
+ |
+
Promise |
+ready(SuccessCallback<T> resolutionFunc,
+ SuccessCallback<Throwable> rejectionFunc)
+A wrapper for
+then(com.codename1.webrtc.Functor, com.codename1.webrtc.Functor) that uses SuccessCallback
+instead of Functor . |
+
Promise |
+then(Functor<T,?> resolutionFunc) |
+
Promise |
+then(Functor<T,?> resolutionFunc,
+ Functor<Throwable,?> rejectionFunc)
+The then() method returns a Promise.
+ |
+
public Promise(ExecutorFunction executor)+
Creates a new promise with the given executor function. Works the same as Javascript equivalent.
executor
- The executor function. This is executed immediately, and should call either the passed resolve
+or reject functor to mark success or failure.public Promise ready(SuccessCallback<T> resolutionFunc, + SuccessCallback<Throwable> rejectionFunc)+
A wrapper for then(com.codename1.webrtc.Functor, com.codename1.webrtc.Functor)
that uses SuccessCallback
+instead of Functor
.
resolutionFunc
- rejectionFunc
- public Promise onSuccess(SuccessCallback<T> resolutionFunc)+
A wrapper for then(com.codename1.webrtc.Functor)
that uses SuccessCallback
instead
+of Functor
.
resolutionFunc
- Callback called when project is fulfilled.public Promise onFail(SuccessCallback<Throwable> rejectionFunc)+
A wrapper for except(com.codename1.webrtc.Functor)
that uses SuccessCallback
instead
+of Functor
.
rejectionFunc
- public Promise onComplete(SuccessCallback handlerFunc)+
A wrapper for always(com.codename1.webrtc.Functor)
that uses SuccessCallback
instead
+of Functor
.
handlerFunc
- public Promise then(Functor<T,?> resolutionFunc)+
resolutionFunc
- public Promise then(Functor<T,?> resolutionFunc, + Functor<Throwable,?> rejectionFunc)+
The then() method returns a Promise. It takes up to two arguments: callback functions for the success and failure cases of the Promise.
resolutionFunc
- A Function called if the Promise is fulfilled. This function has one argument, the fulfillment value. If it is null, it is internally replaced with an "Identity" function (it returns the received argument).rejectionFunc
- A Function called if the Promise is rejected. This function has one argument, the rejection reason. If it is null, it is internally replaced with a "Thrower" function (it throws an error it received as argument).public Promise except(Functor<Throwable,?> rejectionFunc)+
Implementation of Promise.catch(). Named "except" because of Java reserved word..
rejectionFunc
- Function called if promise is rejected.public Promise always(Functor handlerFunc)+
Implementation of Promise.finally(). Named "always" because of Java reserved word.
handlerFunc
- public T getValue()+
Gets the return value once the promise is fulfilled. If the promise isnt resolved, this just returns null.
public Promise.State getState()+
Returns the current state of the promise.
public static Promise all(Promise... promises)+
The Promise.all() method takes an iterable of promises as an input, and returns a single Promise that resolves to an array of the results of the input promises. This returned promise will resolve when all of the input’s promises have resolved, or if the input iterable contains no promises. It rejects immediately upon any of the input promises rejecting or non-promises throwing an error, and will reject with this first rejection message / error.
promises
- public static Promise allSettled(Promise... promises)+
<p> +The Promise.allSettled() method returns a promise that resolves after all +of the given promises have either fulfilled or rejected, with an array of +objects that each describes the outcome of each promise.</p>
+<p> +It is typically used when you have multiple asynchronous tasks that are +not dependent on one another to complete successfully, or you’d always +like to know the result of each promise.</p>
+<p> +In comparison, the Promise returned by Promise.all() may be more +appropriate if the tasks are dependent on each other / if you’d like to +immediately reject upon any of them rejecting.</p>
promises
- static RTCPromise
all(RTCPromise... promises)
-void
append(RTCElement el)
void
close()
RTCAudioElement
createAudio()
static AsyncResource<RTC>
createRTC()
static AsyncResource<RTC>
createRTC(String htmlBody,
String css)
RTCVideoElement
createVideo()
Promise<MediaDeviceInfo[]>
enumerateDevices()
RTCPromise<MediaStream>
static ConstrainString
exact(String val)
+ConstrainString
with exact value.Promise<MediaStream>
getUserMedia(MediaStreamConstraints constraints)
Component
getVideoComponent()
<T> RTCPromise<T>
newPromise(Class<T> type)
-static ConstrainString
ideal(String val)
+ConstrainString
with ideal value.RTCPeerConnection
newRTCPeerConnection(RTCConfiguration configuration)
static void
permissionCallback(String callbackId,
boolean audio,
@@ -374,22 +377,13 @@ close
-
+
-
-
newPromise
-public <T> RTCPromise<T> newPromise(Class<T> type)
-Creates a new promise.
-
-- Type Parameters:
-T
- The type that the promise resolves to.
-- Parameters:
-type
- The type that the promise resolves to.
-- Returns:
-- The prommise.
-
+enumerateDevices
+public Promise<MediaDeviceInfo[]> enumerateDevices()
@@ -398,7 +392,7 @@ newPromise
-
getUserMedia
-public RTCPromise<MediaStream> getUserMedia(MediaStreamConstraints constraints)
+public Promise<MediaStream> getUserMedia(MediaStreamConstraints constraints)
Obtain access to the device camera and/or microphone.
- Parameters:
@@ -471,19 +465,39 @@ newRTCPeerConnection
public RTCPeerConnection newRTCPeerConnection(RTCConfiguration configuration)
-
+
+
+
+
+-
+
exact
+public static ConstrainString exact(String val)
+Convenience method for creating a ConstrainString
with exact value.
+
+- Parameters:
+val
- The exact value to constrain to.
+- Returns:
+- The ConstrainString with provided exact value.
+- See Also:
+ConstrainString.exact(java.lang.String)
+
+
+
+
-
-
all
-public static RTCPromise all(RTCPromise... promises)
-Wraps a set of promises and returns a new promise that will resolve after all of the
-promises have resolved, or fails if any of the promises fails.
+ideal
+public static ConstrainString ideal(String val)
+Convenience method for creating a ConstrainString
with ideal value.
- Parameters:
-promises
-
+val
- The ideal value to constrain to.
- Returns:
+- The ConstrainString with provided ideal value.
+- See Also:
+ConstrainString#ideal(java.lang.String)
@@ -504,7 +518,7 @@ all
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCAnswerOptions.html b/docs/javadoc/com/codename1/webrtc/RTCAnswerOptions.html
index 7a50754..dbb7a1a 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCAnswerOptions.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCAnswerOptions.html
@@ -2,9 +2,9 @@
-
+
RTCAnswerOptions
-
+
@@ -32,7 +32,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -201,7 +201,7 @@ RTCAnswerOptions
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCAudioElement.html b/docs/javadoc/com/codename1/webrtc/RTCAudioElement.html
index 17ba1af..d4d934c 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCAudioElement.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCAudioElement.html
@@ -2,9 +2,9 @@
-
+
RTCAudioElement
-
+
@@ -32,7 +32,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -170,7 +170,7 @@ Methods inherited from interface com.codename1.webrtc.
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCCertificate.html b/docs/javadoc/com/codename1/webrtc/RTCCertificate.html
index 510170a..31d6ee8 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCCertificate.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCCertificate.html
@@ -2,9 +2,9 @@
-
+
RTCCertificate
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -187,7 +187,7 @@ getExpires
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCCertificates.html b/docs/javadoc/com/codename1/webrtc/RTCCertificates.html
index 78858dd..dc0cc55 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCCertificates.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCCertificates.html
@@ -2,9 +2,9 @@
-
+
RTCCertificates
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -249,7 +249,7 @@ toJSONStruct
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCBundlePolicy.html b/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCBundlePolicy.html
index 5680bc1..88eaac2 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCBundlePolicy.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCBundlePolicy.html
@@ -2,9 +2,9 @@
-
+
RTCConfiguration.RTCBundlePolicy
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -310,7 +310,7 @@ valueOf
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCIceTransportPolicy.html b/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCIceTransportPolicy.html
index b079c52..892cf7b 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCIceTransportPolicy.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCIceTransportPolicy.html
@@ -2,9 +2,9 @@
-
+
RTCConfiguration.RTCIceTransportPolicy
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -323,7 +323,7 @@ getStringValue
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCRtcpMuxPolicy.html b/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCRtcpMuxPolicy.html
index 924d03d..81226d0 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCRtcpMuxPolicy.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCConfiguration.RTCRtcpMuxPolicy.html
@@ -2,9 +2,9 @@
-
+
RTCConfiguration.RTCRtcpMuxPolicy
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -295,7 +295,7 @@ valueOf
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCConfiguration.html b/docs/javadoc/com/codename1/webrtc/RTCConfiguration.html
index 6f716f3..8bf0324 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCConfiguration.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCConfiguration.html
@@ -2,9 +2,9 @@
-
+
RTCConfiguration
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -548,7 +548,7 @@ toJSONStruct
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCDTMFSender.html b/docs/javadoc/com/codename1/webrtc/RTCDTMFSender.html
index 9c418f3..c545e7d 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCDTMFSender.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCDTMFSender.html
@@ -2,9 +2,9 @@
-
+
RTCDTMFSender
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -265,7 +265,7 @@ insertDTMF
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCDTMFToneChangeEvent.html b/docs/javadoc/com/codename1/webrtc/RTCDTMFToneChangeEvent.html
index 2a7222a..31c312f 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCDTMFToneChangeEvent.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCDTMFToneChangeEvent.html
@@ -2,9 +2,9 @@
-
+
RTCDTMFToneChangeEvent
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -189,7 +189,7 @@ getTone
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCDataChannel.RTCDataChannelState.html b/docs/javadoc/com/codename1/webrtc/RTCDataChannel.RTCDataChannelState.html
index 5a292a9..29954e8 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCDataChannel.RTCDataChannelState.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCDataChannel.RTCDataChannelState.html
@@ -2,9 +2,9 @@
-
+
RTCDataChannel.RTCDataChannelState
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -325,7 +325,7 @@ matches
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCDataChannel.html b/docs/javadoc/com/codename1/webrtc/RTCDataChannel.html
index cf9fbf0..78332a9 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCDataChannel.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCDataChannel.html
@@ -2,9 +2,9 @@
-
+
RTCDataChannel
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -640,7 +640,7 @@ send
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCDataChannelEvent.html b/docs/javadoc/com/codename1/webrtc/RTCDataChannelEvent.html
index bf6a25c..1eda9aa 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCDataChannelEvent.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCDataChannelEvent.html
@@ -2,9 +2,9 @@
-
+
RTCDataChannelEvent
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -172,7 +172,7 @@ getChannel
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCElement.html b/docs/javadoc/com/codename1/webrtc/RTCElement.html
index 9099092..ecb1610 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCElement.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCElement.html
@@ -2,9 +2,9 @@
-
+
RTCElement
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -251,7 +251,7 @@ applyStyle
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIceCandidate.html b/docs/javadoc/com/codename1/webrtc/RTCIceCandidate.html
index 2f9b6b9..9351a4c 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIceCandidate.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIceCandidate.html
@@ -2,9 +2,9 @@
-
+
RTCIceCandidate
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -470,7 +470,7 @@ toJSON
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIceCandidateInit.html b/docs/javadoc/com/codename1/webrtc/RTCIceCandidateInit.html
index d6c9145..efd1160 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIceCandidateInit.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIceCandidateInit.html
@@ -2,9 +2,9 @@
-
+
RTCIceCandidateInit
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -414,7 +414,7 @@ setSdpMLineIndex
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIceCandidatePair.html b/docs/javadoc/com/codename1/webrtc/RTCIceCandidatePair.html
index 26178aa..2e397b5 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIceCandidatePair.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIceCandidatePair.html
@@ -2,9 +2,9 @@
-
+
RTCIceCandidatePair
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -306,7 +306,7 @@ setRemote
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIceCandidates.html b/docs/javadoc/com/codename1/webrtc/RTCIceCandidates.html
index b40a14e..1eda252 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIceCandidates.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIceCandidates.html
@@ -2,9 +2,9 @@
-
+
RTCIceCandidates
-
+
@@ -32,7 +32,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -204,7 +204,7 @@ RTCIceCandidates
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIceCredentialType.html b/docs/javadoc/com/codename1/webrtc/RTCIceCredentialType.html
index 8fa096d..d46a633 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIceCredentialType.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIceCredentialType.html
@@ -2,9 +2,9 @@
-
+
RTCIceCredentialType
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -315,7 +315,7 @@ getStringValue
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIceParameters.html b/docs/javadoc/com/codename1/webrtc/RTCIceParameters.html
index 3b01e03..66dcc3e 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIceParameters.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIceParameters.html
@@ -2,9 +2,9 @@
-
+
RTCIceParameters
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -294,7 +294,7 @@ setPassword
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIceServer.html b/docs/javadoc/com/codename1/webrtc/RTCIceServer.html
index f4404a8..ec3c0bc 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIceServer.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIceServer.html
@@ -2,9 +2,9 @@
-
+
RTCIceServer
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -410,7 +410,7 @@ toJSONStruct
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIceServers.html b/docs/javadoc/com/codename1/webrtc/RTCIceServers.html
index 4bce8f5..1035f86 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIceServers.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIceServers.html
@@ -2,9 +2,9 @@
-
+
RTCIceServers
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -249,7 +249,7 @@ toJSONStruct
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIceTransport.html b/docs/javadoc/com/codename1/webrtc/RTCIceTransport.html
index 83bcaba..9336552 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIceTransport.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIceTransport.html
@@ -2,9 +2,9 @@
-
+
RTCIceTransport
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -382,7 +382,7 @@ getSelectedCandidatePair
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIdentityAssertion.html b/docs/javadoc/com/codename1/webrtc/RTCIdentityAssertion.html
index e594193..b0a44aa 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIdentityAssertion.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIdentityAssertion.html
@@ -2,9 +2,9 @@
-
+
RTCIdentityAssertion
-
+
@@ -32,7 +32,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -115,7 +115,7 @@ Interface RTCIdentityAs
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIdentityErrorEvent.html b/docs/javadoc/com/codename1/webrtc/RTCIdentityErrorEvent.html
index 3901cfb..4aa1fa4 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIdentityErrorEvent.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIdentityErrorEvent.html
@@ -2,9 +2,9 @@
-
+
RTCIdentityErrorEvent
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -202,7 +202,7 @@ getProtocol
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIdentityEvent.html b/docs/javadoc/com/codename1/webrtc/RTCIdentityEvent.html
index 2d143f3..a4371e8 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIdentityEvent.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIdentityEvent.html
@@ -2,9 +2,9 @@
-
+
RTCIdentityEvent
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -176,7 +176,7 @@ getAssertion
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIdentityProvider.html b/docs/javadoc/com/codename1/webrtc/RTCIdentityProvider.html
index 3bfdfbd..016fe21 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIdentityProvider.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIdentityProvider.html
@@ -2,9 +2,9 @@
-
+
RTCIdentityProvider
-
+
@@ -32,7 +32,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -110,7 +110,7 @@ Interface RTCIdentityPro
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCIdentityProviderRegistrar.html b/docs/javadoc/com/codename1/webrtc/RTCIdentityProviderRegistrar.html
index 460c391..4790d80 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCIdentityProviderRegistrar.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCIdentityProviderRegistrar.html
@@ -2,9 +2,9 @@
-
+
RTCIdentityProviderRegistrar
-
+
@@ -32,7 +32,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -110,7 +110,7 @@ Interface RTCId
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCList.html b/docs/javadoc/com/codename1/webrtc/RTCList.html
index b5f307c..7342d3e 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCList.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCList.html
@@ -2,9 +2,9 @@
-
+
RTCList
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -305,7 +305,7 @@ remove
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCMediaElement.CanPlay.html b/docs/javadoc/com/codename1/webrtc/RTCMediaElement.CanPlay.html
index bb71856..0e7aafa 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCMediaElement.CanPlay.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCMediaElement.CanPlay.html
@@ -2,9 +2,9 @@
-
+
RTCMediaElement.CanPlay
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -300,7 +300,7 @@ valueOf
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCMediaElement.NetworkState.html b/docs/javadoc/com/codename1/webrtc/RTCMediaElement.NetworkState.html
index 7839572..2706eff 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCMediaElement.NetworkState.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCMediaElement.NetworkState.html
@@ -2,9 +2,9 @@
-
+
RTCMediaElement.NetworkState
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -312,7 +312,7 @@ valueOf
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCMediaElement.Preload.html b/docs/javadoc/com/codename1/webrtc/RTCMediaElement.Preload.html
index 3aba198..4f9c0e9 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCMediaElement.Preload.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCMediaElement.Preload.html
@@ -2,9 +2,9 @@
-
+
RTCMediaElement.Preload
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -300,7 +300,7 @@ valueOf
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCMediaElement.ReadyState.html b/docs/javadoc/com/codename1/webrtc/RTCMediaElement.ReadyState.html
index ef9a500..daf6168 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCMediaElement.ReadyState.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCMediaElement.ReadyState.html
@@ -2,9 +2,9 @@
-
+
RTCMediaElement.ReadyState
-
+
@@ -38,7 +38,7 @@
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
@@ -324,7 +324,7 @@ valueOf
- Overview
-- Package
+- Package
- Class
- Tree
- Deprecated
diff --git a/docs/javadoc/com/codename1/webrtc/RTCMediaElement.html b/docs/javadoc/com/codename1/webrtc/RTCMediaElement.html
index 0f05a54..3b54bc3 100644
--- a/docs/javadoc/com/codename1/webrtc/RTCMediaElement.html
+++ b/docs/javadoc/com/codename1/webrtc/RTCMediaElement.html
@@ -2,9 +2,9 @@
-
+
RTCMediaElement
-
+
@@ -38,7 +38,7 @@
RTCPromise
Promise
play()
setMuted(boolean muted)
void
Promise
setSinkId(String sinkId)
RTCPromise play()+
Promise play()
RTCPromise
Promise
addIceCandidate(RTCIceCandidate candidate)
RTCPromise<RTCSessionDescription>
Promise<RTCSessionDescription>
createAnswer()
RTCPromise<RTCSessionDescription>
Promise<RTCSessionDescription>
createAnswer(RTCAnswerOptions options)
RTCPromise<RTCSessionDescription>
Promise<RTCSessionDescription>
createOffer(RTCPeerConnection.RTCOfferOptions options)
RTCPromise<RTCStatsReport>
Promise<RTCStatsReport>
getStats(MediaStreamTrack selector)
RTCPromise
Promise
setLocalDescription(RTCSessionDescription sessionDescription)
RTCPromise
Promise
setRemoteDescription(RTCSessionDescription sessionDescription)
RTCPromise addIceCandidate(RTCIceCandidate candidate)+
Promise addIceCandidate(RTCIceCandidate candidate)
When a web site or app using RTCPeerConnection receives a new ICE candidate from the remote peer over its signaling channel, it delivers the newly-received candidate to the browser’s ICE agent by calling @@ -1022,7 +1022,7 @@
RTCPromise<RTCSessionDescription> createAnswer()+
Promise<RTCSessionDescription> createAnswer()
The createAnswer() method on the RTCPeerConnection interface creates an SDP answer to an offer received from a remote peer during the offer/answer negotiation of a WebRTC connection. The answer contains @@ -1042,7 +1042,7 @@
RTCPromise<RTCSessionDescription> createAnswer(RTCAnswerOptions options)+
Promise<RTCSessionDescription> createAnswer(RTCAnswerOptions options)
The createAnswer() method on the RTCPeerConnection interface creates an SDP answer to an offer received from a remote peer during the offer/answer negotiation of a WebRTC connection. The answer contains @@ -1083,7 +1083,7 @@
RTCPromise<RTCSessionDescription> createOffer(RTCPeerConnection.RTCOfferOptions options)+
Promise<RTCSessionDescription> createOffer(RTCPeerConnection.RTCOfferOptions options)
The createOffer() method of the RTCPeerConnection interface initiates the creation of an SDP offer for the purpose of starting a new WebRTC connection to a remote peer.
RTCPromise<RTCStatsReport> getStats(MediaStreamTrack selector)+
Promise<RTCStatsReport> getStats(MediaStreamTrack selector)
The RTCPeerConnection method getStats() returns a promise which resolves with data providing statistics about either the overall connection or about the specified MediaStreamTrack.
RTCPromise setLocalDescription(RTCSessionDescription sessionDescription)+
Promise setLocalDescription(RTCSessionDescription sessionDescription)
The RTCPeerConnection method setLocalDescription() changes the local description associated with the connection. This description specifies the properties of the local end of the connection, including the media @@ -1265,7 +1265,7 @@
RTCPromise setRemoteDescription(RTCSessionDescription sessionDescription)+
Promise setRemoteDescription(RTCSessionDescription sessionDescription)
The RTCPeerConnection method setRemoteDescription() sets the specified session description as the remote peer’s current offer or answer. The description specifies the properties of the remote end of the connection, @@ -1294,7 +1294,7 @@
RTCPromise<RTCStatsReport>
Promise<RTCStatsReport>
getStats()
RTCPromise<RTCStatsReport> getStats()+
Promise<RTCStatsReport> getStats()
Returns a Promise whose fulfillment handler receives a RTCStatsReport which contains statistics about the incoming streams and their dependencies.
RTCPromise
Promise
replaceTrack(MediaStreamTrack newTrack)
RTCPromise
Promise
setParameters(RTCRtpSendParameters parameters)
RTCPromise setParameters(RTCRtpSendParameters parameters)+
Promise setParameters(RTCRtpSendParameters parameters)
Applies changes to parameters which configure how the track is encoded and transmitted to the remote peer.
RTCPromise replaceTrack(MediaStreamTrack newTrack)+
Promise replaceTrack(MediaStreamTrack newTrack)
Attempts to replace the track currently being sent by the RTCRtpSender with another track, without performing renegotiation. This method can be used, for example, to toggle between the front- and rear-facing cameras @@ -322,7 +322,7 @@
getExact, getFallback, getIdeal, getValues, setExact, setFallback, setIdeal, setValues, toJSONStruct
+exact, getExact, getFallback, getIdeal, getValues, ideal, setExact, setFallback, setIdeal, setValues, toJSONStruct
getExact, getFallback, getIdeal, getValues, setExact, setFallback, setIdeal, setValues, toJSONStruct
exact, getExact, getFallback, getIdeal, getValues, ideal, setExact, setFallback, setIdeal, setValues, toJSONStruct
audio, getDeviceId, getGroupId, getParent, setDeviceId, setGroupId, stream, toJSONStruct, video
audio, deviceId, getDeviceId, getGroupId, getParent, setDeviceId, setGroupId, stream, toJSONStruct, video
getExact, getFallback, getIdeal, getValues, setExact, setFallback, setIdeal, setValues, toJSONStruct
exact, getExact, getFallback, getIdeal, getValues, ideal, setExact, setFallback, setIdeal, setValues, toJSONStruct
getExact, getFallback, getIdeal, getValues, setExact, setFallback, setIdeal, setValues, toJSONStruct
exact, getExact, getFallback, getIdeal, getValues, ideal, setExact, setFallback, setIdeal, setValues, toJSONStruct
audio, getDeviceId, getGroupId, getParent, setDeviceId, setGroupId, stream, video
audio, deviceId, getDeviceId, getGroupId, getParent, setDeviceId, setGroupId, stream, video
public class Cordova +extends Object+
Constructor and Description | +
---|
Cordova(BrowserComponent webview) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+dispose() |
+
boolean |
+execute(String callbackId,
+ String action,
+ String jsonArgs,
+ CordovaCallback callback) |
+
void |
+pluginInitialize() |
+
public Cordova(BrowserComponent webview)+
public void pluginInitialize()+
public boolean execute(String callbackId, + String action, + String jsonArgs, + CordovaCallback callback) + throws IOException+
IOException
public void dispose()+
public class CordovaCallback +extends Object+
Constructor and Description | +
---|
CordovaCallback() |
+
CordovaCallback(ActionListener listener) |
+
Modifier and Type | +Method and Description | +
---|---|
Map |
+getResponse() |
+
boolean |
+isError() |
+
void |
+sendResult(Map json) |
+
public CordovaCallback()+
public CordovaCallback(ActionListener listener)+
public class CordovaCallbackManager +extends Object+
Constructor and Description | +
---|
CordovaCallbackManager() |
+
Modifier and Type | +Method and Description | +
---|---|
static void |
+sendResult(String callbackId,
+ boolean isSuccess,
+ int status,
+ String args,
+ boolean keepCallback) |
+
static void |
+setMethodCallback(String callbackId,
+ CordovaCallback cb) |
+
public interface CordovaNative +extends NativeInterface+
Modifier and Type | +Method and Description | +
---|---|
void |
+dispose() |
+
boolean |
+execute(String callbackId,
+ String action,
+ String jsonArgs) |
+
void |
+pluginInitialize(PeerComponent browserComponent) |
+
isSupported
public interface CordovaPlugin
+Interface for Cordova native plugins.
+<p>This is really a "single-method" interface, but two variants of the "execute" method are
+provided. Codename One will try #execute(java.lang.String, java.lang.String, com.codename1.util.Callback)
+first, and #execute(java.lang.String, java.util.List, com.codename1.util.Callback)
the action was unhandled.
+Typically you would only implement one of these methods, and just return <code>false</code> from the other.</p>
+<p>This API is meant to closely mirror the <a href="https://cordova.apache.org/docs/en/latest/guide/platforms/android/plugin.html">Cordova Android Plugin API</a>.</p>
+<p>For full instructions on devloping native Cordova Plugins in Codename One, see <a href="https://github.com/codenameone/CN1Cordova/wiki/Plugin-Development">the Plugin Development wiki page</a>.</p>
CordovaApplication#addPlugin(java.lang.String, com.codename1.cordova.CordovaPlugin)
,
+CordovaApplication#addGlobalPlugin(java.lang.String, com.codename1.cordova.CordovaPlugin)
Modifier and Type | +Method and Description | +
---|---|
void |
+dispose() |
+
boolean |
+execute(String callbackId,
+ String action,
+ List args,
+ Callback callback)
+Handles "exec" callback from cordova.
+ |
+
boolean |
+execute(String callbackId,
+ String action,
+ String jsonArgs,
+ Callback callback)
+Handles the "exec" callback from cordova.
+ |
+
boolean |
+isInitialized() |
+
void |
+pluginInitialize() |
+
boolean execute(String callbackId, + String action, + List args, + Callback callback)+
Handles "exec" callback from cordova. With this version, the "args" have +been pre-parsed into primitive (rather boxed) types: Doubles and Strings mostly.
action
- The name of the action to perform.args
- List of arguments passed to the action from cordova. Possible types include:
+<ul><li>String</li><li>Double</li><li>byte[]</li><li>Boolean</li></ul>callback
- The callback to fire when execution is complete. If the request is successful,
+the method should call the callback.onSuccess() method. If the request fails, it should call
+the callback.onError() method.boolean execute(String callbackId, + String action, + String jsonArgs, + Callback callback)+
Handles the "exec" callback from cordova. With this version, the "args" are still unparsed in JSON +format. This variant is provided when you would need to parse the JSON directly (e.g. when passing +to a native interface) and you don’t want to waste the performance on having CN1 also parse it first.
action
- The name of the action to perform.jsonArgs
- Arguments passed to the action from cordova encoded as a JSON string.callback
- The callback to fire when execution is complete. If the request is successful,
+the method should call the callback.onSuccess() method. If the request fails, it should call
+the callback.onError() method.void dispose()+
void pluginInitialize()+
boolean isInitialized()+
public static enum EmbeddedCordovaApplication.Result +extends Enum<EmbeddedCordovaApplication.Result>+
Result codes for passing back from Native to Javascript. These match +the cordova result codes in cordova.js.
Enum Constant and Description | +
---|
CLASS_NOT_FOUND_EXCEPTION |
+
ERROR |
+
ILLEGAL_ACCESS_EXCEPTION |
+
INSTANTIATION_EXCEPTION |
+
INVALID_ACTION |
+
IO_EXCEPTION |
+
JSON_EXCEPTION |
+
MALFORMED_URL_EXCEPTION |
+
NO_RESULT |
+
OK |
+
Modifier and Type | +Method and Description | +
---|---|
static EmbeddedCordovaApplication.Result |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static EmbeddedCordovaApplication.Result[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final EmbeddedCordovaApplication.Result NO_RESULT+
public static final EmbeddedCordovaApplication.Result OK+
public static final EmbeddedCordovaApplication.Result CLASS_NOT_FOUND_EXCEPTION+
public static final EmbeddedCordovaApplication.Result ILLEGAL_ACCESS_EXCEPTION+
public static final EmbeddedCordovaApplication.Result INSTANTIATION_EXCEPTION+
public static final EmbeddedCordovaApplication.Result MALFORMED_URL_EXCEPTION+
public static final EmbeddedCordovaApplication.Result IO_EXCEPTION+
public static final EmbeddedCordovaApplication.Result INVALID_ACTION+
public static final EmbeddedCordovaApplication.Result JSON_EXCEPTION+
public static final EmbeddedCordovaApplication.Result ERROR+
public static EmbeddedCordovaApplication.Result[] values()+
+for (EmbeddedCordovaApplication.Result c : EmbeddedCordovaApplication.Result.values()) + System.out.println(c); +
public static EmbeddedCordovaApplication.Result valueOf(String name)+
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic class EmbeddedCordovaApplication +extends Object+
Modifier and Type | +Class and Description | +
---|---|
static class |
+EmbeddedCordovaApplication.Result
+Result codes for passing back from Native to Javascript.
+ |
+
Constructor and Description | +
---|
EmbeddedCordovaApplication(BrowserComponent webview)
+Constructor.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static void |
+addGlobalPlugin(String service,
+ CordovaPlugin plugin)
+Registers a global plugin to be included in all CordovaApplication objects.
+ |
+
void |
+addPlugin(String service,
+ CordovaPlugin plugin)
+Registers a plugin for this app.
+ |
+
void |
+dispose() |
+
BrowserComponent |
+getWebview()
+Returns reference to the WebView.
+ |
+
protected void |
+onLoad()
+Event fired after the application is loaded.
+ |
+
protected void |
+onReady() |
+
void |
+pause()
+Fires the "pause" event to the cordova js layer.
+ |
+
void |
+resume()
+Fires the "resume" event to the cordova js layer.
+ |
+
public EmbeddedCordovaApplication(BrowserComponent webview)+
Constructor. Creates a new form with the a web view.
public void addPlugin(String service, + CordovaPlugin plugin)+
Registers a plugin for this app. Note: This is only required if the +plugin has a native component, as this registers the native callbacks +for the plugin.
service
- The name of the plugin. Should match the name used
+by the plugin in the javascript layer for communicating with it’s native
+counterpart.plugin
- The plugin to be registered.public void pause()+
Fires the "pause" event to the cordova js layer.
public void resume()+
Fires the "resume" event to the cordova js layer.
public static void addGlobalPlugin(String service, + CordovaPlugin plugin)+
Registers a global plugin to be included in all CordovaApplication objects. +This won’t affect existing objects. Only ones instantiated after this call.
service
- The name of the service that the plugin is registered to serve.plugin
- The plugin.protected void onLoad()+
Event fired after the application is loaded. Meant to be overridden by +subclasses.
protected void onReady()+
public BrowserComponent getWebview()+
Returns reference to the WebView.
public void dispose()+
public class IOSRTCPlugin +extends Object +implements CordovaPlugin+
Constructor and Description | +
---|
IOSRTCPlugin(BrowserComponent webview) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+dispose() |
+
boolean |
+execute(String callbackId,
+ String action,
+ List args,
+ Callback callback)
+Handles "exec" callback from cordova.
+ |
+
boolean |
+execute(String callbackId,
+ String action,
+ String jsonArgs,
+ Callback callback)
+Handles the "exec" callback from cordova.
+ |
+
boolean |
+isInitialized() |
+
void |
+pluginInitialize() |
+
public IOSRTCPlugin(BrowserComponent webview)+
public boolean execute(String callbackId, + String action, + List args, + Callback callback)+
CordovaPlugin
Handles "exec" callback from cordova. With this version, the "args" have +been pre-parsed into primitive (rather boxed) types: Doubles and Strings mostly.
execute
in interface CordovaPlugin
action
- The name of the action to perform.args
- List of arguments passed to the action from cordova. Possible types include:
+<ul><li>String</li><li>Double</li><li>byte[]</li><li>Boolean</li></ul>callback
- The callback to fire when execution is complete. If the request is successful,
+the method should call the callback.onSuccess() method. If the request fails, it should call
+the callback.onError() method.public boolean execute(String callbackId, + String action, + String jsonArgs, + Callback callback)+
CordovaPlugin
Handles the "exec" callback from cordova. With this version, the "args" are still unparsed in JSON +format. This variant is provided when you would need to parse the JSON directly (e.g. when passing +to a native interface) and you don’t want to waste the performance on having CN1 also parse it first.
execute
in interface CordovaPlugin
action
- The name of the action to perform.jsonArgs
- Arguments passed to the action from cordova encoded as a JSON string.callback
- The callback to fire when execution is complete. If the request is successful,
+the method should call the callback.onSuccess() method. If the request fails, it should call
+the callback.onError() method.public void dispose()+
dispose
in interface CordovaPlugin
public void pluginInitialize()+
pluginInitialize
in interface CordovaPlugin
public boolean isInitialized()+
isInitialized
in interface CordovaPlugin
Interface | +Description | +
---|---|
CordovaNative | ++ |
CordovaPlugin | +
+ Interface for Cordova native plugins.
+ |
+
Class | +Description | +
---|---|
Cordova | ++ |
CordovaCallback | ++ |
CordovaCallbackManager | ++ |
EmbeddedCordovaApplication | ++ |
IOSRTCPlugin | ++ |
Enum | +Description | +
---|---|
EmbeddedCordovaApplication.Result | +
+ Result codes for passing back from Native to Javascript.
+ |
+
<audio>
elements, as well as methods to manipulate them.RTCPeerConnection.createOffer(com.codename1.webrtc.RTCPeerConnection.RTCOfferOptions)
after receiving an offer from a remote peer.RTCPeerConnection
.RTCRtpReceiver.getContributingSources()
to provide information about a given contributing source (CSRC), including
the most recent time a packet that the source contributed was played out.RTCRtpContributingSource
objects.RTCRtpSender
.RTCRtpReceiver
objects.RTCRtpSender
objects.RTCRtpSender
when calling its RTCRtpSender.setParameters(com.codename1.webrtc.RTCRtpSendParameters)
method.RTCRtpSynchronizationSource
objects;RTCRtpTransceiver
objects.RTCElement
objects via its RTCElement.applyStyle(com.codename1.webrtc.RTCStyle)
method.TextTrack
objects.VideoTrack
objects.MediaStreamTrack
ConstrainString
with exact value.ConstrainString
with ideal value.Promise.always(com.codename1.webrtc.Functor)
that uses SuccessCallback
instead
+of Functor
.Promise.except(com.codename1.webrtc.Functor)
that uses SuccessCallback
instead
+of Functor
.Promise.then(com.codename1.webrtc.Functor)
that uses SuccessCallback
instead
+of Functor
.Promise.then(com.codename1.webrtc.Functor, com.codename1.webrtc.Functor)
that uses SuccessCallback
+instead of Functor
.RTCRtpTransceiver#setCodecPreferences(com.codename1.webrtc.RTCRtpCodecCapability…)
There are some static convenience methods in the {@link RTC} class for creating exact and ideal constraints.
* @author shannah
+ * @see RTC#exact(java.lang.String)
+ * @see RTC#ideal(java.lang.String)
*/
public class ConstrainString extends ConstrainObject Since {@link #then(com.codename1.webrtc.Functor, com.codename1.webrtc.Functor) }, {@link #except(com.codename1.webrtc.Functor) },
+ * and {@link #always(com.codename1.webrtc.Functor) } take Functors as parameters, which must have a return value, this implementation
+ * provides convenience wrappers {@link #onSuccess(com.codename1.util.SuccessCallback) }, {@link #onFail(com.codename1.util.SuccessCallback) },
+ * and {@link #onComplete(com.codename1.util.SuccessCallback) } which take {@link SuccessCallback} objects instead. For simple cases,
+ * these wrappers will be easier to use because you don't need to return a dummy {@literal null} at the end of the callback. For more complex cases, where the return value of one Functor is meant to be piped into the subsequent Functor, then the Functor
+ * variants should be used. Once a Promise is fulfilled or rejected, the respective handler function (resolutionFunc or rejectionFunc) will be called asynchronously (scheduled on the EDT). The behavior of the handler function follows a specific set of rules. If a handler function:
+ * The Promise.allSettled() method returns a promise that resolves after all
+ * of the given promises have either fulfilled or rejected, with an array of
+ * objects that each describes the outcome of each promise.
+ * It is typically used when you have multiple asynchronous tasks that are
+ * not dependent on one another to complete successfully, or you'd always
+ * like to know the result of each promise.
+ * In comparison, the Promise returned by Promise.all() may be more
+ * appropriate if the tasks are dependent on each other / if you'd like to
+ * immediately reject upon any of them rejecting.
+ *
+ *
+ *
+ *
+ *
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then
+ */
+ public Promise then(Functor