ReactiveFragmentActivity class¶
Attributes: [DebuggerDisplay("{Activated}, {Deactivated}")]
Defined in
Namespace: ReactiveUI.AndroidX
Assembly: ReactiveUI.AndroidX.dll
Full name: ReactiveUI.AndroidX.ReactiveFragmentActivity
Modifiers: public
Summary¶
This is an Activity that is both an Activity and has ReactiveObject powers (i.e. you can call RaiseAndSetIfChanged).
Applies to
net10.0-android36.0
Class hierarchy
classDiagram
class ReactiveFragmentActivity
class FragmentActivity
FragmentActivity <|-- ReactiveFragmentActivity
class IReactiveObject {
<>
}
IReactiveObject <|.. ReactiveFragmentActivity
class INotifyPropertyChanged {
<>
}
INotifyPropertyChanged <|.. ReactiveFragmentActivity
class INotifyPropertyChanging {
<>
}
INotifyPropertyChanging <|.. ReactiveFragmentActivity
class IEnableLogger {
<>
}
IEnableLogger <|.. ReactiveFragmentActivity
class IReactiveNotifyPropertyChanged~ReactiveFragmentActivity~ {
<>
}
IReactiveNotifyPropertyChanged~ReactiveFragmentActivity~ <|.. ReactiveFragmentActivity
class IHandleObservableErrors {
<>
}
IHandleObservableErrors <|.. ReactiveFragmentActivity
Inherits from: FragmentActivity
Implements: IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, IReactiveNotifyPropertyChanged
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| 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... |
| 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... |
| ThrownExceptions | Gets a observable which will fire whenever an exception would normally terminate ReactiveUI internal state. |
| Activated | Gets a signal when the activity fragment is activated. |
| Deactivated | Gets a signal when the activity fragment is deactivated. |
| ActivityResult | Gets the activity result. |
Methods¶
| Name | Summary |
|---|---|
| SuppressChangeNotifications | When this method is called, an object will not fire change notifications (neither traditional nor Observable notifications) until the return value is disposed. |
| StartActivityForResultAsync | Starts the activity for result asynchronously. |
| OnPause | Called as part of the activity lifecycle when the user no longer actively interacts with the activity, but it is still visible on screen. |
| OnResume | Called after #onRestoreInstanceState, #onRestart, or #onPause. |
| OnActivityResult | Called when an activity you launched exits, giving you the requestCode you started it with, the resultCode it returned, and any additional data from it. |
| Dispose | To be added. |
Events¶
| Name | Summary |
|---|---|
| PropertyChanging | Occurs when a property value is changing. |
| PropertyChanged | Occurs when a property value changes. |