MotionEvent.IsButtonPressed(MotionEventButtonState) メソッド

定義

マウスまたはスタイラス ボタン (またはボタンの組み合わせ) が押されているかどうかを確認します。

[Android.Runtime.Register("isButtonPressed", "(I)Z", "")]
public bool IsButtonPressed (Android.Views.MotionEventButtonState button);
[<Android.Runtime.Register("isButtonPressed", "(I)Z", "")>]
member this.IsButtonPressed : Android.Views.MotionEventButtonState -> bool

パラメーター

button
MotionEventButtonState

ボタン (またはボタンの組み合わせ)。

戻り値

True を指定したボタンが押された場合。

属性

注釈

マウスまたはスタイラス ボタン (またはボタンの組み合わせ) が押されているかどうかを確認します。

の Java ドキュメント android.view.MotionEvent.isButtonPressed(int)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

こちらもご覧ください