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

stingray.MsgDialog namespace reference

Description

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

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

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 message 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.MsgDialog.status() returns stingray.MsgDialog.NONE.

Parameters

message_type :

integer

The type of message to show.

user_id :

integer?

The ID of the player. Optional. This ID value is only neeeded for some types of messages. 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.MsgDialog.status() returns stingray.MsgDialog.INITIALIZED or stingray.MsgDialog.FINISHED.

Parameters
This function does not accept any parameters.
Returns

integer

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

This function is more lightweight than stingray.MsgDialog.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 message 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 message dialog is in use.

Status codes

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

RUNNING : integer

The message dialog is open.