Summary
Syntax
public static ReactiveCommand<Unit, TResult> Create<TResult>(Func<TResult> execute, IObservable<bool> canExecute = null, IScheduler? outputScheduler = null)
Type Parameters
Name |
Description |
TResult |
The type of value returned by command executions. |
Parameters
Name |
Type |
Description |
execute |
Func<TResult> |
The function 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<Unit, TResult> |
The ReactiveCommand instance.
|