Beamable SDK
Public Member Functions | List of all members
Beamable.Common.Dependencies.IBeamableDisposable Interface Reference

Any service that is in a IDependencyProvider can have this interface. When the IDependencyProvider is disposed via the IDependencyProviderScope.Dispose method, this service's IBeamableDisposable.OnDispose method will trigger. More...

Inheritance diagram for Beamable.Common.Dependencies.IBeamableDisposable:
Inheritance graph
[legend]

Public Member Functions

Promise OnDispose ()
 Used as a way to allow services attached to a IDependencyProvider to clean up their state when the IDependencyProviderScope.Dispose method is called More...
 

Detailed Description

Any service that is in a IDependencyProvider can have this interface. When the IDependencyProvider is disposed via the IDependencyProviderScope.Dispose method, this service's IBeamableDisposable.OnDispose method will trigger.

Member Function Documentation

◆ OnDispose()

Promise Beamable.Common.Dependencies.IBeamableDisposable.OnDispose ( )

Used as a way to allow services attached to a IDependencyProvider to clean up their state when the IDependencyProviderScope.Dispose method is called

Returns
A promise that represents when the service's clean up is complete. This promise will hang the entire disposal process of the IDependencyProviderScope

Implemented in Beamable.BeamContext, Beamable.Api.Notification.PubnubSubscriptionManager, Beamable.Player.PlayerAnnouncements, and Beamable.Player.PlayerStats.


The documentation for this interface was generated from the following file: