Share via


SignedInGamer.BeginAwardAchievement Method

Starts an asynchronous operation to award an achievement to a locally signed-in gamer.

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

Syntax

public IAsyncResult BeginAwardAchievement (
         string achievementKey,
         AsyncCallback callback,
         Object state
)

Parameters

  • achievementKey
    Identifier specifying the achievement to award.
  • callback
    The method to be called once the asynchronous operation iss finished.
  • state
    State of the asynchronous operation.

Return Value

An IAsyncResult used to track the progress of the method. Call EndAwardAchievement to access these results.

Remarks

Warning

This method retrieves a calculated result only for titles approved to access Xbox LIVE Services through the Xbox LIVE Registered Developer Program. For Xbox LIVE Indie games, this method returns immediately with a predetermined default value.

See Also

Tasks

Working with Asynchronous Methods in XNA Game Studio

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7