To close the BottomSheetDialogFragment from inside the fragment you can call:
dismiss();
To show or hide the BottomSheetDialogFragment from the activity you can simply call:
bottomSheetDialogFragment.dismiss();//to hide it
bottomSheetDialogFragment.show(getSupportFragmentManager(),tag);// to show it