Summary
Syntax
public static ReactiveCommand<TParam, Unit> Create<TParam>(Action<TParam> execute, IObservable<bool> canExecute = null, IScheduler? outputScheduler = null)
Type Parameters
Name |
Description |
TParam |
The type of the parameter passed through to command execution. |
Parameters
Name |
Type |
Description |
execute |
Action<TParam> |
The action to execute whenever the command is executed. |
canExecute |
IObservable<bool> |
An optional observable that dictates the availability of the command for execution. |
outputScheduler |
IScheduler? |
An optional scheduler that is used to surface events. Defaults to RxApp.MainThreadScheduler . |
Return Value
Type |
Description |
ReactiveCommand<TParam, Unit> |
The ReactiveCommand instance.
|