Class ReactiveFragmentActivity
- Namespace
- ReactiveUI.AndroidSupport
- Assembly
- ReactiveUI.AndroidSupport.dll
This is an Activity that is both an Activity and has ReactiveObject powers (i.e. you can call RaiseAndSetIfChanged).
public class ReactiveFragmentActivity : FragmentActivity, IViewModelStoreOwner, ActivityCompat.IOnRequestPermissionsResultCallback, ActivityCompat.IRequestPermissionsRequestCodeValidator, ILifecycleOwner, IJavaObject, IDisposable, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, IReactiveNotifyPropertyChanged<ReactiveFragmentActivity>, IHandleObservableErrors
- Inheritance
-
FragmentActivityReactiveFragmentActivity
- Implements
-
IViewModelStoreOwnerActivityCompat.IOnRequestPermissionsResultCallbackActivityCompat.IRequestPermissionsRequestCodeValidatorILifecycleOwnerIJavaObject
- Derived
- Inherited Members
-
FragmentActivity.OnAttachFragment(Fragment)FragmentActivity.OnPrepareOptionsPanel(View, IMenu)FragmentActivity.OnResumeFragments()FragmentActivity.OnRetainCustomNonConfigurationInstance()FragmentActivity.OnRetainNonConfigurationInstance()FragmentActivity.SetEnterSharedElementCallback(SharedElementCallback)FragmentActivity.SetExitSharedElementCallback(SharedElementCallback)FragmentActivity.SupportFinishAfterTransition()FragmentActivity.SupportInvalidateOptionsMenu()FragmentActivity.SupportPostponeEnterTransition()FragmentActivity.SupportStartPostponedEnterTransition()FragmentActivity.JniPeerMembersFragmentActivity.ThresholdClassFragmentActivity.ThresholdTypeFragmentActivity.LastCustomNonConfigurationInstanceFragmentActivity.LifecycleFragmentActivity.SupportFragmentManagerFragmentActivity.SupportLoaderManagerFragmentActivity.ViewModelStore
- Extension Methods
Constructors
ReactiveFragmentActivity()
public ReactiveFragmentActivity()
Properties
Activated
Gets a signal when the activity fragment is activated.
public IObservable<Unit> Activated { get; }
Property Value
- IObservable<Unit>
ActivityResult
Gets the activity result.
public IObservable<(int, Result, Intent)> ActivityResult { get; }
Property Value
- IObservable<(int, Result, Intent)>
Changed
Gets an Observable that fires after a property has changed. Note that this should not fire duplicate change notifications if a property is set to the same value multiple times.
public IObservable<IReactivePropertyChangedEventArgs<ReactiveFragmentActivity>> Changed { get; }
Property Value
Changing
Gets an observable that fires before a property is about to be changed. Note that this should not fire duplicate change notifications if a property is set to the same value multiple times.
public IObservable<IReactivePropertyChangedEventArgs<ReactiveFragmentActivity>> Changing { get; }
Property Value
Deactivated
Gets a signal when the activity fragment is deactivated.
public IObservable<Unit> Deactivated { get; }
Property Value
- IObservable<Unit>
ThrownExceptions
Gets a observable which will fire whenever an exception would normally terminate ReactiveUI internal state.
public IObservable<Exception> ThrownExceptions { get; }
Property Value
Methods
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
OnActivityResult(int, Result?, Intent?)
protected override void OnActivityResult(int requestCode, Result? resultCode, Intent? data)
Parameters
requestCode
intresultCode
Resultdata
Intent
OnPause()
protected override void OnPause()
OnResume()
protected override void OnResume()
StartActivityForResultAsync(Intent, int)
Starts the activity for result asynchronously.
public Task<(Result, Intent)> StartActivityForResultAsync(Intent intent, int requestCode)
Parameters
intent
IntentThe intent.
requestCode
intThe request code.
Returns
- Task<(Result, Intent)>
A task with the result and intent.
StartActivityForResultAsync(Type, int)
Starts the activity for result asynchronously.
public Task<(Result, Intent)> StartActivityForResultAsync(Type type, int requestCode)
Parameters
Returns
- Task<(Result, Intent)>
A task with the result and intent.
SuppressChangeNotifications()
When this method is called, an object will not fire change notifications (neither traditional nor Observable notifications) until the return value is disposed.
public IDisposable SuppressChangeNotifications()
Returns
- IDisposable
An object that, when disposed, reenables change notifications.
Events
PropertyChanged
public event PropertyChangedEventHandler? PropertyChanged
Event Type
PropertyChanging
public event PropertyChangingEventHandler? PropertyChanging