Class SherlockUtility
Declaration
public static class SherlockUtility
Methods
GetIapEventName(string)
Declaration
public static string GetIapEventName(string productId)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | productId |
GetIapEventName(string, string)
Declaration
public static string GetIapEventName(string productId, string failReason)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | productId |
System.String | failReason |
GetLevelEventName(int, string)
Declaration
public static string GetLevelEventName(int level, string eventType)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Int32 | level |
System.String | eventType |
GetLevelEventName(uint, string)
Declaration
public static string GetLevelEventName(uint level, string eventType)
Returns
System.String
Parameters
Type | Name |
---|---|
System.UInt32 | level |
System.String | eventType |
GetLevelEventName(long, string)
Declaration
public static string GetLevelEventName(long level, string eventType)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Int64 | level |
System.String | eventType |
GetLevelEventName(ulong, string)
Declaration
public static string GetLevelEventName(ulong level, string eventType)
Returns
System.String
Parameters
Type | Name |
---|---|
System.UInt64 | level |
System.String | eventType |
GetECPMEventName(int)
Declaration
public static string GetECPMEventName(int ecpm)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Int32 | ecpm |
GetCumulativeRevenueEventName(int)
"ecpmCumulativeGreaterThan005" for 5 cents "ecpmCumulativeGreaterThan050" for 50 cents "ecpmCumulativeGreaterThan100" for 1 dollars
Declaration
public static string GetCumulativeRevenueEventName(int revenueInCents)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Int32 | revenueInCents |
GetCumulativeRevenueCountEventName(int)
"ecpmCumulativeCountGreaterThan005" for 5 cents "ecpmCumulativeCountGreaterThan050" for 50 cents "ecpmCumulativeCountGreaterThan100" for 1 dollars
Declaration
public static string GetCumulativeRevenueCountEventName(int revenueInCents)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Int32 | revenueInCents |
GetAdImpressionCountEventName(int)
Event name to fire when Impression Count reaches a certain threshold.
Declaration
public static string GetAdImpressionCountEventName(int impressionCountThreshold)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Int32 | impressionCountThreshold |
GetToken<TAnalyticsService>(string)
Declaration
public static string GetToken<TAnalyticsService>(string eventName) where TAnalyticsService : IAnalyticsService
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | eventName |
Type Parameters
TAnalyticsService
TryGetConversionValue(string, out ConversionValue?)
Declaration
public static bool TryGetConversionValue(string eventName, out ConversionValue? conversionValue)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | eventName |
System.Nullable<MatchinghamGames.SherlockModule.Models.ConversionValue> | conversionValue |