Class InputEvents
The InputEvents class helps developers to handle the remote control events that are emitted from TV devices.
Inheritance
Inherited Members
Namespace: Tizen.TV.UIControls.Forms
Assembly: Tizen.TV.UIControls.Forms.dll
Syntax
public sealed class InputEvents
Fields
AccessKeyProperty
Identifies the access key that is set to the object at run time.
Declaration
public static readonly BindableProperty AccessKeyProperty
Field Value
| Type | Description |
|---|---|
| Xamarin.Forms.BindableProperty |
EventHandlersProperty
Implements the attached property that is a collection of RemoteKeyHandlers.
Declaration
public static readonly BindableProperty EventHandlersProperty
Field Value
| Type | Description |
|---|---|
| Xamarin.Forms.BindableProperty |
Methods
GetAccessKey(BindableObject)
Returns the access key that is set to the view.
Declaration
public static RemoteControlKeyNames GetAccessKey(BindableObject view)
Parameters
| Type | Name | Description |
|---|---|---|
| Xamarin.Forms.BindableObject | view | The view to get the access key. |
Returns
| Type | Description |
|---|---|
| RemoteControlKeyNames | Returns the remote contol key name. |
GetEventHandlers(BindableObject)
Returns a collection of the RemoteKeyHandler for the specified view.
Developers can add or remove RemoteKeyHandlers using this collection.
Declaration
public static IList<RemoteKeyHandler> GetEventHandlers(BindableObject view)
Parameters
| Type | Name | Description |
|---|---|---|
| Xamarin.Forms.BindableObject | view | The view to get a collection of the |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IList<RemoteKeyHandler> | Returns a collection of the |
SetAccessKey(BindableObject, RemoteControlKeyNames)
Sets the access key to the specified view. When the access key is pressed, the specified view will directly get the focus and also be clicked if it is the Button.
Declaration
public static void SetAccessKey(BindableObject view, RemoteControlKeyNames value)
Parameters
| Type | Name | Description |
|---|---|---|
| Xamarin.Forms.BindableObject | view | The view to be set. |
| RemoteControlKeyNames | value | The remote control key name to be set to the view. |