Skip to main content

Class SherlockUtility

Declaration
public static class SherlockUtility

Methods

GetIapEventName(string)

Declaration
public static string GetIapEventName(string productId)
Returns

System.String

Parameters
TypeName
System.StringproductId

GetIapEventName(string, string)

Declaration
public static string GetIapEventName(string productId, string failReason)
Returns

System.String

Parameters
TypeName
System.StringproductId
System.StringfailReason

GetLevelEventName(int, string)

Declaration
public static string GetLevelEventName(int level, string eventType)
Returns

System.String

Parameters
TypeName
System.Int32level
System.StringeventType

GetLevelEventName(uint, string)

Declaration
public static string GetLevelEventName(uint level, string eventType)
Returns

System.String

Parameters
TypeName
System.UInt32level
System.StringeventType

GetLevelEventName(long, string)

Declaration
public static string GetLevelEventName(long level, string eventType)
Returns

System.String

Parameters
TypeName
System.Int64level
System.StringeventType

GetLevelEventName(ulong, string)

Declaration
public static string GetLevelEventName(ulong level, string eventType)
Returns

System.String

Parameters
TypeName
System.UInt64level
System.StringeventType

GetECPMEventName(int)

Declaration
public static string GetECPMEventName(int ecpm)
Returns

System.String

Parameters
TypeName
System.Int32ecpm

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
TypeName
System.Int32revenueInCents

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
TypeName
System.Int32revenueInCents

GetAdImpressionCountEventName(int)

Event name to fire when Impression Count reaches a certain threshold.

Declaration
public static string GetAdImpressionCountEventName(int impressionCountThreshold)
Returns

System.String

Parameters
TypeName
System.Int32impressionCountThreshold

GetToken<TAnalyticsService>(string)

Declaration
public static string GetToken<TAnalyticsService>(string eventName) where TAnalyticsService : IAnalyticsService
Returns

System.String

Parameters
TypeName
System.StringeventName
Type Parameters
  • TAnalyticsService

TryGetConversionValue(string, out ConversionValue?)

Declaration
public static bool TryGetConversionValue(string eventName, out ConversionValue? conversionValue)
Returns

System.Boolean

Parameters
TypeName
System.StringeventName
System.Nullable<MatchinghamGames.SherlockModule.Models.ConversionValue>conversionValue