Export (0) Print
Expand All

Guide.DelayNotifications Method

Delays system notifications for a specified time.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)

public static void DelayNotifications (
         TimeSpan delay


Type: TimeSpan

Time, in seconds, of the delay.

Calling this function while notifications are already delayed has no effect. The maximum delay is 120 seconds. If the specified duration exceeds the maximum, the maximum value is used.

Bb975359.note(en-us,XNAGameStudio.41).gifWindows Phone Specific Information
This method cannot be used on Windows Phone. If called, it throws a NotSupportedException.

Use DelayNotifications to suppress pop-up notifications during critical times such as cut scenes. Once the delay interval has passed, any deferred notifications are individually displayed in the order they were sent.

Titles cannot call DelayNotifications multiple times in a row. There must be an opportunity for the system application to display notifications to gamers.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

© 2014 Microsoft