SK.AppFocus

static AppFocus AppFocus{ get }

Description

This tells about the app’s current focus state, whether it’s active and receiving input, or if it’s backgrounded or hidden. This can be important since apps may still run and render when unfocused, as the app may still be visible behind the app that does have focus.

Examples

Checking for changes in application focus

static AppFocus lastFocus = AppFocus.Hidden;
static void CheckFocus()
{
	if (lastFocus != SK.AppFocus)
	{
		lastFocus = SK.AppFocus;
		Log.Info($"App focus changed to: {lastFocus}");
	}
}




Found an issue with these docs, or have some additional questions? Create an Issue on Github!