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

Description

This interface handles the PS4 on-screen keyboard (ImeDialog).

You can show the keyboard by calling show() and passing a table of options for the new keyboard. The input dialog appears and interacts with a user until the user presses OK or Cancel.

You can determine when the user has finished with the keyboard by calling is_finished(). Alternatively, you can force the keyboard to quit from your script by calling abort().

In either case, call is_finished() until it returns true to indicate that the dialog is ready to be closed, then call close() to get the result and dispose of the keyboard.

Note: You must wait for stingray.PS4ImeDialog.is_finished() to return true before calling stingray.PS4ImeDialog.close(), even if you used abort() to forcefully shut down the keyboard.

Functions

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

This causes stingray.PS4ImeDialog.is_finished() to return true.

Note: The abort() function is an asynchronous operation. You cannot just call:

    abort()
    close()

You must wait for stingray.PS4ImeDialog.is_finished() to return true before calling stingray.PS4ImeDialog.close().

Parameters
This function does not accept any parameters.
Returns

integer

A status code that indicates the result of the operation. May be any of the end status values.

string

The string entered by the user.

Parameters
This function does not accept any parameters.
Returns

boolean

Returns true if the user has finished entering data.

If this function returns true, you must call stingray.PS4ImeDialog.close() to close the dialog.

Parameters
This function does not accept any parameters.
Returns

boolean

Returns true if the ImeDialog box is showing, or false otherwise.

Parameters

options :

ps4_keyboard_options

A table that specifies the settings for the keyboard.

Returns
This function does not return any values.

Only one keyboard dialog can be shown at a time: you cannot call show() if stingray.PS4ImeDialog.is_showing() returns true.

End status codes

Aborted.

END_STATUS_OK : integer

Status OK.
Canceled by the user.

Enter labels

ENTER_LABEL_GO : integer

Go.
Send.

Horizontal alignment

HALIGN_CENTER : integer

Center alignment.

HALIGN_RIGHT : integer

Right alignment.

Language flags

LANGUAGE_DANISH : integer

Danish.

LANGUAGE_DUTCH : integer

Dutch.
UK English.
US English.
Finnish.

LANGUAGE_FRENCH : integer

French.

LANGUAGE_GERMAN : integer

German.
Italian.
Japanese.

LANGUAGE_KOREAN : integer

Korean.
Norwegian.

LANGUAGE_POLISH : integer

Polish.
Brazilian Portuguese.
Portuguese.
Russian.
Chinese (simplified).
Spanish.
LA Spanish.
Swedish.
Chinese (traditional).
Turkish.

Option flags

Disable copy and paste.
External keyboard.
Fixed position.
Forces language.
Multi-line keyboard.
No auto-capitalization.
No learning.

OPTION_PASSWORD : integer

Hides characters.

Keyboard types

Basic Latin keyboard type.

TYPE_MAIL : integer

Mail address keyboard type.

TYPE_NUMBER : integer

Number keyboard type.

TYPE_URL : integer

URL keyboard type.

Vertical alignment

VALIGN_BOTTOM : integer

Bottom alignment.

VALIGN_CENTER : integer

Center alignment.