For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set Private View

API reference for marking private views in Luciq. Designate UI elements that should not be captured in screenshots or session replays.

You can use this API to set any particular view as private so that it is always hidden in screenshots.

view.luciq_privateView = true
view.luciq_privateView = YES;
//Should be added in the activity with the view, takes any number of views
Luciq.addPrivateViews(view1, view2, view3);
//Should be added in the activity with the view, takes any number of views
Luciq.addPrivateViews(view1, view2, view3)
//Add the following tag to the view you'd like to hide
<Text ref={c => this.textView = c} style={styles.welcome}>This is a private view!</Text>

//Then call the following API
Luciq.setPrivateView(this.textView);

You can also remove a view from the list of private views using this API.

//Should be added in the activity with the view, takes any number of views
Luciq.removePrivateViews(view1, view2, view3);
//Should be added in the activity with the view, takes any number of views
Luciq.removePrivateViews(view1, view2, view3)

Last updated