GameKit.Challenge.State
-----------------------

The current state of the challenge.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GameKit](component_GameKit.md) | [8.5](newinversion85.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "GameKit.Challenge.State"; ChallengeRef ) 

**MBS**( **"GameKit.Challenge.State";** /\* The current state of the challenge. \*/  
**$ChallengeRef**) /\* The identifier for the challenge.e.g. $challenge \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ChallengeRef | The identifier for the challenge. | $challenge |

### Result

Returns state or error.

### Description

The current state of the challenge.  
Possible values:  
| Invalid | An error occurred. The state of this challenge is not valid. |
|---|---|
| Pending | The challenge has been issued, but is not yet completed nor declined. |
| Completed | The receiving player successfully completed the challenge. |
| Declined | The receiving player declined the challenge. |

### See also

- [GameKit.Challenge.Decline](GameKitChallengeDecline.md)
- [GameKit.Challenge.IssueDate](GameKitChallengeIssueDate.md)
- [GameKit.Challenge.Message](GameKitChallengeMessage.md)
- [GameKit.Challenge.Score](GameKitChallengeScore.md)

This function is free to use.

Created 5th November 2018 , last changed 8th November 2018

  
[GameKit.Challenge.Score](GameKitChallengeScore.md) - [GameKit.DefaultLeaderboardIdentifier](GameKitDefaultLeaderboardIdentifier.md)

[HTML Version](GameKitChallengeState.shtml)