Class EditorGameServiceFlagEnabler
Base class for services which require service flag handling when toggling.
Implements
Inherited Members
Namespace: Unity.Services.Core.Editor
Assembly: Unity.Services.Core.Editor.dll
Syntax
public abstract class EditorGameServiceFlagEnabler : IEditorGameServiceEnabler
Properties
FlagName
Name of the service in the services flags API
Declaration
protected abstract string FlagName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Disable()
Disables the Service. Also sends an API request to disable the service on the dashboard.
Declaration
public void Disable()
DisableLocalSettings()
Disables service.
Declaration
protected abstract void DisableLocalSettings()
Enable()
Enables the service. Also sends an API request to disable the service on the dashboard.
Declaration
public void Enable()
EnableLocalSettings()
Enables the service
Declaration
protected abstract void EnableLocalSettings()
IsEnabled()
Gets the enablement status of the service
Declaration
public abstract bool IsEnabled()
Returns
Type | Description |
---|---|
bool | The status of the service |
Events
ServiceFlagRequestComplete
The event fired when the web request that handles setting the service flag is complete
Declaration
public event Action ServiceFlagRequestComplete
Event Type
Type | Description |
---|---|
Action |
Remarks
This event is only raised when the constant ENABLE_EDITOR_GAME_SERVICES
is defined.
Kept outside of this define to avoid an API breaking change.