Skip to content

inlacou/DrawOverImage

Repository files navigation

DrawOverImage

Usage example

In kotlin:

fun editImage(toEditImagePath: String){
  PictureDrawEditorAct.navigateForResult(this@ExampleActivity, REQUEST_CODE_EDIT, PictureDrawEditorMdl(toEditImagePath, isUiHideable = true, showForwardButton = true))
}

protected override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
  super.onActivityResult(requestCode, resultCode, data)
  if(requestCode==REQUEST_CODE_EDIT && resultCode==Activity.RESULT_OK && data!=null && data.hasExtra(PictureDrawEditorAct.RESULT_FILE_ABSOLUTE_PATH)){
    val path = data.getStringExtra(PictureDrawEditorAct.RESULT_FILE_ABSOLUTE_PATH)
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published