The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

ReactiveCommand.

Create(Action, IObservable<bool>, IScheduler?) Method

Summary

Creates a parameterless ReactiveCommand<TParam, TResult> with synchronous execution logic.
Namespace
ReactiveUI
Containing Type
ReactiveCommand

Syntax

public static ReactiveCommand<Unit, Unit> Create(Action execute, IObservable<bool> canExecute = null, IScheduler? outputScheduler = null)

Parameters

Name Type Description
execute Action 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<Unit, Unit> The ReactiveCommand instance.