Table of Contents

Class ApplicationEnd

Namespace
Switchboard
Assembly
Switchboard.DependencyInjection.dll

Provides an event that is invoked near the very end of the application, after Application.quitting and OnDestroy() of MonoBehaviours. Any scripts that are ordered to execute later than Destructor will have OnDestroy() called after this event.

public static class ApplicationEnd
Inheritance
ApplicationEnd

Methods

Add(Action)

Adds an observer Action to an event that is invoked near the very end of the application.

public static void Add(Action handler)

Parameters

handler Action

The Action to add to the event.

Exceptions

ArgumentNullException

Thrown if handler is null.

InvalidOperationException

Thrown if the application is not playing.

Remove(Action)

Removes an observer Action from the application end event.

public static void Remove(Action handler)

Parameters

handler Action

The Action to remove from the event.

Exceptions

ArgumentNullException

Thrown if handler is null.