v16.3.0
Latest
2020.3+

Class InitializationOptionsExtensions

Utilities to simplify setting options related to this SDK through code.

Inheritance
InitializationOptionsExtensions
Namespace: Unity.Services.Vivox
Syntax
public static class InitializationOptionsExtensions

Methods

SetVivoxCredentials(InitializationOptions, String, String, String, String)

An extension to set the credentials for the Vivox SDK.

Declaration
public static InitializationOptions SetVivoxCredentials(this InitializationOptions self, string server, string domain, string issuer, string tokenKey = "")
Parameters
TypeNameDescription
InitializationOptionsself

The initialization options that are being extended.

Stringserver

The Vivox Server value to set the credentials for.

Stringdomain

The Vivox Domain value to set the credentials for.

Stringissuer

The Vivox Token Issuer to set the credentials for.

StringtokenKey

This is optional because a developer could be leveraging Unity Authentication tokens or vending tokens server-side. If a Vivox Key is not supplied and proper server-side Vivox Access Token generation is not setup, the Vivox package will not function properly.

Returns
TypeDescription
InitializationOptions

Return self. Fluent interface pattern to make it easier to chain set options operations.