|
@@ -22,7 +22,9 @@ import android.support.annotation.NonNull;
|
22
|
22
|
import android.support.annotation.Nullable;
|
23
|
23
|
import android.util.Log;
|
24
|
24
|
|
|
25
|
+import com.facebook.react.bridge.Arguments;
|
25
|
26
|
import com.facebook.react.bridge.ReadableMap;
|
|
27
|
+import com.facebook.react.bridge.WritableMap;
|
26
|
28
|
|
27
|
29
|
import java.lang.reflect.Method;
|
28
|
30
|
import java.net.URL;
|
|
@@ -69,6 +71,11 @@ public class JitsiMeetView
|
69
|
71
|
return loaded;
|
70
|
72
|
}
|
71
|
73
|
|
|
74
|
+ /**
|
|
75
|
+ * A color scheme object to override the default color is the SDK.
|
|
76
|
+ */
|
|
77
|
+ private WritableMap colorScheme;
|
|
78
|
+
|
72
|
79
|
/**
|
73
|
80
|
* The default base {@code URL} used to join a conference when a partial URL
|
74
|
81
|
* (e.g. a room name only) is specified to {@link #loadURLString(String)} or
|
|
@@ -130,6 +137,15 @@ public class JitsiMeetView
|
130
|
137
|
}
|
131
|
138
|
}
|
132
|
139
|
|
|
140
|
+ /**
|
|
141
|
+ * Gets the color scheme used in the SDK.
|
|
142
|
+ *
|
|
143
|
+ * @return The color scheme map.
|
|
144
|
+ */
|
|
145
|
+ public WritableMap getColorScheme() {
|
|
146
|
+ return colorScheme;
|
|
147
|
+ }
|
|
148
|
+
|
133
|
149
|
/**
|
134
|
150
|
* Gets the default base {@code URL} used to join a conference when a
|
135
|
151
|
* partial URL (e.g. a room name only) is specified to
|
|
@@ -208,6 +224,11 @@ public class JitsiMeetView
|
208
|
224
|
public void loadURLObject(@Nullable Bundle urlObject) {
|
209
|
225
|
Bundle props = new Bundle();
|
210
|
226
|
|
|
227
|
+ // color scheme
|
|
228
|
+ if (colorScheme != null) {
|
|
229
|
+ props.putBundle("colorScheme", Arguments.toBundle(colorScheme));
|
|
230
|
+ }
|
|
231
|
+
|
211
|
232
|
// defaultURL
|
212
|
233
|
if (defaultURL != null) {
|
213
|
234
|
props.putString("defaultURL", defaultURL.toString());
|
|
@@ -305,6 +326,15 @@ public class JitsiMeetView
|
305
|
326
|
onExternalAPIEvent(LISTENER_METHODS, name, data);
|
306
|
327
|
}
|
307
|
328
|
|
|
329
|
+ /**
|
|
330
|
+ * Sets the color scheme to override the default colors of the SDK.
|
|
331
|
+ *
|
|
332
|
+ * @param colorScheme The color scheme map.
|
|
333
|
+ */
|
|
334
|
+ public void setColorScheme(WritableMap colorScheme) {
|
|
335
|
+ this.colorScheme = colorScheme;
|
|
336
|
+ }
|
|
337
|
+
|
308
|
338
|
/**
|
309
|
339
|
* Sets the default base {@code URL} used to join a conference when a
|
310
|
340
|
* partial URL (e.g. a room name only) is specified to
|