GKMatchmakerViewController.SetHostedPlayerConnected 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SetHostedPlayerConnected(GKPlayer, Boolean) | |
SetHostedPlayerConnected(String, Boolean) |
SetHostedPlayerConnected(GKPlayer, Boolean)
[Foundation.Export("setHostedPlayer:didConnect:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetHostedPlayerConnected (GameKit.GKPlayer playerID, bool connected);
abstract member SetHostedPlayerConnected : GameKit.GKPlayer * bool -> unit
override this.SetHostedPlayerConnected : GameKit.GKPlayer * bool -> unit
参数
- playerID
- GKPlayer
- connected
- Boolean
- 属性
适用于
SetHostedPlayerConnected(String, Boolean)
[Foundation.Export("setHostedPlayer:connected:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'SetHostedPlayerConnected (GKPlayer,bool)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.None, "Use 'SetHostedPlayerConnected (GKPlayer,bool)' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetHostedPlayerConnected (string playerID, bool connected);
abstract member SetHostedPlayerConnected : string * bool -> unit
override this.SetHostedPlayerConnected : string * bool -> unit
参数
- playerID
- String
- connected
- Boolean
- 属性