GameService Class

Definition

Provides access to the game service.

public ref class GameService abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GameService final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class GameService
Public Class GameService
Inheritance
Object Platform::Object IInspectable GameService
Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced in v1.0)

Remarks

All members of the Windows.Phone.System.UserProfile.GameServices.Core namespace can only be used by the XBox Live SDK. These APIs cannot be called except by applications that have the ID_CAP_GAMERSERVICES capability.

Properties

ServiceUri

Gets the Uri of the game service.

Methods

GetAuthenticationStatus()

Gets the last authentication result from the game service.

GetGamerProfileAsync()

Retrieves the gamer profile for the current user.

GetInstalledGameItemsAsync()

Retrieves the currently installed game items.

GetPartnerTokenAsync(Uri)

Retrieves the partner token for the specified Uri.

GetPrivilegesAsync()

Retrieves the privilege string for the current user.

GrantAchievement(UInt32)

Grants the specified achievement to the current user.

GrantAvatarAward(UInt32)

Grants the specified avatar award to the current user.

NotifyPartnerTokenExpired(Uri)

Invalidate the cached partner token for the specified Uri.

PostResult(UInt32, GameServiceScoreKind, Int64, GameServiceGameOutcome, IBuffer)

Terminate and post the results of a game.

Applies to