Class RemoteKeyHandler
The RemoteKeyHandler contains a command and key events that react to remote controller events.
Inheritance
Implements
Inherited Members
Namespace: Tizen.TV.UIControls.Forms
Assembly: Tizen.TV.UIControls.Forms.dll
Syntax
public class RemoteKeyHandler : BindableObject, INotifyPropertyChanged, IDynamicResourceHandler
Constructors
RemoteKeyHandler()
Initializes a new instance of the RemoteKeyHandler class.
Declaration
public RemoteKeyHandler()
RemoteKeyHandler(Action<RemoteControlKeyEventArgs>)
Initializes a new instance of the RemoteKeyHandler class with its action which is set to Command.
Declaration
public RemoteKeyHandler(Action<RemoteControlKeyEventArgs> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<RemoteControlKeyEventArgs> | action | An action to invoke when the remote control event is activated. |
RemoteKeyHandler(Action<RemoteControlKeyEventArgs>, RemoteControlKeyTypes)
Initializes a new instance of the RemoteKeyHandler class with its action which is set to Command and key type.
Declaration
public RemoteKeyHandler(Action<RemoteControlKeyEventArgs> action, RemoteControlKeyTypes keyType)
Parameters
Type | Name | Description |
---|---|---|
System.Action<RemoteControlKeyEventArgs> | action | An action to invoke when the remote control event with the specifiec key type is invoked. |
RemoteControlKeyTypes | keyType | A key type to invoke the action. |
Fields
CommandProperty
Backing store for the Command bindable property.
Declaration
public static readonly BindableProperty CommandProperty
Field Value
Type | Description |
---|---|
Xamarin.Forms.BindableProperty |
Properties
Command
Gets or sets a command that invokes when the remote control key event is emitted.
Declaration
public ICommand Command { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
Events
KeyDown
Occurs when the remote control key is pressed.
Declaration
public event EventHandler<RemoteControlKeyEventArgs> KeyDown
Event Type
Type | Description |
---|---|
System.EventHandler<RemoteControlKeyEventArgs> |
KeyUp
Occurs when the remote control key is released.
Declaration
public event EventHandler<RemoteControlKeyEventArgs> KeyUp
Event Type
Type | Description |
---|---|
System.EventHandler<RemoteControlKeyEventArgs> |