Class ReactivePreferenceActivity
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
This is an Activity that is both an Activity and has ReactiveObject powers (i.e. you can call RaiseAndSetIfChanged).
public class ReactivePreferenceActivity : PreferenceActivity, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, IReactiveNotifyPropertyChanged<ReactivePreferenceActivity>, IHandleObservableErrors
- Inheritance
-
ReactivePreferenceActivity
- Implements
- Derived
- Extension Methods
Constructors
ReactivePreferenceActivity()
Initializes a new instance of the ReactivePreferenceActivity class.
protected ReactivePreferenceActivity()
ReactivePreferenceActivity(in IntPtr, JniHandleOwnership)
Initializes a new instance of the ReactivePreferenceActivity class.
protected ReactivePreferenceActivity(in IntPtr handle, JniHandleOwnership ownership)
Parameters
handle
IntPtrThe pointer.
ownership
JniHandleOwnershipThe ownership.
Properties
Activated
Gets a signal when the activity is activated.
public IObservable<Unit> Activated { get; }
Property Value
- IObservable<Unit>
The deactivated.
ActivityResult
Gets a signal with an activity result.
public IObservable<(int, Result, Intent)> ActivityResult { get; }
Property Value
- IObservable<(int, Result, Intent)>
The deactivated.
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<ReactivePreferenceActivity>> 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<ReactivePreferenceActivity>> Changing { get; }
Property Value
Deactivated
Gets a signal when the activity is deactivated.
public IObservable<Unit> Deactivated { get; }
Property Value
- IObservable<Unit>
The deactivated.
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, re-enables change notifications.
Events
PropertyChanged
public event PropertyChangedEventHandler? PropertyChanged
Event Type
PropertyChanging
public event PropertyChangingEventHandler? PropertyChanging