Skip to content

Commit

Permalink
chore: explain android captureScreenViews fallback (#9113)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Aug 8, 2024
1 parent c51a858 commit e64076a
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ PostHog autocapture automatically tracks the following events for you:

With [`captureScreenViews = true`](/docs/libraries/android#all-configuration-options), PostHog will try to record all screen changes automatically.

The `screenTitle` will be the [`<activity>`](https://developer.android.com/guide/topics/manifest/activity-element)'s `android:label`, if not set it'll fallback to the [`<application>`](https://developer.android.com/guide/topics/manifest/application-element)'s `android:label` or the [`<activity>`](https://developer.android.com/guide/topics/manifest/activity-element)'s `android:name`.

```xml
<activity
android:name="com.example.app.ChildActivity"
android:label="@string/title_child_activity"
...
</activity>
```

If you want to manually send a new screen capture event, use the `screen` function.

This function requires a `screenTitle`. You may also pass in an optional `properties` object.
Expand Down

0 comments on commit e64076a

Please sign in to comment.