Closed skydoves closed 3 years ago
Thanks @skydoves for the PR. Sorry for the late answer, I should have pinged you earlier.
I'm now using the kotlin.Result
type as return types for nearly all methods. It offers better result handling methods than what I've had so far. As of that change, I have to close your PR as it's not usable anymore with the new method signatures
Description
In many cases, we may use
getResourceByUri()
like this:I think it could be a little bit more convenient with new functions instead of using scope functions every time.
What's the difference?
Added two functions that receive a lambda that has a
MediaResource
as a receiver.Before
After
I think the function names are not the best choices. So If have any better ideas, hope to give me feedback. Thank you! 😃