Going dark
In some rare cases you might want to conceal the whole screen and stop recording events completely. The following APIs will come in handy, no data is being gathered between the calls to pause and resume.
// To stop video recording use
Bugsee.pause();
// And to continue
Bugsee.resume();
Protecting by coordinates
Bugsee allows hiding screen area by absolute coordinates as well. Notice that iOS and Android approaches to hiding specific area differ a bit.
// Values are: X, Y, Width, Height
Bugsee.addSecureRect(10, 10, 400, 600);
You also need to be aware of the orientation that can be changed while the app is running. Recreate rectangle after orientation change, if 'black box' on video does not cover all secure fields and elements.
Other methods of secure rectangles:
// Remove rect
Bugsee.removeSecureRect(10, 10, 100, 100);
// Get all rectangles
const rectangles = await Bugsee.getAllSecureRects();
// Remove all rectangles
Bugsee.removeAllSecureRects();
Hiding keyboard (iOS only)
In some cases you might want to prevent the keyboard from being captured on video (as well as touches). You can use the following method to achieve the desired effect.
// To let us capture keyboard
Bugsee.setKeyboardVisibility(true);
// To prevent keyboard from being captured
Bugsee.setKeyboardVisibility(false);