Class AutoSuspendHelper
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
Helps manage android application lifecycle events.
public class AutoSuspendHelper : Object, IEnableLogger, IDisposable
- Inheritance
-
AutoSuspendHelper
- Implements
- Extension Methods
Constructors
AutoSuspendHelper(Application)
Initializes a new instance of the AutoSuspendHelper class.
public AutoSuspendHelper(Application hostApplication)
Parameters
hostApplication
ApplicationThe host application.
AutoSuspendHelper(NSApplicationDelegate)
Initializes a new instance of the AutoSuspendHelper class.
public AutoSuspendHelper(NSApplicationDelegate appDelegate)
Parameters
appDelegate
NSApplicationDelegateThe application delegate.
AutoSuspendHelper(Application)
Initializes a new instance of the AutoSuspendHelper class.
public AutoSuspendHelper(Application app)
Parameters
app
ApplicationThe application.
AutoSuspendHelper(UIApplicationDelegate)
Initializes a new instance of the AutoSuspendHelper class.
public AutoSuspendHelper(UIApplicationDelegate appDelegate)
Parameters
appDelegate
UIApplicationDelegateThe uiappdelegate.
Properties
IdleTimeout
Gets or sets the time out before the Auto Suspension happens.
public TimeSpan IdleTimeout { get; set; }
Property Value
LatestBundle
Gets or sets the latest bundle.
public static Bundle? LatestBundle { get; set; }
Property Value
- Bundle
LaunchOptions
Gets the launch options.
public IDictionary<string, string>? LaunchOptions { get; }
Property Value
- IDictionary<string, string>
The launch options.
UntimelyDemise
Gets a subject to indicate whether the application has untimely dismissed.
public static Subject<Unit> UntimelyDemise { get; }
Property Value
- Subject<Unit>
Methods
ApplicationShouldTerminate(NSApplication)
Applications the should terminate.
public NSApplicationTerminateReply ApplicationShouldTerminate(NSApplication sender)
Parameters
sender
NSApplicationThe sender.
Returns
- NSApplicationTerminateReply
The termination reply from the application.
DidBecomeActive(NSNotification)
Did become active.
public void DidBecomeActive(NSNotification notification)
Parameters
notification
NSNotificationThe notification.
DidEnterBackground(UIApplication)
Advances the enter background observable.
public void DidEnterBackground(UIApplication application)
Parameters
application
UIApplicationThe application.
DidFinishLaunching(NSNotification)
Did finish launching.
public void DidFinishLaunching(NSNotification notification)
Parameters
notification
NSNotificationThe notification.
DidHide(NSNotification)
Did hide.
public void DidHide(NSNotification notification)
Parameters
notification
NSNotificationThe notification.
DidResignActive(NSNotification)
Did resign active.
public void DidResignActive(NSNotification notification)
Parameters
notification
NSNotificationThe notification.
Dispose()
public void Dispose()
Dispose(bool)
Disposes of the items inside the class.
protected virtual void Dispose(bool disposing)
Parameters
disposing
boolIf we are disposing of managed objects or not.
FinishedLaunching(UIApplication, NSDictionary)
Advances the finished launching observable. Finisheds the launching.
public void FinishedLaunching(UIApplication application, NSDictionary launchOptions)
Parameters
application
UIApplicationThe application.
launchOptions
NSDictionaryThe launch options.
OnActivated(UIApplication)
Advances the on activated observable.
public void OnActivated(UIApplication application)
Parameters
application
UIApplicationThe application.