antwankakki / FabricView

A new canvas drawing library for Android. Aims to be the Fabric.js for Android. Supports text, images, and hand/stylus drawing input. The library has a website and API docs, check it out
http://antwankakki.github.io/FabricView/
Apache License 2.0
1.04k stars 183 forks source link

Method to check if FabricView is changed by user #10

Closed ghost closed 7 years ago

ghost commented 9 years ago

There should be a method to check if FabricView is changed by user, this can be used to drive menu and other UI logics (eg: warn user there is can before they want to close activity to prompt them to save change)

antwankakki commented 9 years ago

Good idea! How about an onCanvasChanged method that has an event object telling you the part of the canvas that was changed and whether or not it came from the user

emmanuelproulx commented 7 years ago

Now we have function isSaved() and markSaved() for this purpose.