internal static extern void GKTurnBasedMatch_participantQuitInTurn( HandleRef self, ref GKTurnBasedParticipant.GKTurnBasedMatchOutcome matchOutcome, /* InteropGKTurnBasedParticipant[] */ IntPtr[] nextParticipantPointers, int nextParticipantsCount, long timeout, byte[] matchData, int matchDataLength, ErrorOnlyCallback callback, IntPtr secondaryCallback);
/// <summary> /// Resigns the player from the match when that player is not the current player. This action does not end the match. /// </summary> /// <param name="matchOutcome">Match outcome.</param> /// <param name="completionHandler">Completion handler.</param> public void ParticipantQuitOutOfTurn(GKTurnBasedParticipant.GKTurnBasedMatchOutcome matchOutcome, Action <NSError> completionHandler) { C.GKTurnBasedMatch_participantQuitOutOfTurn( SelfPtr(), ref matchOutcome, InternalErrorOnlyCallback, PInvokeCallbackUtil.ToIntPtr(completionHandler)); }
/// <summary> /// Resigns the current player from the match without ending the match. /// </summary> /// <param name="matchOutcome">Match outcome.</param> /// <param name="nextParticipants">Next participants.</param> /// <param name="timeout">Timeout.</param> /// <param name="matchData">Match data.</param> /// <param name="completionHandler">Completion handler.</param> public void ParticipantQuitInTurn(GKTurnBasedParticipant.GKTurnBasedMatchOutcome matchOutcome, GKTurnBasedParticipant[] nextParticipants, long timeout, byte[] matchData, Action <NSError> completionHandler) { Util.NullArgumentTest(nextParticipants); Util.NullArgumentTest(matchData); C.GKTurnBasedMatch_participantQuitInTurn( SelfPtr(), ref matchOutcome, nextParticipants.Select(p => p.ToPointer()).ToArray(), nextParticipants.Length, timeout, matchData, matchData.Length, InternalErrorOnlyCallback, PInvokeCallbackUtil.ToIntPtr(completionHandler)); }
internal static extern void GKTurnBasedMatch_participantQuitOutOfTurn( HandleRef self, ref GKTurnBasedParticipant.GKTurnBasedMatchOutcome matchOutcome, ErrorOnlyCallback callback, IntPtr secondaryCallback);