API reference

NetSyncConnection Class

It represents the connection of a network synchronization system that allows multiple clients to connect and communicate with each other in real-time. It provides a way to manage and facilitate real-time communication and data synchronization between multiple clients in a networked environment.

Constructors

NetSyncConnection ( ptr )
Signature
com.meta.horizon.platform.ovr.models.NetSyncConnection.NetSyncConnection(final long ptr)
Parameters
ptr: final long

Methods

getConnectionId ()
A 'long' integer ID which can be used to uniquely identify the network synchronization connection.
Signature
long com.meta.horizon.platform.ovr.models.NetSyncConnection.getConnectionId()
Returns
long  long
getDisconnectReason ()
If the status is com.meta.horizon.platform.ovr.enums.NetSyncConnectionStatus#Disconnected, NetSyncDisconnectReason specifies the reason. com.meta.horizon.platform.ovr.enums.NetSyncDisconnectReason#Unknown - The disconnect reason was unknown. com.meta.horizon.platform.ovr.enums.NetSyncDisconnectReason#LocalTerminated - The disconnect was requested by an user. com.meta.horizon.platform.ovr.enums.NetSyncDisconnectReason#ServerTerminated - The server closed the connection. com.meta.horizon.platform.ovr.enums.NetSyncDisconnectReason#Failed - The initial connection never succeeded. com.meta.horizon.platform.ovr.enums.NetSyncDisconnectReason#Lost - The disconnect was caused by network timeout.
Signature
NetSyncDisconnectReason com.meta.horizon.platform.ovr.models.NetSyncConnection.getDisconnectReason()
Returns
NetSyncDisconnectReason  NetSyncDisconnectReason
getSessionId ()
The ID of the local session. Will be null if the connection is not active.
Signature
long com.meta.horizon.platform.ovr.models.NetSyncConnection.getSessionId()
Returns
long  long
getStatus ()
A NetSyncConnectionStatus that defines the different status of the network synchronization connection. com.meta.horizon.platform.ovr.enums.NetSyncConnectionStatus#Unknown - The current connection status is unknown. com.meta.horizon.platform.ovr.enums.NetSyncConnectionStatus#Connecting - The connection has been started and the process is ongoing. com.meta.horizon.platform.ovr.enums.NetSyncConnectionStatus#Disconnected - The current connection status is disconnected. com.meta.horizon.platform.ovr.enums.NetSyncConnectionStatus#Connected - The connection has been established.
Signature
NetSyncConnectionStatus com.meta.horizon.platform.ovr.models.NetSyncConnection.getStatus()
Returns
NetSyncConnectionStatus  NetSyncConnectionStatus
getZoneId ()
A string represents the unique identifier within the current application grouping.
Signature
String com.meta.horizon.platform.ovr.models.NetSyncConnection.getZoneId()
Returns
String  String