uwp_suspend


描述

This function indicates to the system that the app has finished saving data following detection of a suspension request. Calling this function is a requirement for Xbox One submission, and it should always be used in conjunction with the function uwp_is_suspending, as shown in the example below.


语法:

uwp_suspend();


返回:

N/A(无返回值)


例如:

if xboxliveis_suspending()
    {
    scr_Save_Game_Data();
    xboxlivesuspend();
    }

The above code checks to see if the app is going into suspension and if it is it calls a script to save the game data before suspending the game.