XblAchievementReward

Represents a reward that is associated with the achievement.

Syntax

typedef struct XblAchievementReward {  
    const char* name;  
    const char* description;  
    const char* value;  
    XblAchievementRewardType rewardType;  
    const char* valueType;  
    XblAchievementMediaAsset* mediaAsset;  
} XblAchievementReward  

Members

name
Type: const char*

The UTF-8 encoded localized reward name.

description
Type: const char*

The UTF-8 encoded description of the reward.

value
Type: const char*

The UTF-8 encoded title-defined reward value (data type and content varies by reward type).

rewardType
Type: XblAchievementRewardType

The reward type.

valueType
Type: const char*

The UTF-8 encoded property type of the reward value string.

mediaAsset
Type: XblAchievementMediaAsset*

The media asset associated with the reward. If the reward type is gamerscore, this will be nullptr. If the reward type is in_app, this will be a media asset. If the reward type is art, this may be a media asset or nullptr.

Member of

XblAchievement

Requirements

Header: achievements_c.h

See also

achievements_c