API reference
API reference
Select your platform
No SDKs available
No versions available

NetSyncOptions Class

The NetSyncOption configures network connections, focusing on VoIP data streams. It includes 'zone_id' for unique identifiers within the application, 'voip_stream_default' to set default VoIP stream modes, and 'voip_group' to assign a VoIP group upon connection. It can be set when create a new connection and retrieved using Models.NetSyncConnection.

Constructors

NetSyncOptions ()
Creates a new instance of ::NetSyncOptions which is used to customize the option flow. It returns a handle to the newly created options object, which can be used to set various properties for the options.
Signature
Oculus.Platform.NetSyncOptions.NetSyncOptions()

Methods

SetVoipGroup ( value )
If provided, immediately set the voip_group to this value upon connection and can be retrieved using NetSyncSession::VoipGroup
Signature
void Oculus.Platform.NetSyncOptions.SetVoipGroup(string value)
Parameters
value: string
Returns
void
SetVoipStreamDefault ( value )
When a new remote voip user connects, default that connection to this stream type by default. There are three modes: NetSyncVoipStreamMode.Unknown, NetSyncVoipStreamMode.Ambisonic, NetSyncVoipStreamMode.Mono.
Signature
void Oculus.Platform.NetSyncOptions.SetVoipStreamDefault(NetSyncVoipStreamMode value)
Parameters
Returns
void
SetZoneId ( value )
A string represents the unique identifier within the current application grouping.
Signature
void Oculus.Platform.NetSyncOptions.SetZoneId(string value)
Parameters
value: string
Returns
void

Static Methods

operator IntPtr ( options )
This operator allows you to pass an instance of the ::NetSyncOptions class to native C code as an IntPtr. The operator returns the handle of the options object, or IntPtr.Zero if the object is null.
Signature
static Oculus.Platform.NetSyncOptions.operator IntPtr(NetSyncOptions options)
Parameters