Class AnalyticsOptionsExtensions
Extensions of InitializationOptions for Analytics
Inherited Members
Namespace: Unity.Services.Core.Analytics
Syntax
public static class AnalyticsOptionsExtensions
Methods
SetAnalyticsUserId(InitializationOptions, String)
Stores the user id for Analytics.
Declaration
[Obsolete("SetAnalyticsUserId is deprecated. Please use UnityServices.ExternalUserId instead.", false)]
public static InitializationOptions SetAnalyticsUserId(this InitializationOptions self, string id)
Parameters
Type | Name | Description |
---|---|---|
InitializationOptions | self | The InitializationOptions object to modify |
String | id | The custom user id for Analytics. |
Returns
Type | Description |
---|---|
InitializationOptions | Return |
Exceptions
Type | Condition |
---|---|
ArgumentException | Throws a ArgumentException if id is null or empty. |