setManagerInstance()

Set the hammer instance to be used by the enhancer. Sometime hammer instance cannot be defined right away or may change for various reason. This method can be used anytime and will update all gesture to use the new instance.

function setManagerInstance(instance: HammerManager): void;
  • instance: HammerManager

    • The new hammer instance to use.

Example

reader.hammerGesture.setManagerInstance(hammer)

Last updated