[NUI] Change "IsTapGestureFeedback" as "Feedback"
authorDongsug Song <dongsug.song@samsung.com>
Tue, 15 Dec 2020 02:54:44 +0000 (11:54 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 15 Dec 2020 06:33:59 +0000 (15:33 +0900)
src/Tizen.NUI.Components/Controls/Control.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/SwitchSample.cs

index e6c121db02d237ecb618365e400a8fbb20f3a459..3e07fbd0a5282bc7e5441007865e0934ab7c2586 100755 (executable)
@@ -98,11 +98,10 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
-        /// The flag of sound feedback when tap gesture detected.
+        /// Enable/Disable a sound feedback when tap gesture detected.
         /// </summary>
-        /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public bool IsTapGestureFeedback { get; set; } = false;
+        public bool Feedback { get; set; } = false;
 
         /// Internal used.
         [EditorBrowsable(EditorBrowsableState.Never)]
@@ -235,7 +234,7 @@ namespace Tizen.NUI.Components
         [EditorBrowsable(EditorBrowsableState.Never)]
         protected virtual void OnTapGestureDetected(object source, TapGestureDetector.DetectedEventArgs e)
         {
-            if (IsTapGestureFeedback && e?.TapGesture?.State == Gesture.StateType.Started)
+            if (Feedback && e?.TapGesture?.State == Gesture.StateType.Started)
             {
                 if (feedback != null && feedback.IsSupportedPattern(FeedbackType.Sound, "Tap"))
                 {
index 50e152bf20746f57405f6cfec0f9fba8a2783283..61b7472953777394f95c31d65a04d6a4a00c46ad 100755 (executable)
@@ -225,7 +225,7 @@ namespace Tizen.NUI.Samples
                 utilitySwitch[i].ApplyStyle(utilitySt);
                 utilitySwitch[i].Size = new Size(96, 60);
                 utilitySwitch[i].Margin = new Extents(100, 0, 20, 0);
-                utilitySwitch[i].IsTapGestureFeedback = true;
+                utilitySwitch[i].Feedback = true;
                 parentView[2].Add(utilitySwitch[i]);
             }
             for (i = 0; i < 4; i++)
@@ -233,7 +233,7 @@ namespace Tizen.NUI.Samples
                 familySwitch[i] = new Switch();
                 familySwitch[i].ApplyStyle(familySt);
                 familySwitch[i].Size = new Size(96, 60);
-                familySwitch[i].IsTapGestureFeedback = true;
+                familySwitch[i].Feedback = true;
                 parentView[2].Add(familySwitch[i]);
             }
             for (i = 0; i < 4; i++)
@@ -241,7 +241,7 @@ namespace Tizen.NUI.Samples
                 foodSwitch[i] = new Switch();
                 foodSwitch[i].ApplyStyle(foodSt);
                 foodSwitch[i].Size = new Size(96, 60);
-                foodSwitch[i].IsTapGestureFeedback = true;
+                foodSwitch[i].Feedback = true;
                 parentView[2].Add(foodSwitch[i]);
             }
             for (i = 0; i < 4; i++)
@@ -249,7 +249,7 @@ namespace Tizen.NUI.Samples
                 kitchenSwitch[i] = new Switch();
                 kitchenSwitch[i].ApplyStyle(kitchenSt);
                 kitchenSwitch[i].Size = new Size(96, 60);
-                kitchenSwitch[i].IsTapGestureFeedback = true;
+                kitchenSwitch[i].Feedback = true;
                 parentView[2].Add(kitchenSwitch[i]);
             }
 
@@ -259,7 +259,7 @@ namespace Tizen.NUI.Samples
                 utilitySwitch2[i] = new Switch();
                 utilitySwitch2[i].ApplyStyle(utilitySt);
                 utilitySwitch2[i].Size = new Size(96, 60);
-                utilitySwitch2[i].IsTapGestureFeedback = true;
+                utilitySwitch2[i].Feedback = true;
                 parentView[2].Add(utilitySwitch2[i]);
             }
             for (i = 0; i < 4; i++)
@@ -267,7 +267,7 @@ namespace Tizen.NUI.Samples
                 familySwitch2[i] = new Switch();
                 familySwitch2[i].ApplyStyle(familySt);
                 familySwitch2[i].Size = new Size(96, 60);
-                familySwitch2[i].IsTapGestureFeedback = true;
+                familySwitch2[i].Feedback = true;
                 parentView[2].Add(familySwitch2[i]);
             }
             for (i = 0; i < 4; i++)
@@ -275,7 +275,7 @@ namespace Tizen.NUI.Samples
                 foodSwitch2[i] = new Switch();
                 foodSwitch2[i].ApplyStyle(foodSt);
                 foodSwitch2[i].Size = new Size(96, 60);
-                foodSwitch2[i].IsTapGestureFeedback = true;
+                foodSwitch2[i].Feedback = true;
                 parentView[2].Add(foodSwitch2[i]);
             }
             for (i = 0; i < 4; i++)
@@ -283,7 +283,7 @@ namespace Tizen.NUI.Samples
                 kitchenSwitch2[i] = new Switch();
                 kitchenSwitch2[i].ApplyStyle(kitchenSt);
                 kitchenSwitch2[i].Size = new Size(96, 60);
-                kitchenSwitch2[i].IsTapGestureFeedback = true;
+                kitchenSwitch2[i].Feedback = true;
                 parentView[2].Add(kitchenSwitch2[i]);
             }