Skip to content

Commit 8abdbe5

Browse files
Update Android documentation to choose DevRev theme or system theme preference
1 parent b5e78d6 commit 8abdbe5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

fern/docs/pages/sdks/mobile/android/features.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,24 @@ For example:
253253
</Tab>
254254
</Tabs>
255255

256+
## Dynamic theme configuration
257+
258+
The DevRev SDK allows you to configure the theme dynamically based on the system appearance, or use the theme configured on the DevRev portal. By default, the theme will be dynamic and follow the system appearance.
259+
260+
<Tabs>
261+
<Tab title="Kotlin">
262+
```kotlin
263+
DevRev.setShouldPreferSystemTheme(value: Boolean)
264+
```
265+
</Tab>
266+
<Tab title="Java">
267+
```java
268+
DevRev.INSTANCE.setShouldPreferSystemTheme(boolean value);
269+
```
270+
</Tab>
271+
</Tabs>
272+
273+
256274
## Analytics
257275

258276
The DevRev SDK allows you to send custom analytic events by using a name and a string dictionary. You can track these events using the following function:

0 commit comments

Comments
 (0)