Class ReactiveAppCompatActivity
- Namespace
- ReactiveUI.AndroidX
- Assembly
- ReactiveUI.AndroidX.dll
This is an Activity that is both an Activity and has ReactiveObject powers (i.e. you can call RaiseAndSetIfChanged).
[RequiresDynamicCode("ReactiveAppCompatActivity inherits from ReactiveObject which uses extension methods that require dynamic code generation")]
[RequiresUnreferencedCode("ReactiveAppCompatActivity inherits from ReactiveObject which uses extension methods that may require unreferenced code")]
public class ReactiveAppCompatActivity : AppCompatActivity, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, IReactiveNotifyPropertyChanged<ReactiveAppCompatActivity>, IHandleObservableErrors
- Inheritance
-
Reactive
App Compat Activity
- Implements
-
IEnable
Logger
- Derived
- Extension Methods
Constructors
ReactiveAppCompatActivity()
Initializes a new instance of the Reactive
ReactiveAppCompatActivity(in nint, JniHandleOwnership)
Initializes a new instance of the Reactive
Parameters
handlenintThe handle.
ownershipJniHandle Ownership The ownership.
Properties
Activated
Gets a signal when activated.
Property Value
- IObservable<Unit>
The activated.
ActivityResult
Gets the activity result.
Property Value
- IObservable<(int request
Code , Result result, Intent intent)> The activity result.
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.
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.
Property Value
Deactivated
Gets a signal when deactivated.
Property Value
- IObservable<Unit>
The deactivated.
ThrownExceptions
Gets a observable which will fire whenever an exception would normally terminate ReactiveUI internal state.
Property Value
Methods
Dispose(bool)
Parameters
disposingbool
OnActivityResult(int, Result?, Intent?)
Parameters
requestCodeintresultCodeResultdataIntent
OnPause()
OnResume()
StartActivityForResultAsync(Intent, int)
Starts the activity for result asynchronously.
public Task<(Result result, Intent intent)> StartActivityForResultAsync(Intent intent, int requestCode)
Parameters
intentIntentThe intent.
requestCodeintThe request code.
Returns
StartActivityForResultAsync(Type, int)
Starts the activity for result asynchronously.
Parameters
Returns
SuppressChangeNotifications()
When this method is called, an object will not fire change notifications (neither traditional nor Observable notifications) until the return value is disposed.
Returns
- IDisposable
An object that, when disposed, reenables change notifications.