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

stingray.ErrorDialog namespace reference

Description

The interface to access the error dialog system on the PlayStation 4.

This object is a singleton (there is only one ErrorDialog).

Functions

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

Generally, there is no need to call this, because the error dialog is closed by the user.

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

Call this function only when stingray.ErrorDialog.status() returns stingray.ErrorDialog.NONE.

Parameters

error :

integer

The error for which the error dialog needs to be opened.

user_id :

integer?

The ID of the player. Optional. This ID value is only neeeded for some types of errors. If omitted, the ID of the initial player is used when needed.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns
This function does not return any values.

Call this function only when stingray.ErrorDialog.status() returns stingray.ErrorDialog.INITIALIZED or stingray.ErrorDialog.FINISHED.

Parameters
This function does not accept any parameters.
Returns

integer

The status of the error dialog the last time update() was called. May be one of the status code constants.

This function is more lightweight than stingray.ErrorDialog.update(), but does not guarantee the most up-to-date results.

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

If the dialog is open, it is immediately terminated.

Parameters
This function does not accept any parameters.
Returns

integer

The current status of the error dialog. May be one of the status code constants.

You must call this function and act upon its return value once per frame while the error dialog is in use.

Status codes

May be returned by calls to update() and status().

RUNNING : integer

The error dialog is open.