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

Represents ReactiveCommand<Unit> More...

Inheritance diagram for UniRx.ReactiveCommand< T >:
UniRx.IReactiveCommand< T > UniRx.IObservable< T >

Public Member Functions

 ReactiveCommand ()
 CanExecute is always true.
 
 ReactiveCommand (IObservable< bool > canExecuteSource, bool initialValue=true)
 CanExecute is changed from canExecute sequence.
 
bool Execute ()
 Push null to subscribers.
 
void ForceExecute ()
 Force push parameter to subscribers.
 
 ReactiveCommand ()
 CanExecute is always true.
 
 ReactiveCommand (IObservable< bool > canExecuteSource, bool initialValue=true)
 CanExecute is changed from canExecute sequence.
 
bool Execute (T parameter)
 Push parameter to subscribers when CanExecute. More...
 
void ForceExecute (T parameter)
 Force push parameter to subscribers.
 
IDisposable Subscribe (IObserver< T > observer)
 Subscribe execute. More...
 
void Dispose ()
 Stop all subscription and lock CanExecute is false.
 
bool Execute (T parameter)
 
IDisposable Subscribe (IObserver< T > observer)
 

Properties

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

Detailed Description

Represents ReactiveCommand<Unit>

Member Function Documentation

◆ Execute()

bool UniRx.ReactiveCommand< T >.Execute ( parameter)

Push parameter to subscribers when CanExecute.

Implements UniRx.IReactiveCommand< T >.

◆ Subscribe()

IDisposable UniRx.ReactiveCommand< T >.Subscribe ( IObserver< T >  observer)

Subscribe execute.

Implements UniRx.IObservable< T >.

Property Documentation

◆ CanExecute


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