sdlGetSandbox function

int sdlGetSandbox()

Get the application sandbox environment, if any.

\returns the application sandbox environment or SDL_SANDBOX_NONE if the application is not running in a sandbox environment.

\since This function is available since SDL 3.1.6.

extern SDL_DECLSPEC SDL_Sandbox SDLCALL SDL_GetSandbox(void)

Implementation

int sdlGetSandbox() {
  final sdlGetSandboxLookupFunction = libSdl3
      .lookupFunction<Int32 Function(), int Function()>('SDL_GetSandbox');
  return sdlGetSandboxLookupFunction();
}