GKPeerConnectionState 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一个 枚举,其值指定对等连接的状态。
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.None, null)]
public enum GKPeerConnectionState
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.None, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public enum GKPeerConnectionState
type GKPeerConnectionState =
- 继承
-
GKPeerConnectionState
- 属性
字段
名称 | 值 | 说明 |
---|---|---|
Available | 0 | |
Unavailable | 1 | |
Connected | 2 | |
Disconnected | 3 | |
Connecting | 4 |
适用于
另请参阅
- <xref:GameKit.GKSession.PeersWithConnectionState>
- <xref:GameKit.GKSessionDelegate.PeerChangedState>