public class EOS
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
EOS_HOTFIX_VERSION
EOS SDK hotfix version
|
static int |
EOS_MAJOR_VERSION
EOS SDK major version
|
static int |
EOS_MINOR_VERSION
EOS SDK minor version
|
static int |
EOS_PATCH_VERSION
EOS SDK patch version
|
static java.lang.String |
EOS_PLATFORM_CHECKFORLAUNCHERANDRESTART_ENV_VAR
The name of the env var used to determine if the game was launched by the Epic Games Launcher.
|
static java.lang.String |
EOS_VERSION_STRING_BASE
EOS SDK version string
|
| Constructor and Description |
|---|
EOS() |
| Modifier and Type | Method and Description |
|---|---|
EOS_EResult |
EOS_ByteArray_ToString(byte[] byteArray,
int length,
byte[] outBuffer,
com.sun.jna.ptr.IntByReference inOutBufferLength)
Encode a byte array into hex encoded string
|
static EOS_EResult |
EOS_Initialize(EOS_InitializeOptions options)
Initialize the Epic Online Services SDK.
|
static EOS_Platform_Interface |
EOS_Platform_Create(EOS_Platform_Options options)
Create a single Epic Online Services Platform Instance.
|
static EOS_EResult |
EOS_Shutdown()
Tear down the Epic Online Services SDK.
|
public static final int EOS_MAJOR_VERSION
public static final int EOS_MINOR_VERSION
public static final int EOS_PATCH_VERSION
public static final int EOS_HOTFIX_VERSION
public static final java.lang.String EOS_VERSION_STRING_BASE
public static final java.lang.String EOS_PLATFORM_CHECKFORLAUNCHERANDRESTART_ENV_VAR
During the call to EOS_Platform_Create, the command line that was used to launch the app is inspected, and if it is recognized as coming from the Epic Games Launcher, this environment variable is set to 1.
NOTE: You can force the EOS_Platform_CheckForLauncherAndRestart API to relaunch the title by explicitly unsetting this environment variable before calling EOS_Platform_CheckForLauncherAndRestart.
public static EOS_EResult EOS_Initialize(EOS_InitializeOptions options)
Before calling any other function in the SDK, clients must call this function.
This function must only be called one time and must have a corresponding EOS_Shutdown call.
options - - The initialization options to use for the SDK.EOS_EResult.EOS_Success is returned if the SDK successfully initializes.EOS_EResult.EOS_AlreadyConfigured is returned if the function has already been called.EOS_EResult.EOS_InvalidParameters is returned if the provided options are invalid.public static EOS_EResult EOS_Shutdown()
Once this function has been called, no more SDK calls are permitted; calling anything after EOS_Shutdown will result in undefined behavior.
EOS_EResult.EOS_Success is returned if the SDK is successfully torn down.EOS_EResult.EOS_NotConfigured is returned if a successful call to EOS_Initialize has not been made.EOS_EResult.EOS_UnexpectedError is returned if EOS_Shutdown has already been called.public static EOS_Platform_Interface EOS_Platform_Create(EOS_Platform_Options options)
The platform instance is used to gain access to the various Epic Online Services.
This function returns an opaque handle to the platform instance, and that handle must be passed to EOS_Platform_Release to release the instance.
options - platform create optionspublic EOS_EResult EOS_ByteArray_ToString(byte[] byteArray, int length, byte[] outBuffer, com.sun.jna.ptr.IntByReference inOutBufferLength)
byteArray - byte arraylength - byte countoutBuffer - out bufferinOutBufferLength - exchange bufferEOS_EResult.EOS_Success if the encoding was successful and passed out in OutBufferEOS_EResult.EOS_InvalidParameters if you pass a null pointer on invalid length for any of the parametersEOS_EResult.EOS_LimitExceeded - The outBuffer is not large enough to receive the encoding. inOutBufferLength contains the required minimum length to perform the operation successfully.