Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
UniRx.AsyncReactiveCommand< T > Class Template Reference

Variation of ReactiveCommand, when executing command then CanExecute = false after CanExecute = true. More...

Inheritance diagram for UniRx.AsyncReactiveCommand< T >:
UniRx.IAsyncReactiveCommand< T >

Public Member Functions

 AsyncReactiveCommand ()
 CanExecute is automatically changed when executing to false and finished to true.
 
 AsyncReactiveCommand (IObservable< bool > canExecuteSource)
 CanExecute is automatically changed when executing to false and finished to true.
 
 AsyncReactiveCommand (IReactiveProperty< bool > sharedCanExecute)
 CanExecute is automatically changed when executing to false and finished to true. The source is shared between other AsyncReactiveCommand.
 
IDisposable Execute ()
 
 AsyncReactiveCommand ()
 CanExecute is automatically changed when executing to false and finished to true.
 
 AsyncReactiveCommand (IObservable< bool > canExecuteSource)
 CanExecute is automatically changed when executing to false and finished to true.
 
 AsyncReactiveCommand (IReactiveProperty< bool > sharedCanExecute)
 CanExecute is automatically changed when executing to false and finished to true. The source is shared between other AsyncReactiveCommand.
 
IDisposable Execute (T parameter)
 Push parameter to subscribers when CanExecute. More...
 
IDisposable Subscribe (Func< T, IObservable< Unit > > asyncAction)
 Subscribe execute. More...
 
void Dispose ()
 Stop all subscription and lock CanExecute is false.
 
IDisposable Execute (T parameter)
 
IDisposable Subscribe (Func< T, IObservable< Unit > > asyncAction)
 

Properties

IReadOnlyReactiveProperty< bool > CanExecute [get]
 
bool IsDisposed [get]
 
- Properties inherited from UniRx.IAsyncReactiveCommand< T >
IReadOnlyReactiveProperty< bool > CanExecute [get]
 

Detailed Description

Variation of ReactiveCommand, when executing command then CanExecute = false after CanExecute = true.

Variation of ReactiveCommand, canExecute is changed when executing command then CanExecute = false after CanExecute = true.

Member Function Documentation

◆ Execute()

IDisposable UniRx.AsyncReactiveCommand< T >.Execute ( parameter)

Push parameter to subscribers when CanExecute.

Implements UniRx.IAsyncReactiveCommand< T >.

◆ Subscribe()

IDisposable UniRx.AsyncReactiveCommand< T >.Subscribe ( Func< T, IObservable< Unit > >  asyncAction)

Subscribe execute.

Implements UniRx.IAsyncReactiveCommand< T >.

Property Documentation

◆ CanExecute


The documentation for this class was generated from the following file: