IGKMatchDelegate Interface
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Deze interface vertegenwoordigt het 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
- Afgeleid
- Kenmerken
- Implementeringen
Opmerkingen
Een klasse die deze interface (en subklassen NSObject) implementeert, wordt geƫxporteerd naar Objective-C als het implementeren van het Objective-C protocol dat deze interface vertegenwoordigt.
Een klasse kan ook leden van deze interface implementeren om leden uit het protocol te implementeren.
Eigenschappen
| Name | Description |
|---|---|
| Handle |
Handle (pointer) naar de onbeheerde objectweergave. (Overgenomen van INativeObject) |
Methoden
| Name | Description |
|---|---|
| DataReceived(GKMatch, NSData, String) |
Ontwikkelaars mogen deze afgeschafte methode niet gebruiken. Ontwikkelaars moeten in plaats daarvan 'DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)' gebruiken. |
| DataReceivedForRecipient(GKMatch, NSData, GKPlayer, GKPlayer) |
Methode die wordt aangeroepen wanneer de |
| DataReceivedFromPlayer(GKMatch, NSData, GKPlayer) |
Methode die wordt aangeroepen wanneer gegevens worden ontvangen van een speler. |
| Failed(GKMatch, NSError) |
Methode die wordt aangeroepen wanneer een wedstrijd geen verbinding kan maken met een van de spelers. |
| ShouldReinviteDisconnectedPlayer(GKMatch, GKPlayer) |
Methode die wordt aangeroepen wanneer een speler wordt losgekoppeld van een wedstrijd met twee spelers. |
| ShouldReinvitePlayer(GKMatch, String) |
Deze interface vertegenwoordigt het Objective-C-protocol |
| StateChanged(GKMatch, String, GKPlayerConnectionState) |
Deze interface vertegenwoordigt het Objective-C-protocol |
| StateChangedForPlayer(GKMatch, GKPlayer, GKPlayerConnectionState) |
Methode die wordt aangeroepen wanneer de verbindingsstatus van een speler verandert. |
Extensiemethoden
| Name | Description |
|---|---|
| DataReceived(IGKMatchDelegate, GKMatch, NSData, String) |
Ontwikkelaars mogen deze afgeschafte methode niet gebruiken. Ontwikkelaars moeten in plaats daarvan 'DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)' gebruiken. |
| DataReceivedForRecipient(IGKMatchDelegate, GKMatch, NSData, GKPlayer, GKPlayer) |
Methode die wordt aangeroepen wanneer de |
| DataReceivedFromPlayer(IGKMatchDelegate, GKMatch, NSData, GKPlayer) |
Methode die wordt aangeroepen wanneer gegevens worden ontvangen van een speler. |
| Failed(IGKMatchDelegate, GKMatch, NSError) |
Methode die wordt aangeroepen wanneer een wedstrijd geen verbinding kan maken met een van de spelers. |
| GetHandle(INativeObject) |
Deze interface vertegenwoordigt het Objective-C-protocol |
| GetNonNullHandle(INativeObject, String) |
Deze interface vertegenwoordigt het Objective-C-protocol |
| ShouldReinviteDisconnectedPlayer(IGKMatchDelegate, GKMatch, GKPlayer) |
Methode die wordt aangeroepen wanneer een speler wordt losgekoppeld van een wedstrijd met twee spelers. |
| ShouldReinvitePlayer(IGKMatchDelegate, GKMatch, String) |
Deze interface vertegenwoordigt het Objective-C-protocol |
| StateChanged(IGKMatchDelegate, GKMatch, String, GKPlayerConnectionState) |
Deze interface vertegenwoordigt het Objective-C-protocol |
| StateChangedForPlayer(IGKMatchDelegate, GKMatch, GKPlayer, GKPlayerConnectionState) |
Methode die wordt aangeroepen wanneer de verbindingsstatus van een speler verandert. |