public class EOS_ProgressionSnapshot_Interface
extends com.sun.jna.PointerType
BeginSnapshot must be called to obtain a handle for a given player. AddProgression allows you to add Key/Value pairs that represent some state for that player in the game. SubmitSnapshot sends all the progression data you have added (via AddProgression) to the service. EndSnapshot cleans up internal resources allocated for that snapshot. DeleteSnapshot wipes out all data associated with a particular player.
EOS_Platform_Interface.getProgressionSnapshotInterface()| Constructor and Description |
|---|
EOS_ProgressionSnapshot_Interface() |
EOS_ProgressionSnapshot_Interface(com.sun.jna.Pointer address) |
| Modifier and Type | Method and Description |
|---|---|
EOS_EResult |
addProgression(EOS_ProgressionSnapshot_AddProgressionOptions options)
Stores a Key/Value pair in memory for a given snapshot.
|
int |
beginSnapshot(EOS_ProgressionSnapshot_BeginSnapshotOptions options)
Creates a new progression-snapshot resource for a given user.
|
void |
deleteSnapshot(EOS_ProgressionSnapshot_DeleteSnapshotOptions options,
com.sun.jna.Pointer clientData,
EOS_ProgressionSnapshot_OnDeleteSnapshotCallback completionDelegate)
Wipes out all progression data for the given user from the service.
|
EOS_EResult |
endSnapshot(EOS_ProgressionSnapshot_EndSnapshotOptions options)
Cleans up and releases resources associated with the given progression snapshot identifier.
|
void |
submitSnapshot(EOS_ProgressionSnapshot_SubmitSnapshotOptions options,
com.sun.jna.Pointer clientData,
EOS_ProgressionSnapshot_OnSubmitSnapshotCallback completionDelegate)
Saves the previously added Key/Value pairs of a given Snapshot to the service.
|
public EOS_ProgressionSnapshot_Interface(com.sun.jna.Pointer address)
public EOS_ProgressionSnapshot_Interface()
public int beginSnapshot(EOS_ProgressionSnapshot_BeginSnapshotOptions options) throws EOSException
options - Object containing properties that identifies the PUID this Snapshot will belong to.EOSProgressionSnapshotSnapshotIdUnavailableException - when no IDs are available. This is irrecoverable state.EOSExceptionpublic EOS_EResult addProgression(EOS_ProgressionSnapshot_AddProgressionOptions options)
The order in which the Key/Value pairs are added is stored as is for later retrieval/display. Ideally, you would make multiple calls to AddProgression() followed by a single call to SubmitSnapshot().
options - Object containing properties that identify the snapshot and the Key/Value pair to add.EOS_EResult.EOS_Success when successful; otherwise, EOS_EResult.EOS_NotFoundpublic void submitSnapshot(EOS_ProgressionSnapshot_SubmitSnapshotOptions options, com.sun.jna.Pointer clientData, EOS_ProgressionSnapshot_OnSubmitSnapshotCallback completionDelegate)
Note: This will overwrite any prior progression data stored with the service that's associated with the user.
options - Object containing properties that identify the snapshot to submit.clientData - Optional context that is passed back in the completion delegate.completionDelegate - A callback that is fired when the operation completes, either successfully or in error.public EOS_EResult endSnapshot(EOS_ProgressionSnapshot_EndSnapshotOptions options)
options - Object containing properties that identify the snapshot to end.EOS_EResult.EOS_Success when successful; otherwise, EOS_EResult.EOS_NotFoundpublic void deleteSnapshot(EOS_ProgressionSnapshot_DeleteSnapshotOptions options, com.sun.jna.Pointer clientData, EOS_ProgressionSnapshot_OnDeleteSnapshotCallback completionDelegate)
options - Object containing properties that identify the PUID whose snapshot data should be deleted.clientData - Optional context that is passed back in the completion delegate.completionDelegate - A callback that is fired when the operation completes, either successfully or in error.