KeyEvent コンストラクター

定義

オーバーロード

KeyEvent(KeyEvent)

既存のキー イベントの正確なコピーを作成します。

KeyEvent(KeyEventActions, Keycode)

新しいキー イベントを作成します。

KeyEvent(IntPtr, JniHandleOwnership)

JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。

KeyEvent(KeyEvent, Int64, Int32)
古い.

既存のキー イベントをコピーし、その時間と繰り返し数を変更します。

KeyEvent(Int64, String, Int32, KeyEventFlags)

文字列の新しいキー イベントを作成します。

KeyEvent(Int64, Int64, KeyEventActions, Keycode, Int32)

新しいキー イベントを作成します。

KeyEvent(Int64, Int64, KeyEventActions, Keycode, Int32, MetaKeyStates)

新しいキー イベントを作成します。

KeyEvent(Int64, Int64, KeyEventActions, Keycode, Int32, MetaKeyStates, Int32, Int32)

新しいキー イベントを作成します。

KeyEvent(Int64, Int64, KeyEventActions, Keycode, Int32, MetaKeyStates, Int32, Int32, KeyEventFlags)

新しいキー イベントを作成します。

KeyEvent(Int64, Int64, KeyEventActions, Keycode, Int32, MetaKeyStates, Int32, Int32, KeyEventFlags, InputSourceType)

新しいキー イベントを作成します。

KeyEvent(KeyEvent)

既存のキー イベントの正確なコピーを作成します。

[Android.Runtime.Register(".ctor", "(Landroid/view/KeyEvent;)V", "")]
public KeyEvent (Android.Views.KeyEvent? origEvent);
[<Android.Runtime.Register(".ctor", "(Landroid/view/KeyEvent;)V", "")>]
new Android.Views.KeyEvent : Android.Views.KeyEvent -> Android.Views.KeyEvent

パラメーター

origEvent
KeyEvent
属性

注釈

android.view.KeyEvent.KeyEvent(android.view.KeyEvent)Java ドキュメント。

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

適用対象

KeyEvent(KeyEventActions, Keycode)

新しいキー イベントを作成します。

[Android.Runtime.Register(".ctor", "(II)V", "")]
public KeyEvent (Android.Views.KeyEventActions action, Android.Views.Keycode code);
[<Android.Runtime.Register(".ctor", "(II)V", "")>]
new Android.Views.KeyEvent : Android.Views.KeyEventActions * Android.Views.Keycode -> Android.Views.KeyEvent

パラメーター

action
KeyEventActions

アクション コード: 、 #ACTION_DOWN#ACTION_UPまたは #ACTION_MULTIPLEのいずれか。

code
Keycode

キー コード。

属性

注釈

android.view.KeyEvent.KeyEvent(int, int)Java ドキュメント。

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

適用対象

KeyEvent(IntPtr, JniHandleOwnership)

JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。

