Events
You can take certain actions based on events and triggers.
Get notified of events fired from ToolManager in Xamarin.Android
The ToolManager exposes a number of events to allow a subscriber to be notified of events fired from the tools package. There are a number of methods that allow you to modify the behaviour of the tools themselves. The methods discussed here are simple notifications, so that the app may coordinate as necessary.
See all event APIs here: ToolManager events.
Get notified on touch events
Example: LongPress, SingleTapConfirmed etc.
Get notified on annotation events
Example: InterceptAnnotationHandling
Get notified on annotation modification events
Example: AnnotationsAdded, AnnotationsModified, AnnotationsRemoved etc.
Get notified on quick menu events
Example: QuickMenuClicked
Get notified on tool changed event
Get notified of events fired from ToolManager in Xamarin.iOS
The ToolManager'sToolManagerDelegate exposes a number of delegate methods to allow a subscriber to be notified of events that are managed by the tools framework. There are a number of methods that allow you to modify the behaviour of the tools themselves. The methods discussed here are simple notifications, so that the app may coordinate as necessary.
-toolManagerToolChanged:This method is called when the tool changes, for example changing the "active" tool in a toolbar.-toolManager:annotationAdded:onPageNumber:-toolManager:annotationModified:onPageNumber:-toolManager:annotationRemoved:onPageNumber:These methods are called just after an annotation is added, modified or deleted.
Last updated
Was this helpful?