private void initializeIntentBottomSheet ( ) { BottomSheet . Builder builder = createBottomSheetBuilder ( ) ; Intent intent = new Intent ( ) ; intent . setAction ( Intent . ACTION_SEND ) ; intent . putExtra ( Intent . EXTRA_TEXT , "This is my text to send." ) ; intent . setType ( "text/plain" ) ; builder . setIntent ( getActivity ( ) , intent ) ; intentBottomSheet = builder . create ( ) ; }
Initializes the bottom sheet containing possible receivers for an intent .