Share via


IAsyncValueCommand<TExecute,TCanExecute> Interface

Definition

An Async implementation of ICommand for ValueTask

public interface IAsyncValueCommand<in TExecute,in TCanExecute> : System.Windows.Input.ICommand, Xamarin.CommunityToolkit.ObjectModel.IAsyncValueCommand<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 IAsyncValueCommand<TExecute>

Properties

AllowsMultipleExecutions

Returns true if the Command allows simultaneous executions

(Inherited from IAsyncValueCommand<T>)
IsExecuting

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

(Inherited from IAsyncValueCommand<T>)

Methods

CanExecute(TCanExecute)

Determines whether the command can execute in its current state

ExecuteAsync(T)

Executes the Command as a ValueTask

(Inherited from IAsyncValueCommand<T>)
RaiseCanExecuteChanged()

Raises the CanExecuteChanged event.

(Inherited from IAsyncValueCommand<T>)

Applies to