ParkSangGwon / TedImagePicker

TedImagePicker is simple/beautiful/smart image picker
552 stars 103 forks source link

Allow custom functionality on the TedImagePickerActivity by opening some classes and functions #95

Open arqlz opened 3 years ago

arqlz commented 3 years ago

For some applications the default camera intent is not functional enough, those projects, will need extra control on the camera (image recognition, video annotation, resolution adjustments, filtering, etc), so while adding custom buttons for TedImagePicker can be a reasonable solution a middle term (a way to add tiles to the gallery), another solution can be to allow the extension of the already built clases, witch can be a faster way to solve this issue.

How can this be done?:

  1. By overriding the TedImagePicker.Bundle, then adding a new function getIntent(context) that will return the custom intent discussed on point 2
  2. A custom TedImagePickerActivity with an open function onCameraTileClick that will allow the call of a custom camera activity
  3. The override of the onActivityResult to get the images, and then call loadMedia(true) and onMediaClick(uri) to notify the base Gallery activity