By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.
According to this stack overflow answer the equivalent would be:
For UserVisibleHint = false
.getSupportFragmentManager() .beginTransaction() .setMaxLifecycle(fragment, Lifecycle.State.STARTED); For UserVisibleHint = true .getSupportFragmentManager() .beginTransaction() .setMaxLifecycle(fragment, Lifecycle.State.RESUMED);
For UserVisibleHint = true
.getSupportFragmentManager() .beginTransaction() .setMaxLifecycle(fragment, Lifecycle.State.RESUMED);