SaveSystemDialog - stingray.SaveSystemDialog namespace reference - Stingray Lua API Reference

stingray.SaveSystemDialog namespace reference

Description

The interface to access save system dialog functionality on PlayStation 4.

As the object is a singleton (there is only one SaveSystemDialog), you do not need to pass any SaveSystemDialog object to the functions. All the functions operate on the SaveSystemDialog singleton.

Sample usage:

Currently, the save system dialog can only be used to display the 'out of space when saving' error information.

Functions

Parameters
This function does not accept any parameters.
Returns
This function does not return any values.

Generally, this is done by a user action. The stingray.SaveSystemDialog.status() must be stingray.SaveSystemDialog.RUNNING when calling this function.

Parameters
This function does not accept any parameters.
Returns
This function does not return any values.

You must call this function before stingray.SaveSystemDialog.open().

Parameters

required_blocks :

integer

The number of blocks the user needs to free. Required. As specified in stingray.SaveSystem.save_error_result().

user_id :

integer

The ID of the user for whom the saved game must be created. Optional. If omitted, the ID of the user that launched the application is used.

Returns
This function does not return any values.
Parameters
This function does not accept any parameters.
Returns

integer

The status of the save system dialog. May be any of the status constants.

Parameters
This function does not accept any parameters.
Returns
This function does not return any values.

You must call terminate() whether the operation completed successfully or not. You can call terminate() any time after stingray.SaveSystemDialog.initialize() in order to abort the save system dialog.

Status codes

Status codes that may be returned by the status() function.

FINISHED : integer

The save system dialog has completed.

INITIALIZED : integer

The save system dialog is initialized, but no dialog is active.

NONE : integer

Either the save system dialog was either never initialized, or it has already been terminated.