Environment Service

Note

This document covers documentation for Anthill Runtime’s implementation for the Environment Service. If you need the documentation for the actual service, please see Environment Service instead.

How To Get Instance

EnvironmentServicePtr service =
    online::AnthillRuntime::Instance().get<online::EnvironmentService>();
EnvironmentService service =
    AnthillRuntime.Get(EnvironmentService.ID, EnvironmentService.class);

Get Environment Information

Returns the environment information based on the application version.

Note

The environment service location, along with game name and version should be hardcoded inside the game.

void getEnvironmentInfo(EnvironmentInfoCallback callback);
public void getEnvironmentInfo(final EnvironmentInfoCallback callback)
callback
the callback that would be called once the environment information has been received.

Please see Get the Environment information REST API call for more information.