次の方法で共有


Guide.DelayNotifications Method

Delays system notifications for the specified amount of time.

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

Syntax

public static void DelayNotifications (
         TimeSpan delay
)

Parameters

  • delay
    Time, in seconds, of the delay.

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

Remarks

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.

See Also

Reference

Guide Class
Guide Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista