Guide.DelayNotifications Method
Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)
public static void DelayNotifications ( TimeSpan delay )
Parameters
- 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.
Windows 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.
Windows Phone Specific Information