Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor launcher #342

Merged
merged 3 commits into from Mar 14, 2021
Merged

Refactor launcher #342

merged 3 commits into from Mar 14, 2021

Conversation

esafirm
Copy link
Owner

@esafirm esafirm commented Mar 14, 2021

Make ImagePickerLauncher a class instead a function/lambda

This also makes a unified launcher for the camera only and image picker

Ex:

val launcher = registerImagePicker {
  // handler result here
}

// Call image picker
launcher.launch()

// Call with custom config
launcher.launch(ImagePickerConfig { 
  doneButtonText = "Selesai"
})

// Call camera only
launcher.launch(CameraOnlyConfig())

@esafirm esafirm merged commit a09344f into main Mar 14, 2021
@esafirm esafirm deleted the new_api branch March 14, 2021 13:32
india2sarthak pushed a commit to india2sarthak/android-image-picker that referenced this pull request Sep 1, 2023
* Refactor launcher

* sample now use view binding

* fix test compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant