GKLocalPlayerListener.DidRequestMatch 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DidRequestMatch(GKPlayer, GKPlayer[]) |
当 请求与组 |
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[]
- 属性