/// <summary> /// Creates a match from an accepted invitation. /// </summary> /// <param name="invite">Invite.</param> /// <param name="completionHandler">Completion handler.</param> public void MatchForInvite(GKInvite invite, Action <GKMatch, NSError> completionHandler) { Util.NullArgumentTest(invite); C.GKMatchmaker_matchForInvite( SelfPtr(), invite.ToPointer(), MatchErrorCallback, PInvokeCallbackUtil.ToIntPtr(completionHandler)); }
/// <summary> /// Initializes a matchmaker view controller to respond to an invitation received from another player. /// </summary> /// <param name="invite">Invite.</param> public GKMatchmakerViewController(GKInvite invite) : this(C.GKMatchmakerViewController_initWithInvite(invite != null ? invite.ToPointer() : IntPtr.Zero)) { // We're using a pointer returned by a native constructor: must call CFRelease(). CoreFoundation.CFType.CFRelease(this.ToPointer()); }