IGKMatchDelegate Schnittstelle

Definition

Diese Schnittstelle stellt das Objective-C-Protokoll GKMatchDelegatedar.

[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
Abgeleitet
Attribute
Implementiert

Hinweise

Eine Klasse, die diese Schnittstelle (und Unterklassen NSObject) implementiert, wird in Objective-C exportiert, da das Objective-C Protokoll implementiert wird, das diese Schnittstelle darstellt.

Eine Klasse kann auch Member aus dieser Schnittstelle implementieren, um Member aus dem Protokoll zu implementieren.

Eigenschaften

Name Beschreibung
Handle

Handle (Zeiger) auf die nicht verwaltete Objektdarstellung.

(Geerbt von INativeObject)

Methoden

Name Beschreibung
DataReceived(GKMatch, NSData, String)

Entwickler sollten diese veraltete Methode nicht verwenden. Entwickler sollten stattdessen "DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)" verwenden.

DataReceivedForRecipient(GKMatch, NSData, GKPlayer, GKPlayer)

Methode, die aufgerufen wird, wenn die recipient Daten von einem anderen empfangen werden player.

DataReceivedFromPlayer(GKMatch, NSData, GKPlayer)

Methode, die aufgerufen wird, wenn Daten von einem Spieler empfangen werden.

Failed(GKMatch, NSError)

Methode, die aufgerufen wird, wenn ein Match keine Verbindung mit einem der Spieler herstellen kann.

ShouldReinviteDisconnectedPlayer(GKMatch, GKPlayer)

Methode, die aufgerufen wird, wenn ein Spieler von einem Spiel mit zwei Spielern getrennt wird.

ShouldReinvitePlayer(GKMatch, String)

Diese Schnittstelle stellt das Objective-C-Protokoll GKMatchDelegatedar.

StateChanged(GKMatch, String, GKPlayerConnectionState)

Diese Schnittstelle stellt das Objective-C-Protokoll GKMatchDelegatedar.

StateChangedForPlayer(GKMatch, GKPlayer, GKPlayerConnectionState)

Methode, die aufgerufen wird, wenn sich der Verbindungsstatus eines Spielers ändert.

Erweiterungsmethoden

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

Entwickler sollten diese veraltete Methode nicht verwenden. Entwickler sollten stattdessen "DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)" verwenden.

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

Methode, die aufgerufen wird, wenn die recipient Daten von einem anderen empfangen werden player.

DataReceivedFromPlayer(IGKMatchDelegate, GKMatch, NSData, GKPlayer)

Methode, die aufgerufen wird, wenn Daten von einem Spieler empfangen werden.

Failed(IGKMatchDelegate, GKMatch, NSError)

Methode, die aufgerufen wird, wenn ein Match keine Verbindung mit einem der Spieler herstellen kann.

GetHandle(INativeObject)

Diese Schnittstelle stellt das Objective-C-Protokoll GKMatchDelegatedar.

GetNonNullHandle(INativeObject, String)

Diese Schnittstelle stellt das Objective-C-Protokoll GKMatchDelegatedar.

ShouldReinviteDisconnectedPlayer(IGKMatchDelegate, GKMatch, GKPlayer)

Methode, die aufgerufen wird, wenn ein Spieler von einem Spiel mit zwei Spielern getrennt wird.

ShouldReinvitePlayer(IGKMatchDelegate, GKMatch, String)

Diese Schnittstelle stellt das Objective-C-Protokoll GKMatchDelegatedar.

StateChanged(IGKMatchDelegate, GKMatch, String, GKPlayerConnectionState)

Diese Schnittstelle stellt das Objective-C-Protokoll GKMatchDelegatedar.

StateChangedForPlayer(IGKMatchDelegate, GKMatch, GKPlayer, GKPlayerConnectionState)

Methode, die aufgerufen wird, wenn sich der Verbindungsstatus eines Spielers ändert.

Gilt für: