Table of Contents

Class ByteBrewModule

Namespace
Titipi.MocaLib

Wraps the ByteBrew SDK for custom event tracking and in-app purchase reporting.

public static class ByteBrewModule
Inheritance
ByteBrewModule
Inherited Members

Properties

IsInitialized

Whether the module has been successfully initialized.

Initialization

Initialize()

Initializes the ByteBrew SDK using the credentials configured in the ByteBrew dashboard asset.

Methods

LogEvent(string)

Logs a named custom event with no additional data.

LogEvent(string, Dictionary<string, object>)

Logs a named custom event with object key-value parameters. All values are converted to strings before being sent to ByteBrew.

LogEvent(string, Dictionary<string, string>)

Logs a named custom event with string key-value parameters.

LogPurchase(Product, string, string)

Reports a validated in-app purchase to ByteBrew for revenue attribution. receipt is the raw Unity IAP receipt string (order.Info.Receipt). Uses the platform-appropriate tracking call (Google Play or Apple App Store).

SetUserProperty(string, string)

Sets a custom user attribute in ByteBrew for segmentation.