code: public static void startActivity(@NonNull Activity activity, int requestCode,
                                       @IntRange(from = 0) int maxSelection,
                                       List<Uri> selection,
                                       String... mediaTypeFilter) {
          Intent intent = buildIntent(activity, maxSelection, selection, mediaTypeFilter);
          activity.startActivityForResult(intent, requestCode);
      }
docs: Start the Gallery Activity with additional launch information.
  
  @param activity        Context to launch activity from.
  @param requestCode     If >= 0, this code will be returned in onActivityResult() when the activity exits.
  @param maxSelection    The max count of image selection
  @param selection       The current image selection
  @param mediaTypeFilter The media types that will display