Skip to content

Coroutine support

Compare
Choose a tag to compare
@burhanrashid52 burhanrashid52 released this 17 Feb 15:01
· 31 commits to master since this release

New : Arrow shape
Change : (Breaking Change) minSdkVersion changed to 21
Change : (Breaking Change) Shape names are no longer UPPERCASE
New : Suspending functions for saving images: saveAsFile(String[, SaveSettings]) and saveAsBitmap([SaveSettings])

// Please note that if you call this from a fragment, you should call
// 'viewLifecycleOwner.lifecycleScope.launch' instead.
lifecycleScope.launch {
    val result = photoEditor.saveAsFile(filePath)
    if (result is SaveFileResult.Success) {
        showSnackbar("Image saved!")
    } else {
        showSnackbar("Couldn't save image")
    }
}

Fixed : #374 IndexOutOfBoundsException when saving bitmap