IGKMatchDelegate Interfaccia

Definizione

Questa interfaccia rappresenta il protocollo GKMatchDelegateObjective-C .

[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
Derivato
Attributi
Implementazioni

Commenti

Una classe che implementa questa interfaccia (e sottoclassi NSObject) verrà esportata in Objective-C come implementazione del protocollo Objective-C rappresentata da questa interfaccia.

Una classe può anche implementare membri di questa interfaccia per implementare membri dal protocollo.

Proprietà

Nome Descrizione
Handle

Handle (puntatore) alla rappresentazione dell'oggetto non gestito.

(Ereditato da INativeObject)

Metodi

Nome Descrizione
DataReceived(GKMatch, NSData, String)

Gli sviluppatori non devono usare questo metodo deprecato. Gli sviluppatori devono usare invece "DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)".

DataReceivedForRecipient(GKMatch, NSData, GKPlayer, GKPlayer)

Metodo chiamato quando riceve recipient i dati da un altro playeroggetto .

DataReceivedFromPlayer(GKMatch, NSData, GKPlayer)

Metodo chiamato quando i dati vengono ricevuti da un lettore.

Failed(GKMatch, NSError)

Metodo chiamato quando una partita non può connettersi a nessuno dei giocatori.

ShouldReinviteDisconnectedPlayer(GKMatch, GKPlayer)

Metodo chiamato quando un giocatore viene disconnesso da una corrispondenza a due giocatori.

ShouldReinvitePlayer(GKMatch, String)

Questa interfaccia rappresenta il protocollo GKMatchDelegateObjective-C .

StateChanged(GKMatch, String, GKPlayerConnectionState)

Questa interfaccia rappresenta il protocollo GKMatchDelegateObjective-C .

StateChangedForPlayer(GKMatch, GKPlayer, GKPlayerConnectionState)

Metodo chiamato quando lo stato di connessione di un lettore cambia.

Metodi di estensione

Nome Descrizione
DataReceived(IGKMatchDelegate, GKMatch, NSData, String)

Gli sviluppatori non devono usare questo metodo deprecato. Gli sviluppatori devono usare invece "DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)".

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

Metodo chiamato quando riceve recipient i dati da un altro playeroggetto .

DataReceivedFromPlayer(IGKMatchDelegate, GKMatch, NSData, GKPlayer)

Metodo chiamato quando i dati vengono ricevuti da un lettore.

Failed(IGKMatchDelegate, GKMatch, NSError)

Metodo chiamato quando una partita non può connettersi a nessuno dei giocatori.

GetHandle(INativeObject)

Questa interfaccia rappresenta il protocollo GKMatchDelegateObjective-C .

GetNonNullHandle(INativeObject, String)

Questa interfaccia rappresenta il protocollo GKMatchDelegateObjective-C .

ShouldReinviteDisconnectedPlayer(IGKMatchDelegate, GKMatch, GKPlayer)

Metodo chiamato quando un giocatore viene disconnesso da una corrispondenza a due giocatori.

ShouldReinvitePlayer(IGKMatchDelegate, GKMatch, String)

Questa interfaccia rappresenta il protocollo GKMatchDelegateObjective-C .

StateChanged(IGKMatchDelegate, GKMatch, String, GKPlayerConnectionState)

Questa interfaccia rappresenta il protocollo GKMatchDelegateObjective-C .

StateChangedForPlayer(IGKMatchDelegate, GKMatch, GKPlayer, GKPlayerConnectionState)

Metodo chiamato quando lo stato di connessione di un lettore cambia.

Si applica a