Monetizr Developer Hub

Welcome to the Monetizr developer hub. Here you will find user documentation and our API reference guide to get you started.

Get Started    API Reference

Displaying product

After the (initial setup) a reward view can be displayed with a single line of code.

MonetizrClient.Instance.ShowProductForTag("Sample shirt");

Behind the scenes

Calling ShowProductForTag(string) will:

  1. If enabled then immediately show a loading screen;
  2. Try to acquire product info using `GetProduct(string, Action<Product>);
  3. If GetProduct failed then log an error and hide the loading screen;
  4. If GetProduct succeeded then immediately call ShowProduct(Product) for acquired Product;
  5. ShowProduct will initialize the product view with basic information about the product and start downloading product images (image download is controlled by the Product object but the Product Page controller waits until all images are reported as downloaded);
  6. When image download finishes the loading screen will be closed.

To have more detailed control over the product loading process see the guide in Preloading the product page.

Updated 2 months ago

What's Next

Want to have finer control over the product displaying process? We've got you covered!

Preloading product page

Displaying product

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.