void ProcUISetSaveCallback(ProcUISaveCallbackEx saveCallback, void *arg)
Sets the save callback.
void ProcUIInitEx(ProcUISaveCallbackEx saveCallback, void *arg)
Initialises the ProcUI library for use; using a save callback that takes arguments.
BOOL ProcUIInShutdown()
Determines whether the application is in shutdown and should quit.
void ProcUIClearCallbacks()
Unregister all ProcUI callbacks.
uint32_t(* ProcUICallback)(void *)
Generic ProcUI callback.
void ProcUIShutdown()
Shut down the ProcUI library for the current application.
BOOL ProcUIIsRunning()
Determines whether the ProcUI library is running/initialised.
ProcUIStatus ProcUISubProcessMessages(BOOL block)
ProcUIProcessMessages(), but for secondary cores.
void ProcUIRegisterBackgroundCallback(ProcUICallback callback, void *param, OSTime interval)
Register a callback which will be called periodically while in background.
uint32_t(* ProcUISaveCallbackEx)(void *)
Called when the application needs to save.
ProcUIStatus ProcUIProcessMessages(BOOL block)
Main runloop for ProcUI.
BOOL ProcUIInForeground()
Determines whether the application is in the foreground.
void ProcUIInit(ProcUISaveCallback saveCallback)
Initialises the ProcUI library for use.
void(* ProcUISaveCallback)(void)
Called when the application needs to save.
void ProcUIDrawDoneRelease()
Signifies to ProcUI that the current application has released all foreground resources,...
void ProcUIRegisterCallbackCore(ProcUICallbackType type, ProcUICallback callback, void *param, uint32_t priority, uint32_t core)
Register a callback for certain ProcUI events, executed on the given core.
void ProcUIRegisterCallback(ProcUICallbackType type, ProcUICallback callback, void *param, uint32_t priority)
Register a callback for certain ProcUI events.
@ PROCUI_CALLBACK_ACQUIRE
Application acquires the foreground.
@ PROCUI_CALLBACK_RELEASE
Application must release the foreground.
@ PROCUI_CALLBACK_NET_IO_STOP
Application must stop using networking.
@ PROCUI_CALLBACK_HOME_BUTTON_DENIED
The user attempted to press the HOME button but was denied.
@ PROCUI_CALLBACK_NET_IO_START
Application may start using networking.
@ PROCUI_CALLBACK_EXIT
Application must exit.
@ PROCUI_STATUS_RELEASE_FOREGROUND
The application must release the foregound - see ProcUIDrawDoneRelease()
@ PROCUI_STATUS_IN_FOREGROUND
The application is in the foreground. All resources may be used.
@ PROCUI_STATUS_IN_BACKGROUND
The application is in the background, only limited resources are usable.
@ PROCUI_STATUS_EXITING
The application must release all resources (including ProcUI) and quit.