[RN] Detect errors when loading the configuration

The error is stored in the redux store in base/config so other components can
consult it. It is also broadcasted as a new event in the external API for the
SDK.
This commit is contained in:
Saúl Ibarra Corretgé
2017-09-06 16:31:14 -05:00
committed by Lyubo Marinov
parent 1d8ee9d32f
commit 284e4e543e
9 changed files with 78 additions and 3 deletions
+6
View File
@@ -241,3 +241,9 @@ The `data` HashMap contains a "url" key with the conference URL.
Called before a conference is left.
The `data` HashMap contains a "url" key with the conference URL.
#### onLoadConfigError
Called when loading the main configuration fails.
The `data` HashMap contains a "error" key with the error.
@@ -57,4 +57,11 @@ public abstract class JitsiMeetViewAdapter implements JitsiMeetViewListener {
@Override
public void onConferenceWillLeave(Map<String, Object> data) {
}
/**
* {@inheritDoc}
*/
@Override
public void onLoadConfigError(Map<String, Object> data) {
}
}
@@ -58,4 +58,11 @@ public interface JitsiMeetViewListener {
* @param data - Map with a "url" key with the conference URL.
*/
void onConferenceWillLeave(Map<String, Object> data);
/**
* Called when loading the main configuration fails.
*
* @param data - Map with a "error" key with the error.
*/
void onLoadConfigError(Map<String, Object> data);
}