Share via


IGKMatchDelegate Interface

Definition

This interface represents the Objective-C protocol GKMatchDelegate.

[Foundation.Protocol(Name="GKMatchDelegate", WrapperType=typeof(GameKit.GKMatchDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DataReceived", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSData), typeof(System.String) }, Selector="match:didReceiveData:fromPlayer:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="StateChanged", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(System.String), typeof(GameKit.GKPlayerConnectionState) }, Selector="match:player:didChangeState:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Failed", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSError) }, Selector="match:didFailWithError:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldReinvitePlayer", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(System.String) }, ReturnType=typeof(System.Boolean), Selector="match:shouldReinvitePlayer:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DataReceivedFromPlayer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSData), typeof(GameKit.GKPlayer) }, Selector="match:didReceiveData:fromRemotePlayer:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="StateChangedForPlayer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(GameKit.GKPlayer), typeof(GameKit.GKPlayerConnectionState) }, Selector="match:player:didChangeConnectionState:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldReinviteDisconnectedPlayer", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(GameKit.GKPlayer) }, ReturnType=typeof(System.Boolean), Selector="match:shouldReinviteDisconnectedPlayer:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DataReceivedForRecipient", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSData), typeof(GameKit.GKPlayer), typeof(GameKit.GKPlayer) }, Selector="match:didReceiveData:forRecipient:fromRemotePlayer:")]
public interface IGKMatchDelegate : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="GKMatchDelegate", WrapperType=typeof(GameKit.GKMatchDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Failed", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSError) }, Selector="match:didFailWithError:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DataReceivedFromPlayer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSData), typeof(GameKit.GKPlayer) }, Selector="match:didReceiveData:fromRemotePlayer:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="StateChangedForPlayer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(GameKit.GKPlayer), typeof(GameKit.GKPlayerConnectionState) }, Selector="match:player:didChangeConnectionState:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldReinviteDisconnectedPlayer", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(GameKit.GKPlayer) }, ReturnType=typeof(System.Boolean), Selector="match:shouldReinviteDisconnectedPlayer:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DataReceivedForRecipient", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSData), typeof(GameKit.GKPlayer), typeof(GameKit.GKPlayer) }, Selector="match:didReceiveData:forRecipient:fromRemotePlayer:")]
public interface IGKMatchDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="GKMatchDelegate", WrapperType=typeof(GameKit.GKMatchDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DataReceived", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSData), typeof(System.String) }, Selector="match:didReceiveData:fromPlayer:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="StateChanged", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(System.String), typeof(GameKit.GKPlayerConnectionState) }, Selector="match:player:didChangeState:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Failed", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSError) }, Selector="match:didFailWithError:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldReinvitePlayer", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(System.String) }, ReturnType=typeof(System.Boolean), Selector="match:shouldReinvitePlayer:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DataReceivedFromPlayer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSData), typeof(GameKit.GKPlayer) }, Selector="match:didReceiveData:fromRemotePlayer:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="StateChangedForPlayer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(GameKit.GKPlayer), typeof(GameKit.GKPlayerConnectionState) }, Selector="match:player:didChangeConnectionState:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldReinviteDisconnectedPlayer", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(GameKit.GKPlayer) }, ReturnType=typeof(System.Boolean), Selector="match:shouldReinviteDisconnectedPlayer:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DataReceivedForRecipient", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSData), typeof(GameKit.GKPlayer), typeof(GameKit.GKPlayer) }, Selector="match:didReceiveData:forRecipient:fromRemotePlayer:")>]
type IGKMatchDelegate = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="GKMatchDelegate", WrapperType=typeof(GameKit.GKMatchDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Failed", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSError) }, Selector="match:didFailWithError:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DataReceivedFromPlayer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSData), typeof(GameKit.GKPlayer) }, Selector="match:didReceiveData:fromRemotePlayer:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="StateChangedForPlayer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(GameKit.GKPlayer), typeof(GameKit.GKPlayerConnectionState) }, Selector="match:player:didChangeConnectionState:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldReinviteDisconnectedPlayer", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(GameKit.GKPlayer) }, ReturnType=typeof(System.Boolean), Selector="match:shouldReinviteDisconnectedPlayer:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DataReceivedForRecipient", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(GameKit.GKMatch), typeof(Foundation.NSData), typeof(GameKit.GKPlayer), typeof(GameKit.GKPlayer) }, Selector="match:didReceiveData:forRecipient:fromRemotePlayer:")>]
type IGKMatchDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
DataReceived(GKMatch, NSData, String)

Developers should not use this deprecated method. Developers should use 'DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)' instead.

DataReceivedForRecipient(GKMatch, NSData, GKPlayer, GKPlayer)

Method that is called when the recipient recieves data from another player.

DataReceivedFromPlayer(GKMatch, NSData, GKPlayer)

Method that is called when data is received from a player.

Failed(GKMatch, NSError)

Method that is called when a match cannot connect to any of the players.

ShouldReinviteDisconnectedPlayer(GKMatch, GKPlayer)

Method that is called when a player is disconnected from a two-player match.

ShouldReinvitePlayer(GKMatch, String)
StateChanged(GKMatch, String, GKPlayerConnectionState)
StateChangedForPlayer(GKMatch, GKPlayer, GKPlayerConnectionState)

Method that is called when a player's connection state changes.

Extension Methods

Name Description
DataReceived(IGKMatchDelegate, GKMatch, NSData, String)

Developers should not use this deprecated method. Developers should use 'DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)' instead.

DataReceivedForRecipient(IGKMatchDelegate, GKMatch, NSData, GKPlayer, GKPlayer)

Method that is called when the recipient recieves data from another player.

DataReceivedFromPlayer(IGKMatchDelegate, GKMatch, NSData, GKPlayer)

Method that is called when data is received from a player.

Failed(IGKMatchDelegate, GKMatch, NSError)

Method that is called when a match cannot connect to any of the players.

ShouldReinviteDisconnectedPlayer(IGKMatchDelegate, GKMatch, GKPlayer)

Method that is called when a player is disconnected from a two-player match.

ShouldReinvitePlayer(IGKMatchDelegate, GKMatch, String)
StateChanged(IGKMatchDelegate, GKMatch, String, GKPlayerConnectionState)
StateChangedForPlayer(IGKMatchDelegate, GKMatch, GKPlayer, GKPlayerConnectionState)

Method that is called when a player's connection state changes.

GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to