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).
public class ReactiveAppCompatActivity : AppCompatActivity, KeyEventDispatcher.IComponent, IFullyDrawnReporterOwner, IOnBackPressedDispatcherOwner, IContextAware, IActivityResultCaller, IActivityResultRegistryOwner, IOnMultiWindowModeChangedProvider, IOnNewIntentProvider, IOnPictureInPictureModeChangedProvider, IOnConfigurationChangedProvider, IOnTrimMemoryProvider, IMenuHost, IHasDefaultViewModelProviderFactory, IViewModelStoreOwner, ISavedStateRegistryOwner, ILifecycleOwner, ActivityCompat.IOnRequestPermissionsResultCallback, ActivityCompat.IRequestPermissionsRequestCodeValidator, ActionBarDrawerToggle.IDelegateProvider, IAppCompatCallback, TaskStackBuilder.ISupportParentable, IJavaObject, IDisposable, IJavaPeerable, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, IReactiveNotifyPropertyChanged<ReactiveAppCompatActivity>, IHandleObservableErrors
- Inheritance
-
ComponentActivityComponentActivityFragmentActivityAppCompatActivityReactiveAppCompatActivity
- Implements
-
KeyEventDispatcher.IComponentIFullyDrawnReporterOwnerIOnBackPressedDispatcherOwnerIContextAwareIActivityResultCallerIActivityResultRegistryOwnerIOnMultiWindowModeChangedProviderIOnNewIntentProviderIOnPictureInPictureModeChangedProviderIOnConfigurationChangedProviderIOnTrimMemoryProviderIMenuHostIHasDefaultViewModelProviderFactoryIViewModelStoreOwnerISavedStateRegistryOwnerILifecycleOwnerActivityCompat.IOnRequestPermissionsResultCallbackActivityCompat.IRequestPermissionsRequestCodeValidatorActionBarDrawerToggle.IDelegateProviderIAppCompatCallbackTaskStackBuilder.ISupportParentableIJavaObjectIJavaPeerable
- Derived
- Inherited Members
-
AppCompatActivity.OnCreateSupportNavigateUpTaskStack(TaskStackBuilder)AppCompatActivity.OnLocalesChanged(LocaleListCompat)AppCompatActivity.OnPrepareSupportNavigateUpTaskStack(TaskStackBuilder)AppCompatActivity.OnSupportActionModeFinished(ActionMode)AppCompatActivity.OnSupportActionModeStarted(ActionMode)AppCompatActivity.OnSupportContentChanged()AppCompatActivity.OnSupportNavigateUp()AppCompatActivity.OnWindowStartingSupportActionMode(ActionMode.ICallback)AppCompatActivity.SetSupportActionBar(Toolbar)AppCompatActivity.StartSupportActionMode(ActionMode.ICallback)AppCompatActivity.SupportNavigateUpTo(Intent)AppCompatActivity.SupportShouldUpRecreateTask(Intent)AppCompatActivity.JniPeerMembersAppCompatActivity.ThresholdClassAppCompatActivity.ThresholdTypeAppCompatActivity.DelegateAppCompatActivity.DrawerToggleDelegateAppCompatActivity.SupportActionBarAppCompatActivity.SupportParentActivityIntentFragmentActivity.OnAttachFragment(Fragment)FragmentActivity.OnResumeFragments()FragmentActivity.SetEnterSharedElementCallback(SharedElementCallback)FragmentActivity.SetExitSharedElementCallback(SharedElementCallback)FragmentActivity.SupportFinishAfterTransition()FragmentActivity.SupportInvalidateOptionsMenu()FragmentActivity.SupportPostponeEnterTransition()FragmentActivity.SupportStartPostponedEnterTransition()FragmentActivity.LifecycleFragmentActivity.SupportFragmentManagerFragmentActivity.SupportLoaderManagerComponentActivity.AddMenuProvider(IMenuProvider)ComponentActivity.AddMenuProvider(IMenuProvider, ILifecycleOwner)ComponentActivity.AddMenuProvider(IMenuProvider, ILifecycleOwner, Lifecycle.State)ComponentActivity.AddOnConfigurationChangedListener(IConsumer)ComponentActivity.AddOnContextAvailableListener(IOnContextAvailableListener)ComponentActivity.AddOnMultiWindowModeChangedListener(IConsumer)ComponentActivity.AddOnNewIntentListener(IConsumer)ComponentActivity.AddOnPictureInPictureModeChangedListener(IConsumer)ComponentActivity.AddOnTrimMemoryListener(IConsumer)ComponentActivity.InitializeViewTreeOwners()ComponentActivity.InvalidateMenu()ComponentActivity.OnRetainCustomNonConfigurationInstance()ComponentActivity.OnRetainNonConfigurationInstance()ComponentActivity.PeekAvailableContext()ComponentActivity.RegisterForActivityResult(ActivityResultContract, IActivityResultCallback)ComponentActivity.RegisterForActivityResult(ActivityResultContract, ActivityResultRegistry, IActivityResultCallback)ComponentActivity.RemoveMenuProvider(IMenuProvider)ComponentActivity.RemoveOnConfigurationChangedListener(IConsumer)ComponentActivity.RemoveOnContextAvailableListener(IOnContextAvailableListener)ComponentActivity.RemoveOnMultiWindowModeChangedListener(IConsumer)ComponentActivity.RemoveOnNewIntentListener(IConsumer)ComponentActivity.RemoveOnPictureInPictureModeChangedListener(IConsumer)ComponentActivity.RemoveOnTrimMemoryListener(IConsumer)ComponentActivity.ActivityResultRegistryComponentActivity.DefaultViewModelCreationExtrasComponentActivity.DefaultViewModelProviderFactoryComponentActivity.FullyDrawnReporterComponentActivity.LastCustomNonConfigurationInstanceComponentActivity.OnBackPressedDispatcherComponentActivity.SavedStateRegistryComponentActivity.ViewModelStoreComponentActivity.ContextAvailableComponentActivity.GetExtraData(Class)ComponentActivity.PutExtraData(ComponentActivity.ExtraData)ComponentActivity.SuperDispatchKeyEvent(KeyEvent)
- Extension Methods
Constructors
ReactiveAppCompatActivity()
Initializes a new instance of the ReactiveAppCompatActivity class.
protected ReactiveAppCompatActivity()
ReactiveAppCompatActivity(in IntPtr, JniHandleOwnership)
Initializes a new instance of the ReactiveAppCompatActivity class.
protected ReactiveAppCompatActivity(in IntPtr handle, JniHandleOwnership ownership)
Parameters
handle
IntPtrThe handle.
ownership
JniHandleOwnershipThe ownership.
Properties
Activated
Gets a signal when activated.
public IObservable<Unit> Activated { get; }
Property Value
- IObservable<Unit>
The activated.
ActivityResult
Gets the activity result.
public IObservable<(int, Result, Intent)> ActivityResult { get; }
Property Value
- IObservable<(int, Result, 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.
public IObservable<IReactivePropertyChangedEventArgs<ReactiveAppCompatActivity>> 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<ReactiveAppCompatActivity>> Changing { get; }
Property Value
Deactivated
Gets a signal when 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, reenables change notifications.
Events
PropertyChanged
public event PropertyChangedEventHandler? PropertyChanged
Event Type
PropertyChanging
public event PropertyChangingEventHandler? PropertyChanging