Share via


IAsyncCommand<TExecute,TCanExecute> Interface

Definition

An Async implementation of ICommand for Task

public interface IAsyncCommand<in TExecute,in TCanExecute> : System.Windows.Input.ICommand, Xamarin.CommunityToolkit.ObjectModel.IAsyncCommand<in TExecute>

Type Parameters

TExecute
This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
TCanExecute
This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Derived
Implements
System.Windows.Input.ICommand IAsyncCommand<TExecute>

Properties

AllowsMultipleExecutions

Returns true if the Command allows simultaneous executions

(Inherited from IAsyncCommand<T>)
IsExecuting

Returns true when the Command is currently executing. Returns false when the Command is not executing

(Inherited from IAsyncCommand<T>)

Methods

CanExecute(TCanExecute)

Determines whether the command can execute in its current state

ExecuteAsync(T)

Executes the Command as a Task

(Inherited from IAsyncCommand<T>)
RaiseCanExecuteChanged()

Raises the CanExecuteChanged event.

(Inherited from IAsyncCommand<T>)

Applies to