Guide.DelayNotifications Method
Delays system notifications for a specified time.
Syntax
'Declaration
Public Shared Sub DelayNotifications ( _
delay As TimeSpan _
)
public static void DelayNotifications (
TimeSpan delay
)
public:
static void DelayNotifications(
TimeSpan delay
)
Parameters
delay
Type: TimeSpanTime, 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.
Remarks
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.
Requirements
Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)
See Also
Reference
Guide Class
Guide Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Windows Phone