public static DirectoryChooserFragment newInstance(@NonNull final DirectoryChooserConfig config) {
        final DirectoryChooserFragment fragment = new DirectoryChooserFragment();
        final Bundle args = new Bundle();
        args.putParcelable(ARG_CONFIG, config);
        fragment.setArguments(args);
        return fragment;
    }
public static DirectoryChooserFragment newInstance(@NonNull final DirectoryChooserConfig config) {
        final DirectoryChooserFragment fragment = new DirectoryChooserFragment();
        final Bundle args = new Bundle();
        args.putParcelable(ARG_CONFIG, config);
        fragment.setArguments(args);
        return fragment;
    }
public static DirectoryChooserFragment newInstance ( @ NonNull final DirectoryChooserConfig config ) { final DirectoryChooserFragment fragment = new DirectoryChooserFragment ( ) ; final Bundle args = new Bundle ( ) ; args . putParcelable ( ARG_CONFIG , config ) ; fragment . setArguments ( args ) ; return fragment ; }
To create the config, make use of the provided
{@link DirectoryChooserConfig#builder()}.

@return A new instance of DirectoryChooserFragment.
To create the config make use of the provided { @link DirectoryChooserConfig#builder () } .