We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d610250 commit 94d60b9Copy full SHA for 94d60b9
android-sdk/src/main/java/com/optimizely/ab/android/sdk/OptimizelyClientEngine.java
@@ -24,8 +24,17 @@
24
25
import com.optimizely.ab.event.internal.payload.Event;
26
27
+/**
28
+ * This class manages client engine value of the Event depending on current mode of UI.
29
+ */
30
public class OptimizelyClientEngine {
31
32
+ /**
33
+ * Get client engine value for current UI mode type
34
+ *
35
+ * @param context any valid Android {@link Context}
36
+ * @return String value of client engine
37
38
@VisibleForTesting
39
public static Event.ClientEngine getClientEngineFromContext(@NonNull Context context) {
40
UiModeManager uiModeManager = (UiModeManager) context.getSystemService(Context.UI_MODE_SERVICE);
0 commit comments