Capture Recording
The SDK captures a recording when your user shakes the device or takes a screenshot - actions considered as triggers. You can extend this capability by incorporating your own additional triggers.
For instance, you might want to capture a recording when your user presses a button in your app or completes a specific sequence.
However you capture the recording, the SDK user interface will always appear to let your users review the footage, edit and submit.
Select a Trigger and Capture Recording
Decide from what event you want to capture the video, for example a button press. We will call this the trigger. This very simple example shows a possible trigger - when
onButtonClick
is called inside a Jetpack Compose app.KotlinMake sure you are capturing a reference to the output of
FlightRecorderSdk
when you initialize the SDK.KotlinJavaChoose an approach to access the
flightRecorder
variable from the trigger in your code. You could choose create a class to holdflightRecorder
and access it statically.Call
triggerCaptureRecording
at the moment you want to capture the video inside the trigger.KotlinJavaThe surveyName is an optional parameter. So potentially you could show different in-app survey at different trigger. If none is given, then it will show the default form. In our Kotlin Jetpack Compose example, we call the method from the onButtonClick function:
Kotlin
Last updated