Skip to content

[NUI] Integration DevelNUI to main - #7846

Merged
dongsug-song merged 1 commit into
Samsung:mainfrom
dongsug-song:rebase-develnui-0916
Sep 16, 2026
Merged

dongsug-song merged 1 commit into
Samsung:mainfrom
dongsug-song:rebase-develnui-0916

Conversation

@dongsug-song

Copy link
Copy Markdown
Contributor

[NUI] Add per-device gesture options and recognition thresholds

Add GestureDeviceSelector (matches an exact device name, a device class and subclass, or a device class), nested Options types for Pan/Tap/LongPress gesture detectors with GetDefaultOptions, SetDeviceOptions, TryGetDeviceOptions and ClearDeviceOptions, Gesture.DeviceName, and per-device recognition thresholds (PanThresholds, TapThresholds, LongPressThresholds, PinchThresholds, RotationThresholds) exposed through GestureOptions.Instance.

Also expose TapGestureDetector.ReceiveAllTapEvents / IsReceiveAllTapEventsEnabled.

All new members are [EditorBrowsable(EditorBrowsableState.Never)] until ACR.

Adds a DeviceGestureOptionsSample demonstrating the feature: a PanGestureDetector and a TapGestureDetector recognize gestures differently for mouse vs. touch, using detector-local Options (mouse pans restricted to roughly horizontal drags, both allow a double tap) and GestureOptions.Instance per-device thresholds (mouse needs a longer drag before a pan starts and a faster second tap for a double tap than the touch defaults). A touchscreen is not required to see the effect.

Description of Change

API Changes

  • ACR:

Add GestureDeviceSelector (matches an exact device name, a device
class and subclass, or a device class), nested Options types for
Pan/Tap/LongPress gesture detectors with GetDefaultOptions,
SetDeviceOptions, TryGetDeviceOptions and ClearDeviceOptions,
Gesture.DeviceName, and per-device recognition thresholds
(PanThresholds, TapThresholds, LongPressThresholds, PinchThresholds,
RotationThresholds) exposed through GestureOptions.Instance.

Also expose TapGestureDetector.ReceiveAllTapEvents /
IsReceiveAllTapEventsEnabled.

All new members are [EditorBrowsable(EditorBrowsableState.Never)]
until ACR.

Adds a DeviceGestureOptionsSample demonstrating the feature: a
PanGestureDetector and a TapGestureDetector recognize gestures
differently for mouse vs. touch, using detector-local Options
(mouse pans restricted to roughly horizontal drags, both allow a
double tap) and GestureOptions.Instance per-device thresholds (mouse
needs a longer drag before a pan starts and a faster second tap for
a double tap than the touch defaults). A touchscreen is not required
to see the effect.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@TizenAPI-Bot

Copy link
Copy Markdown
Collaborator

Internal API Changed

Added: 104, Removed: 0, Changed: 0

@dongsug-song
dongsug-song merged commit afae9a1 into Samsung:main Sep 16, 2026
3 checks passed
@dongsug-song
dongsug-song deleted the rebase-develnui-0916 branch September 16, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants