You can use this API to set any particular view as private so that it is always hidden in screenshots.
view.instabug_privateView = true
view.instabug_privateView = YES;
//Should be added in the onCreate after the superclass call
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);