}
/// <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)]
[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"))
{
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++)
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++)
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++)
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]);
}
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++)
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++)
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++)
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]);
}