Skip to content

[NUI] Add Gesture related APIs by TCSACR-651#7657

Open
dongsug-song wants to merge 1 commit into
Samsung:API14from
dongsug-song:api14-0522
Open

[NUI] Add Gesture related APIs by TCSACR-651#7657
dongsug-song wants to merge 1 commit into
Samsung:API14from
dongsug-song:api14-0522

Conversation

@dongsug-song

Copy link
Copy Markdown
Contributor

Description of Change

[NUI] Add Gesture related APIs by TCSACR-651

API Changes

https://jira.sec.samsung.net/browse/TCSACR-651

@github-actions github-actions Bot added the API14 Platform : Tizen 11.0 / TFM: net8.0-tizen11.0 label May 22, 2026
@dongsug-song dongsug-song requested a review from wiertel May 22, 2026 07:14
@TizenAPI-Bot

Copy link
Copy Markdown
Collaborator

Public API Changed

Please follow the ACR process for the changed API below.
Added: 109, Removed: 0, Changed: 0

Internal API Changed

Added: 0, Removed: 109, Changed: 0

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request promotes several gesture-related APIs to public status by replacing internal attributes with the <since_tizen> 10.1 </since_tizen> tag and renaming various 'TouchesRequired' methods to 'TouchCount' for better clarity. Feedback focuses on maintaining naming consistency; while several setters were renamed, their corresponding getters (e.g., GetMinimumTouchesRequired) were not, leading to an inconsistent public API. Additionally, a high-severity issue was noted in PanGestureDetector.cs where the ScreenPosition property appears to be a stub returning a default value rather than fetching data from the native layer.

Comment thread src/Tizen.NUI/src/public/Events/PanGestureDetector.cs
Comment thread src/Tizen.NUI/src/public/Events/PanGestureDetector.cs
Comment thread src/Tizen.NUI/src/public/Events/PanGestureDetector.cs
Comment thread src/Tizen.NUI.Components/Controls/ScrollableBase.cs
Comment thread src/Tizen.NUI/src/public/Events/LongPressGestureDetector.cs
Comment thread src/Tizen.NUI/src/public/Events/LongPressGestureDetector.cs
Comment thread src/Tizen.NUI/src/public/Events/TapGestureDetector.cs
Comment thread src/Tizen.NUI/src/public/Events/TapGestureDetector.cs
Comment thread src/Tizen.NUI/src/public/Events/TapGestureDetector.cs
@TizenAPI-Bot

Copy link
Copy Markdown
Collaborator

Public API Changed

Please follow the ACR process for the changed API below.
Added: 109, Removed: 0, Changed: 0

Internal API Changed

Added: 0, Removed: 109, Changed: 0

@TizenAPI-Bot

Copy link
Copy Markdown
Collaborator

Public API Changed

Please follow the ACR process for the changed API below.
Added: 109, Removed: 0, Changed: 0

Internal API Changed

Added: 0, Removed: 109, Changed: 0

mPanGestureDetector.Attach(this);
mPanGestureDetector.AddDirection(PanGestureDetector.DirectionVertical);
if (mPanGestureDetector.GetMaximumTouchesRequired() < 2) mPanGestureDetector.SetMaximumTouchesRequired(2);
if (mPanGestureDetector.GetMaximumTouchesRequired() < 2) mPanGestureDetector.SetMaximumTouchCount(2);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [AI Review]
🔴 Critical: Public-API setter/getter pair naming is asymmetric after this rename — setters became *TouchCount/*TapCount but the matching getters were kept as *TouchesRequired/*TapsRequired. The inconsistency is visible in-line here (GetMaximumTouchesRequired() next to SetMaximumTouchCount(2)). Since these APIs are being newly exposed in this PR (previously [EditorBrowsable(Never)]), renaming the getters in lock-step (GetMinimumTouchCount/GetMaximumTouchCount in PanGestureDetector/LongPressGestureDetector; GetMinimumTapCount/GetMaximumTapCount in TapGestureDetector) avoids a follow-up breaking rename after release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ACR Required API14 Platform : Tizen 11.0 / TFM: net8.0-tizen11.0 Internal API Changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants