GKLocalPlayerListener.DidRequestMatch 方法

定义

重载

DidRequestMatch(GKPlayer, GKPlayer[])

当 请求与组 friendPlayers匹配时player调用的方法。

DidRequestMatch(GKPlayer, String[])

开发人员不应使用此已弃用的方法。 开发人员应改用“DidRequestMatch (GKPlayer 播放器,GKPlayer[] recipientPlayers) ”。

DidRequestMatch(GKPlayer, GKPlayer[])

当 请求与组 friendPlayers匹配时player调用的方法。

[Foundation.Export("player:didRequestMatchWithRecipients:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidRequestMatch (GameKit.GKPlayer player, GameKit.GKPlayer[] recipientPlayers);
abstract member DidRequestMatch : GameKit.GKPlayer * GameKit.GKPlayer[] -> unit
override this.DidRequestMatch : GameKit.GKPlayer * GameKit.GKPlayer[] -> unit

参数

player
GKPlayer
recipientPlayers
GKPlayer[]
属性

适用于

DidRequestMatch(GKPlayer, String[])

开发人员不应使用此已弃用的方法。 开发人员应改用“DidRequestMatch (GKPlayer 播放器,GKPlayer[] recipientPlayers) ”。

[Foundation.Export("player:didRequestMatchWithPlayers:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'DidRequestMatch (GKPlayer player, GKPlayer[] recipientPlayers)' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidRequestMatch (GameKit.GKPlayer player, string[] playerIDs);
abstract member DidRequestMatch : GameKit.GKPlayer * string[] -> unit
override this.DidRequestMatch : GameKit.GKPlayer * string[] -> unit

参数

player
GKPlayer
playerIDs
String[]
属性

适用于