Class HardwareKeyListenerExtensions
Making it easier to manage HardwareKeyListeners
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public static class HardwareKeyListenerExtensions
Methods
AddHardwareKeyListener(HardwareKeyPage, HardwareKeyListener)
Adds a hardware key listener to this ContentPage.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this HardwareKeyPage page, HardwareKeyListener hardwareKeyListener)
Parameters
Type | Name | Description |
---|---|---|
HardwareKeyPage | page | Forms9Patch.HardwareKeyPage. |
HardwareKeyListener | hardwareKeyListener | Hardware key listener. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(HardwareKeyPage, String)
Adds a hardware key listener to HardwareKeyPage.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this HardwareKeyPage page, string keyInput)
Parameters
Type | Name | Description |
---|---|---|
HardwareKeyPage | page | Page. |
String | keyInput | Key input. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(HardwareKeyPage, String, HardwareKeyModifierKeys, EventHandler<HardwareKeyEventArgs>)
Adds a hardware key listener to a HardwareKeyPage.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this HardwareKeyPage page, string keyInput, HardwareKeyModifierKeys hardwareKeyModifierKeys, EventHandler<HardwareKeyEventArgs> onPressed = null)
Parameters
Type | Name | Description |
---|---|---|
HardwareKeyPage | page | Page. |
String | keyInput | Key input. |
HardwareKeyModifierKeys | hardwareKeyModifierKeys | Hardware key modifier keys. |
EventHandler<HardwareKeyEventArgs> | onPressed | On pressed. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(HardwareKeyPage, String, HardwareKeyModifierKeys, String, EventHandler<HardwareKeyEventArgs>)
Adds a hardware key listener to a HardwareKeyPage.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this HardwareKeyPage page, string keyInput, HardwareKeyModifierKeys hardwareKeyModifierKeys, string discoverableTitle, EventHandler<HardwareKeyEventArgs> onPressed = null)
Parameters
Type | Name | Description |
---|---|---|
HardwareKeyPage | page | Page. |
String | keyInput | Key input. |
HardwareKeyModifierKeys | hardwareKeyModifierKeys | Hardware key modifier keys. |
String | discoverableTitle | Discoverable title. |
EventHandler<HardwareKeyEventArgs> | onPressed | On pressed. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(HardwareKeyPage, String, EventHandler<HardwareKeyEventArgs>)
Adds a hardware key listener to a HardwareKeyPage.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this HardwareKeyPage page, string keyInput, EventHandler<HardwareKeyEventArgs> onPressed)
Parameters
Type | Name | Description |
---|---|---|
HardwareKeyPage | page | Page. |
String | keyInput | Key input. |
EventHandler<HardwareKeyEventArgs> | onPressed | On pressed. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(PopupBase, HardwareKeyListener)
Adds a hardware key listener to this ContentPage.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this PopupBase page, HardwareKeyListener hardwareKeyListener)
Parameters
Type | Name | Description |
---|---|---|
Forms9Patch.PopupBase | page | Forms9Patch.HardwareKeyPage. |
HardwareKeyListener | hardwareKeyListener | Hardware key listener. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(PopupBase, String)
Adds a hardware key listener to HardwareKeyPage.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this PopupBase page, string keyInput)
Parameters
Type | Name | Description |
---|---|---|
Forms9Patch.PopupBase | page | Page. |
String | keyInput | Key input. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(PopupBase, String, HardwareKeyModifierKeys, EventHandler<HardwareKeyEventArgs>)
Adds a hardware key listener to a HardwareKeyPage.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this PopupBase page, string keyInput, HardwareKeyModifierKeys hardwareKeyModifierKeys, EventHandler<HardwareKeyEventArgs> onPressed = null)
Parameters
Type | Name | Description |
---|---|---|
Forms9Patch.PopupBase | page | Page. |
String | keyInput | Key input. |
HardwareKeyModifierKeys | hardwareKeyModifierKeys | Hardware key modifier keys. |
EventHandler<HardwareKeyEventArgs> | onPressed | On pressed. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(PopupBase, String, HardwareKeyModifierKeys, String, EventHandler<HardwareKeyEventArgs>)
Adds a hardware key listener to a HardwareKeyPage.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this PopupBase page, string keyInput, HardwareKeyModifierKeys hardwareKeyModifierKeys, string discoverableTitle, EventHandler<HardwareKeyEventArgs> onPressed = null)
Parameters
Type | Name | Description |
---|---|---|
Forms9Patch.PopupBase | page | Page. |
String | keyInput | Key input. |
HardwareKeyModifierKeys | hardwareKeyModifierKeys | Hardware key modifier keys. |
String | discoverableTitle | Discoverable title. |
EventHandler<HardwareKeyEventArgs> | onPressed | On pressed. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(PopupBase, String, EventHandler<HardwareKeyEventArgs>)
Adds a hardware key listener to a HardwareKeyPage.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this PopupBase page, string keyInput, EventHandler<HardwareKeyEventArgs> onPressed)
Parameters
Type | Name | Description |
---|---|---|
Forms9Patch.PopupBase | page | Page. |
String | keyInput | Key input. |
EventHandler<HardwareKeyEventArgs> | onPressed | On pressed. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(View, HardwareKeyListener)
Adds a hardware key listener to this Xamarin.Forms.View.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this View view, HardwareKeyListener hardwareKeyListener)
Parameters
Type | Name | Description |
---|---|---|
View | view | Xamarin.Forms.View. |
HardwareKeyListener | hardwareKeyListener | Hardware key listener. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(View, String)
Adds the hardware key listener to a View.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this View view, string keyInput)
Parameters
Type | Name | Description |
---|---|---|
View | view | View. |
String | keyInput | Key input. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(View, String, HardwareKeyModifierKeys, EventHandler<HardwareKeyEventArgs>)
Adds the hardware key listener to a View.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this View view, string keyInput, HardwareKeyModifierKeys hardwareKeyModifierKeys, EventHandler<HardwareKeyEventArgs> onPressed = null)
Parameters
Type | Name | Description |
---|---|---|
View | view | View. |
String | keyInput | Key input. |
HardwareKeyModifierKeys | hardwareKeyModifierKeys | Hardware key modifier keys. |
EventHandler<HardwareKeyEventArgs> | onPressed | On pressed. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(View, String, HardwareKeyModifierKeys, String, EventHandler<HardwareKeyEventArgs>)
Adds the hardware key listener to a View.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this View view, string keyInput, HardwareKeyModifierKeys hardwareKeyModifierKeys, string discoverableTitle, EventHandler<HardwareKeyEventArgs> onPressed = null)
Parameters
Type | Name | Description |
---|---|---|
View | view | View. |
String | keyInput | Key input. |
HardwareKeyModifierKeys | hardwareKeyModifierKeys | Hardware key modifier keys. |
String | discoverableTitle | Discoverable title. |
EventHandler<HardwareKeyEventArgs> | onPressed | On pressed. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
AddHardwareKeyListener(View, String, EventHandler<HardwareKeyEventArgs>)
Adds the hardware key listener to a View.
Declaration
public static HardwareKeyListener AddHardwareKeyListener(this View view, string keyInput, EventHandler<HardwareKeyEventArgs> onPressed)
Parameters
Type | Name | Description |
---|---|---|
View | view | View. |
String | keyInput | Key input. |
EventHandler<HardwareKeyEventArgs> | onPressed | On pressed. |
Returns
Type | Description |
---|---|
HardwareKeyListener | The hardware key listener. |
ClearHardwareKeyListeners(HardwareKeyPage)
Clears the hardware key listeners for this HardwareKeyPage.
Declaration
public static void ClearHardwareKeyListeners(this HardwareKeyPage page)
Parameters
Type | Name | Description |
---|---|---|
HardwareKeyPage | page | Page. |
ClearHardwareKeyListeners(PopupBase)
Clears the hardware key listeners for this HardwareKeyPage.
Declaration
public static void ClearHardwareKeyListeners(this PopupBase page)
Parameters
Type | Name | Description |
---|---|---|
Forms9Patch.PopupBase | page | Page. |
ClearHardwareKeyListeners(View)
Clears the hardware key listeners for this View.
Declaration
public static void ClearHardwareKeyListeners(this View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | View. |
GetHardwareKeyListeners(HardwareKeyPage)
Gets the collection of hardware key listeners for this ContentPage
Declaration
public static ObservableCollection<HardwareKeyListener> GetHardwareKeyListeners(this HardwareKeyPage page)
Parameters
Type | Name | Description |
---|---|---|
HardwareKeyPage | page | Forms9Patch.HardwareKeyPage. |
Returns
Type | Description |
---|---|
ObservableCollection<HardwareKeyListener> | The hardware key listeners. |
GetHardwareKeyListeners(PopupBase)
Gets the collection of hardware key listeners for this ContentPage
Declaration
public static ObservableCollection<HardwareKeyListener> GetHardwareKeyListeners(this PopupBase page)
Parameters
Type | Name | Description |
---|---|---|
Forms9Patch.PopupBase | page | Forms9Patch.HardwareKeyPage. |
Returns
Type | Description |
---|---|
ObservableCollection<HardwareKeyListener> | The hardware key listeners. |
GetHardwareKeyListeners(View)
Gets the collection of hardware key listeners for this Xamarin.Forms.View
Declaration
public static ObservableCollection<HardwareKeyListener> GetHardwareKeyListeners(this View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | Xamarin.Forms.View. |
Returns
Type | Description |
---|---|
ObservableCollection<HardwareKeyListener> | The hardware key listeners. |
HardwareKeyFocus(HardwareKeyPage)
Sets the HardwareKeyFocus to this page.
Declaration
public static void HardwareKeyFocus(this HardwareKeyPage page)
Parameters
Type | Name | Description |
---|---|---|
HardwareKeyPage | page | Page. |
HardwareKeyFocus(PopupBase)
Sets the HardwareKeyFocus to this page.
Declaration
public static void HardwareKeyFocus(this PopupBase page)
Parameters
Type | Name | Description |
---|---|---|
Forms9Patch.PopupBase | page | Page. |
HardwareKeyFocus(View)
Sets the HardwareKeyFocus to this view.
Declaration
public static void HardwareKeyFocus(this View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | View. |
HardwareKeyUnfocus(VisualElement)
Removes the hardware key focus from this VisualElement
Declaration
public static void HardwareKeyUnfocus(this VisualElement visualElement)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | visualElement | Visual element. |
RemoveHardwareKeyListener(HardwareKeyPage, HardwareKeyListener)
Removes a hardware key listener from this Xamarin.Forms.View.
Declaration
public static void RemoveHardwareKeyListener(this HardwareKeyPage page, HardwareKeyListener listener)
Parameters
Type | Name | Description |
---|---|---|
HardwareKeyPage | page | Forms9Patch.HardwareKeyPage. |
HardwareKeyListener | listener | Listener. |
RemoveHardwareKeyListener(HardwareKeyPage, String, HardwareKeyModifierKeys)
Matches a hardware key listener and, if found, removes it from this ContentPage.
Declaration
public static void RemoveHardwareKeyListener(this HardwareKeyPage page, string keyInput, HardwareKeyModifierKeys hardwareKeyModifierKeys = HardwareKeyModifierKeys.None)
Parameters
Type | Name | Description |
---|---|---|
HardwareKeyPage | page | Forms9Patch.HardwareKeyPage. |
String | keyInput | Key Label. |
HardwareKeyModifierKeys | hardwareKeyModifierKeys | Hardware key modifier keys. |
RemoveHardwareKeyListener(PopupBase, HardwareKeyListener)
Removes a hardware key listener from this Xamarin.Forms.View.
Declaration
public static void RemoveHardwareKeyListener(this PopupBase page, HardwareKeyListener listener)
Parameters
Type | Name | Description |
---|---|---|
Forms9Patch.PopupBase | page | Forms9Patch.HardwareKeyPage. |
HardwareKeyListener | listener | Listener. |
RemoveHardwareKeyListener(PopupBase, String, HardwareKeyModifierKeys)
Matches a hardware key listener and, if found, removes it from this ContentPage.
Declaration
public static void RemoveHardwareKeyListener(this PopupBase page, string keyInput, HardwareKeyModifierKeys hardwareKeyModifierKeys = HardwareKeyModifierKeys.None)
Parameters
Type | Name | Description |
---|---|---|
Forms9Patch.PopupBase | page | Forms9Patch.HardwareKeyPage. |
String | keyInput | Key Label. |
HardwareKeyModifierKeys | hardwareKeyModifierKeys | Hardware key modifier keys. |
RemoveHardwareKeyListener(View, HardwareKeyListener)
Removes a hardware key listener from this ContentPage.
Declaration
public static void RemoveHardwareKeyListener(this View view, HardwareKeyListener listener)
Parameters
Type | Name | Description |
---|---|---|
View | view | View. |
HardwareKeyListener | listener | Listener. |
RemoveHardwareKeyListener(View, String, HardwareKeyModifierKeys)
Matches a hardware key listener and, if found, removes it from this Xamarin.Forms.View.
Declaration
public static void RemoveHardwareKeyListener(this View view, string keyInput, HardwareKeyModifierKeys hardwareKeyModifierKeys = HardwareKeyModifierKeys.None)
Parameters
Type | Name | Description |
---|---|---|
View | view | Xamarin.Forms.View. |
String | keyInput | Key Label. |
HardwareKeyModifierKeys | hardwareKeyModifierKeys | Hardware key modifier keys. |