protected KeyEvent (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.KeyEvent : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.KeyEvent

パラメーター

javaReference
IntPtr

nativeint

IntPtrJava ネイティブ インターフェイス (JNI) オブジェクト参照を含む 。

transfer
JniHandleOwnership

処理方法を示す 。JniHandleOwnershipjavaReference

注釈

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

適用対象

KeyEvent(KeyEvent, Int64, Int32)

注意事項

deprecated

既存のキー イベントをコピーし、その時間と繰り返し数を変更します。

[Android.Runtime.Register(".ctor", "(Landroid/view/KeyEvent;JI)V", "")]
[System.Obsolete("deprecated")]
public KeyEvent (Android.Views.KeyEvent? origEvent, long eventTime, int newRepeat);
[<Android.Runtime.Register(".ctor", "(Landroid/view/KeyEvent;JI)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Views.KeyEvent : Android.Views.KeyEvent * int64 * int -> Android.Views.KeyEvent

パラメーター

origEvent
KeyEvent

コピーする既存のイベント。

eventTime
Int64

イベントの新しいイベント時刻 (in android.os.SystemClock#uptimeMillis)。

newRepeat
Int32

イベントの新しい繰り返し数。

属性

注釈

android.view.KeyEvent.KeyEvent(android.view.KeyEvent, long, int)Java ドキュメント。

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

適用対象

KeyEvent(Int64, String, Int32, KeyEventFlags)

文字列の新しいキー イベントを作成します。

[Android.Runtime.Register(".ctor", "(JLjava/lang/String;II)V", "")]
public KeyEvent (long time, string? characters, int deviceId, Android.Views.KeyEventFlags flags);
[<Android.Runtime.Register(".ctor", "(JLjava/lang/String;II)V", "")>]
new Android.Views.KeyEvent : int64 * string * int * Android.Views.KeyEventFlags -> Android.Views.KeyEvent

パラメーター

time
Int64

このイベントが発生した時刻 (in android.os.SystemClock#uptimeMillis)。

characters
String

文字の文字列。

deviceId
Int32

キー イベントを生成したデバイス ID。

flags
KeyEventFlags

このキー イベントのフラグ

属性

注釈

android.view.KeyEvent.KeyEvent(long, java.lang.String, int, int)Java ドキュメント。

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

適用対象

KeyEvent(Int64, Int64, KeyEventActions, Keycode, Int32)

新しいキー イベントを作成します。

[Android.Runtime.Register(".ctor", "(JJIII)V", "")]
public KeyEvent (long downTime, long eventTime, Android.Views.KeyEventActions action, Android.Views.Keycode code, int repeat);
[<Android.Runtime.Register(".ctor", "(JJIII)V", "")>]
new Android.Views.KeyEvent : int64 * int64 * Android.Views.KeyEventActions * Android.Views.Keycode * int -> Android.Views.KeyEvent

パラメーター

downTime
Int64

このキー コードが最初にダウンした時刻 (内 android.os.SystemClock#uptimeMillis)。

eventTime
Int64

このイベントが発生した時刻 (内 android.os.SystemClock#uptimeMillis)。

action
KeyEventActions

アクション コード: 、 #ACTION_DOWN#ACTION_UPまたは #ACTION_MULTIPLEのいずれか。

code
Keycode

キー コード。

repeat
Int32

ダウン イベントの繰り返し数 (> 初期ダウン後の場合は 0) または複数のイベントのイベント数。

属性

注釈

android.view.KeyEvent.KeyEvent(long, long, int, int, int)Java ドキュメント。

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

適用対象

KeyEvent(Int64, Int64, KeyEventActions, Keycode, Int32, MetaKeyStates)

新しいキー イベントを作成します。

[Android.Runtime.Register(".ctor", "(JJIIII)V", "")]
public KeyEvent (long downTime, long eventTime, Android.Views.KeyEventActions action, Android.Views.Keycode code, int repeat, Android.Views.MetaKeyStates metaState);
[<Android.Runtime.Register(".ctor", "(JJIIII)V", "")>]
new Android.Views.KeyEvent : int64 * int64 * Android.Views.KeyEventActions * Android.Views.Keycode * int * Android.Views.MetaKeyStates -> Android.Views.KeyEvent

パラメーター

downTime
Int64

このキー コードが最初にダウンした時刻 (内 android.os.SystemClock#uptimeMillis)。

eventTime
Int64

このイベントが発生した時刻 (内 android.os.SystemClock#uptimeMillis)。

action
KeyEventActions

アクション コード: 、 #ACTION_DOWN#ACTION_UPまたは #ACTION_MULTIPLEのいずれか。

code
Keycode

キー コード。

repeat
Int32

ダウン イベントの繰り返し数 (> 初期ダウン後の場合は 0) または複数のイベントのイベント数。

metaState
MetaKeyStates

現在押されているメタ キーを示すフラグ。

属性

注釈

android.view.KeyEvent.KeyEvent(long, long, int, int, int, int)Java ドキュメント。

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

適用対象

KeyEvent(Int64, Int64, KeyEventActions, Keycode, Int32, MetaKeyStates, Int32, Int32)

新しいキー イベントを作成します。

[Android.Runtime.Register(".ctor", "(JJIIIIII)V", "")]
public KeyEvent (long downTime, long eventTime, Android.Views.KeyEventActions action, Android.Views.Keycode code, int repeat, Android.Views.MetaKeyStates metaState, int deviceId, int scancode);
[<Android.Runtime.Register(".ctor", "(JJIIIIII)V", "")>]
new Android.Views.KeyEvent : int64 * int64 * Android.Views.KeyEventActions * Android.Views.Keycode * int * Android.Views.MetaKeyStates * int * int -> Android.Views.KeyEvent

パラメーター

downTime
Int64

このキー コードが最初にダウンした時刻 (内 android.os.SystemClock#uptimeMillis)。

eventTime
Int64

このイベントが発生した時刻 (内 android.os.SystemClock#uptimeMillis)。

action
KeyEventActions

アクション コード: 、 #ACTION_DOWN#ACTION_UPまたは #ACTION_MULTIPLEのいずれか。

code
Keycode

キー コード。

repeat
Int32

ダウン イベントの繰り返し数 (> 初期ダウン後の場合は 0) または複数のイベントのイベント数。

metaState
MetaKeyStates

現在押されているメタ キーを示すフラグ。

deviceId
Int32

キー イベントを生成したデバイス ID。

scancode
Int32

イベントの生デバイス スキャン コード。

属性

注釈

android.view.KeyEvent.KeyEvent(long, long, int, int, int, int, int, int)Java ドキュメント。

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

適用対象

KeyEvent(Int64, Int64, KeyEventActions, Keycode, Int32, MetaKeyStates, Int32, Int32, KeyEventFlags)

新しいキー イベントを作成します。

[Android.Runtime.Register(".ctor", "(JJIIIIIII)V", "")]
public KeyEvent (long downTime, long eventTime, Android.Views.KeyEventActions action, Android.Views.Keycode code, int repeat, Android.Views.MetaKeyStates metaState, int deviceId, int scancode, Android.Views.KeyEventFlags flags);
[<Android.Runtime.Register(".ctor", "(JJIIIIIII)V", "")>]
new Android.Views.KeyEvent : int64 * int64 * Android.Views.KeyEventActions * Android.Views.Keycode * int * Android.Views.MetaKeyStates * int * int * Android.Views.KeyEventFlags -> Android.Views.KeyEvent

パラメーター

downTime
Int64

このキー コードが最初にダウンした時刻 (内 android.os.SystemClock#uptimeMillis)。

eventTime
Int64

このイベントが発生した時刻 (内 android.os.SystemClock#uptimeMillis)。

action
KeyEventActions

アクション コード: 、 #ACTION_DOWN#ACTION_UPまたは #ACTION_MULTIPLEのいずれか。

code
Keycode

キー コード。

repeat
Int32

ダウン イベントの繰り返し数 (> 初期ダウン後の場合は 0) または複数のイベントのイベント数。

metaState
MetaKeyStates

現在押されているメタ キーを示すフラグ。

deviceId
Int32

キー イベントを生成したデバイス ID。

scancode
Int32

イベントの生デバイス スキャン コード。

flags
KeyEventFlags

このキー イベントのフラグ

属性

注釈

android.view.KeyEvent.KeyEvent(long, long, int, int, int, int, int, int, int)Java ドキュメント。

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

適用対象

KeyEvent(Int64, Int64, KeyEventActions, Keycode, Int32, MetaKeyStates, Int32, Int32, KeyEventFlags, InputSourceType)

新しいキー イベントを作成します。

[Android.Runtime.Register(".ctor", "(JJIIIIIIII)V", "")]
public KeyEvent (long downTime, long eventTime, Android.Views.KeyEventActions action, Android.Views.Keycode code, int repeat, Android.Views.MetaKeyStates metaState, int deviceId, int scancode, Android.Views.KeyEventFlags flags, Android.Views.InputSourceType source);
[<Android.Runtime.Register(".ctor", "(JJIIIIIIII)V", "")>]
new Android.Views.KeyEvent : int64 * int64 * Android.Views.KeyEventActions * Android.Views.Keycode * int * Android.Views.MetaKeyStates * int * int * Android.Views.KeyEventFlags * Android.Views.InputSourceType -> Android.Views.KeyEvent

パラメーター

downTime
Int64

このキー コードが最初にダウンした時刻 (内 android.os.SystemClock#uptimeMillis)。

eventTime
Int64

このイベントが発生した時刻 (内 android.os.SystemClock#uptimeMillis)。

action
KeyEventActions

アクション コード: 、 #ACTION_DOWN#ACTION_UPまたは #ACTION_MULTIPLEのいずれか。

code
Keycode

キー コード。

repeat
Int32

ダウン イベントの繰り返し数 (> 初期ダウン後の場合は 0) または複数のイベントのイベント数。

metaState
MetaKeyStates

現在押されているメタ キーを示すフラグ。

deviceId
Int32

キー イベントを生成したデバイス ID。

scancode
Int32

イベントの生デバイス スキャン コード。

flags
KeyEventFlags

このキー イベントのフラグ

source
InputSourceType

などの InputDevice#SOURCE_KEYBOARD入力ソース。

属性

注釈

android.view.KeyEvent.KeyEvent(long, long, int, int, int, int, int, int, int, int)Java ドキュメント。

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

適用対象