Fundamentals
Components
Code Utilities
Demo
BcJsTouchService
Description
The BcJsTouchService provides an interface for handling touch events on HTML elements using JavaScript interop.
Methods
RegisterTouchEventListener ( string id )
Registers a touch event listener for the specified element ID. Returns an event reference that can be used for handling touch events.
BcEventReference < BcTouchEventArgs >
UnregisterTouchEventListener ( string id )
Unregisters a touch event listener for the specified element ID, removing it from active event subscriptions.
Task
OnTouchEvent ( BcTouchEventArgs touchEventArgs )
Handles touch events invoked from JavaScript. If a matching event subscription exists, it triggers the corresponding .NET event.
JSInvokable Static Method