The NpCommerceDialog can currently only be used for the PlayStation Plus dialog.
Other related reference items
close ( )Aborts the NpCommerceDialog and closes it.
|
This function does not accept any parameters. |
This function does not return any values. |
There is usually no need to call this, since the dialog is normally closed by user action.
initialize ( )Initializes the NpCommerceDialog system.
|
This function does not accept any parameters. |
This function does not return any values. |
Must only be called when update() returns stingray.NpCommerceDialog.NONE.
open ( user_id, features )Opens the NpCommerceDialog for the user with the specified ID, with the Playstation Plus features specified.
|
user_id : | integer | The ID of the user. |
features : | integer+ | You can provide one or more of the access value constants defined for the stingray.NpCheck object. The + notation indicates that there may be one or more instances of the specified type. |
This function does not return any values. |
See also stingray.NpCheck.check_plus().
Can only be called when update() returns stingray.NpCommerceDialog.INITIALIZED or stingray.NpCommerceDialog.FINISHED.
Other related reference items
result ( ) : integer, booleanRetrieves the result of the dialog.
|
This function does not accept any parameters. |
integer |
A value from the result constants that indicates the result of the player's interaction with the commerce dialog. |
boolean |
Returns true if the features specified in the last call to open() can be used, or false otherwise. |
Can only be called when update() returns stingray.NpCommerceDialog.FINISHED.
Other related reference items
status ( ) : integerReturns the last updated status of the dialog.
|
This function does not accept any parameters. |
integer |
The current status of the dialog. May be any of the status constants. |
Similar to update(), but does not update the status before returning it. This function is more lightweight than update(), but does not guarantee the most up-to-date information.
terminate ( )Terminates the [NpCommerceDialog[ system and frees related resources.
|
This function does not accept any parameters. |
This function does not return any values. |
If the dialog is open it will be immediately terminated.
update ( ) : integerUpdates and returns the status of the NpCommerceDialog.
|
This function does not accept any parameters. |
integer |
The current status of the dialog. May be any of the status constants. |
Call this function and act upon its results once per frame while the NpCommerceDialog is in use.
Other related reference items
Result constants that can be returned by the result() function to indicate the result of the user's interaction with the dialog.
RESULT_OK : integerOK.
|
RESULT_USER_CANCELED : integerIndicates that the user canceled the purchase.
|
RESULT_USER_PURCHASED : integerIndicates that the user authorized the purchase.
|
Status codes that can be returned by the update() function.
FINISHED : integerThe NpCommerceDialog is closed and finished.
|
Other related reference items
INITIALIZED : integerThe NpCommerceDialog is initialized but not opened.
|
Other related reference items
NONE : integerThe NpCommerceDialog is not initialized or has already beed terminated.
|
Other related reference items
RUNNING : integerThe NpCommerceDialog is open.
|