語言

Keyboard.Key 建構函式

定義

多載

名稱 Description
Keyboard.Key(Keyboard+Row)

建立一個空的金鑰,沒有屬性。

Keyboard.Key(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

Keyboard.Key(Resources, Keyboard+Row, Int32, Int32, XmlReader)

建立一個左上角座標的鍵,並從 XML 解析器中擷取其屬性。

Keyboard.Key(Keyboard+Row)

建立一個空的金鑰,沒有屬性。

[Android.Runtime.Register(".ctor", "(Landroid/inputmethodservice/Keyboard$Row;)V", "")]
public Key(Android.InputMethodServices.Keyboard.Row parent);
[<Android.Runtime.Register(".ctor", "(Landroid/inputmethodservice/Keyboard$Row;)V", "")>]
new Android.InputMethodServices.Keyboard.Key : Android.InputMethodServices.Keyboard.Row -> Android.InputMethodServices.Keyboard.Key

參數

parent
Keyboard.Row
屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Keyboard.Key(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

protected Key(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.InputMethodServices.Keyboard.Key : nativeint * Android.Runtime.JniHandleOwnership -> Android.InputMethodServices.Keyboard.Key

參數

javaReference
IntPtr

nativeint

IntPtrA 包含一個 Java 原生介面(JNI)物件參考。

transfer
JniHandleOwnership

JniHandleOwnershipA 指示如何處理javaReference

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Keyboard.Key(Resources, Keyboard+Row, Int32, Int32, XmlReader)

建立一個左上角座標的鍵,並從 XML 解析器中擷取其屬性。

[Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Landroid/inputmethodservice/Keyboard$Row;IILandroid/content/res/XmlResourceParser;)V", "")]
public Key(Android.Content.Res.Resources res, Android.InputMethodServices.Keyboard.Row parent, int x, int y, System.Xml.XmlReader parser);
[<Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Landroid/inputmethodservice/Keyboard$Row;IILandroid/content/res/XmlResourceParser;)V", "")>]
new Android.InputMethodServices.Keyboard.Key : Android.Content.Res.Resources * Android.InputMethodServices.Keyboard.Row * int * int * System.Xml.XmlReader -> Android.InputMethodServices.Keyboard.Key

參數

res
Resources

與呼叫者情境相關的資源

parent
Keyboard.Row

這把鑰匙所屬的那一列。 該排必須已經連接到鍵盤上。

x
Int32

左上角的 x 座標

y
Int32

左上角的Y座標

parser
XmlReader

包含此鍵屬性的 XML 解析器

屬性

備註

建立一個左上角座標的鍵,並從 XML 解析器中擷取其屬性。

Android 參考資料。android.inputmethodservice.Keyboard.Key.Key

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於