Class ReactivePreferenceFragment
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
This is a PreferenceFragment that is both an Activity and has ReactiveObject powers (i.e. you can call RaiseAndSetIfChanged).
public class ReactivePreferenceFragment : PreferenceFragment, IReactiveNotifyPropertyChanged<ReactivePreferenceFragment>, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, IHandleObservableErrors
- Inheritance
-
ReactivePreferenceFragment
- Implements
- Derived
- Extension Methods
Constructors
ReactivePreferenceFragment()
Initializes a new instance of the ReactivePreferenceFragment class.
protected ReactivePreferenceFragment()
ReactivePreferenceFragment(in IntPtr, JniHandleOwnership)
Initializes a new instance of the ReactivePreferenceFragment class.
protected ReactivePreferenceFragment(in IntPtr handle, JniHandleOwnership ownership)
Parameters
handle
IntPtrThe handle.
ownership
JniHandleOwnershipThe ownership.
Properties
Activated
Gets a signal when the fragment is activated.
public IObservable<Unit> Activated { get; }
Property Value
- IObservable<Unit>
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<ReactivePreferenceFragment>> 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<ReactivePreferenceFragment>> Changing { get; }
Property Value
Deactivated
Gets a signal when the 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
OnPause()
public override void OnPause()
OnResume()
public override void OnResume()
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