SelectionSpecBuilder { public SelectionSpecBuilder enableCapture(String fileProviderAuthorities) { mFileProviderAuthorities = fileProviderAuthorities; return this; } SelectionSpecBuilder(Laevatein laevatein, Set<MimeType> mimeType); SelectionSpecBuilder theme(@StyleRes int theme); SelectionSpecBuilder bindEachImageWith(int layoutId, int imageViewId, int checkBoxId, int spanCount); SelectionSpecBuilder counterView(@CounterViewResources.VIEW_POSITION int viewPosition, @StringRes int textId); SelectionSpecBuilder bindPreviewImageWith(int layoutId, int imageViewId); SelectionSpecBuilder count(int min, int max); SelectionSpecBuilder countUnder(ErrorViewResources.ViewType type, int errorMessageId); SelectionSpecBuilder countUnder(ErrorViewResources.ViewType type, int errorTitleId, int errorMessageId); SelectionSpecBuilder countOver(ErrorViewResources.ViewType type, int errorMessageId); SelectionSpecBuilder countOver(ErrorViewResources.ViewType type, int errorTitleId, int errorMessageId); SelectionSpecBuilder enableSelectedView(boolean enableSelectedView); SelectionSpecBuilder underQuality(ErrorViewResources.ViewType type, int errorMessageId); SelectionSpecBuilder underQuality(ErrorViewResources.ViewType type, int errorTitleId, int errorMessageId); SelectionSpecBuilder overQuality(ErrorViewResources.ViewType type, int errorMessageId); SelectionSpecBuilder overQuality(ErrorViewResources.ViewType type, int errorTitleId, int errorMessageId); SelectionSpecBuilder underSize(ErrorViewResources.ViewType type, int errorMessageId); SelectionSpecBuilder underSize(ErrorViewResources.ViewType type, int errorTitleId, int errorMessageId); SelectionSpecBuilder overSize(ErrorViewResources.ViewType type, int errorMessageId); SelectionSpecBuilder overSize(ErrorViewResources.ViewType type, int errorTitleId, int errorMessageId); SelectionSpecBuilder invalidType(ErrorViewResources.ViewType type, int errorMessageId); SelectionSpecBuilder invalidType(ErrorViewResources.ViewType type, int errorTitleId, int errorMessageId); SelectionSpecBuilder confirmDialog(int errorMessageId); SelectionSpecBuilder confirmDialog(int errorTitleId, int errorMessageId); SelectionSpecBuilder quality(int minPixel, int maxPixel); SelectionSpecBuilder size(int minWidth, int minHeight); SelectionSpecBuilder size(int minWidth, int minHeight, int maxWidth, int maxHeight); SelectionSpecBuilder albumId(String albumId); SelectionSpecBuilder photoSelectionActivityClass(Class<? extends PhotoSelectionActivity> photoSelectionActivityClass); SelectionSpecBuilder previewActivityClass(Class<? extends ImagePreviewActivity> previewActivityClass); SelectionSpecBuilder resume(List<Uri> uriList); SelectionSpecBuilder openDrawer(boolean open); SelectionSpecBuilder enableCapture(String fileProviderAuthorities); SelectionSpecBuilder disableCapture(); SelectionSpecBuilder restrictOrientation(int activityOrientation); void forResult(int requestCode); void forResultWithTransition(int requestCode, View view); static final String TAG; }
@Test public void enableCapture() throws Exception { mBuilder = mBuilder.enableCapture("com.test.authorities"); assertNotNull(mBuilder); mBuilder.forResult(MOCK_REQUEST_CODE); mLatch.await(); }