次の方法で共有


View.PerformHapticFeedback Method

Definition

Overloads

PerformHapticFeedback(FeedbackConstants)

BZZZTT!!1!

PerformHapticFeedback(FeedbackConstants, FeedbackFlags)

BZZZTT!!1!

PerformHapticFeedback(FeedbackConstants)

BZZZTT!!1!

[Android.Runtime.Register("performHapticFeedback", "(I)Z", "GetPerformHapticFeedback_IHandler")]
public virtual bool PerformHapticFeedback (Android.Views.FeedbackConstants feedbackConstant);
[<Android.Runtime.Register("performHapticFeedback", "(I)Z", "GetPerformHapticFeedback_IHandler")>]
abstract member PerformHapticFeedback : Android.Views.FeedbackConstants -> bool
override this.PerformHapticFeedback : Android.Views.FeedbackConstants -> bool

Parameters

feedbackConstant
FeedbackConstants

One of the constants defined in HapticFeedbackConstants

Returns

Attributes

Remarks

BZZZTT!!1!

Provide haptic feedback to the user for this view.

The framework will provide haptic feedback for some built in actions, such as long presses, but you may wish to provide feedback for your own widget.

The feedback will only be performed if #isHapticFeedbackEnabled() is true.

Java documentation for android.view.View.performHapticFeedback(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PerformHapticFeedback(FeedbackConstants, FeedbackFlags)

BZZZTT!!1!

[Android.Runtime.Register("performHapticFeedback", "(II)Z", "GetPerformHapticFeedback_IIHandler")]
public virtual bool PerformHapticFeedback (Android.Views.FeedbackConstants feedbackConstant, Android.Views.FeedbackFlags flags);
[<Android.Runtime.Register("performHapticFeedback", "(II)Z", "GetPerformHapticFeedback_IIHandler")>]
abstract member PerformHapticFeedback : Android.Views.FeedbackConstants * Android.Views.FeedbackFlags -> bool
override this.PerformHapticFeedback : Android.Views.FeedbackConstants * Android.Views.FeedbackFlags -> bool

Parameters

feedbackConstant
FeedbackConstants

One of the constants defined in HapticFeedbackConstants

flags
FeedbackFlags

Additional flags as per HapticFeedbackConstants.

Returns

Attributes

Remarks

BZZZTT!!1!

Like #performHapticFeedback(int), with additional options.

Java documentation for android.view.View.performHapticFeedback(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to