Class GKChallenge

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
GKAchievementChallenge, GKScoreChallenge

public class GKChallenge
extends NSObject
implements NSCoding, NSSecureCoding
  • Constructor Details

    • GKChallenge

      public GKChallenge()
    • GKChallenge

      protected GKChallenge​(NSObject.Handle h, long handle)
    • GKChallenge

      protected GKChallenge​(NSObject.SkipInit skipInit)
    • GKChallenge

      public GKChallenge​(NSCoder coder)
  • Method Details

    • getIssuingPlayer

      public GKPlayer getIssuingPlayer()
    • getReceivingPlayer

      public GKPlayer getReceivingPlayer()
    • getState

      public GKChallengeState getState()
    • getIssueDate

      public NSDate getIssueDate()
    • getCompletionDate

      public NSDate getCompletionDate()
    • getMessage

      public String getMessage()
    • getIssuingPlayerID

      @Deprecated public String getIssuingPlayerID()
      Deprecated.
      Deprecated in iOS 8.0. This property is obsolete, Use issuingPlayer instead
    • getReceivingPlayerID

      @Deprecated public String getReceivingPlayerID()
      Deprecated.
      Deprecated in iOS 8.0. This property is obsolete, Use receivingPlayer instead
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • decline

      public void decline()
    • loadReceivedChallenges

      public static void loadReceivedChallenges​(VoidBlock2<NSArray<GKChallenge>,​NSError> completionHandler)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)