SDK
v2.0
v2.0
  • Getting Started
    • Welcome
    • Start Here
    • Postback Payout (S2S)
    • Advanced options
      • Sending Media Source Data
      • Sending User Segments / User Info
  • Unity
    • Installation
    • Initialization
    • Obtaining Adverstising ID's
  • Android
    • Prerequisite
    • Installation
    • Initialization
      • Deeplinking Routes
      • Premium Offers
    • Obtaining Adverstising ID's
  • Flutter
    • Prerequisite
    • Installation
    • Initialization
      • Deeplinking Routes
      • Premium Offers
      • changeLanguage
    • Obtaining Advertising ID's
  • REACT NATIVE
    • Prerequisites
    • Installation
    • Initialization
      • Deeplinking Routes
      • Premium Offers
    • Obtaining Advertising ID's
  • Web / Iframe
    • Initialization
    • Premium Widgets
  • Questions and troubleshooting
    • Reporting bugs
    • Known issues
    • Changelog
Powered by GitBook
On this page
  1. Android
  2. Initialization

Premium Offers

PreviousDeeplinking RoutesNextObtaining Adverstising ID's

Last updated 2 months ago

TopPremiumOffers Composable Function

Overview

The TopPremiumOffers composable function is designed to display top premium offers within the application. It utilizes the TopOffers composable to render the offers with specific settings.

Parameters

This function accepts the following parameters with default values:

  • showMore: A boolean indicating whether to display a "show more" option. Defaults to true.

  • showMyOffers: A boolean indicating whether to show the user's personal offers. Defaults to true.

  • showMyOffersEmptyView: A boolean indicating whether to display an empty view when there are no personal offers. Defaults to false.

  • style: An integer specifying the visual style or layout for the offers. Defaults to 2. Available styles are:

    • Available Style options

      • Style 1: Default style.

      • Style 2: Currently used.

      • Style 3: Alternate layout.

      • Style 4: Advanced layout.

Configuration

The TopOffers composable is configured using the provided parameters, except for the style which is always set to 2 regardless of the input.

  • showMore: Set based on the showMore parameter.

  • showMyOffers: Set based on the showMyOffers parameter.

  • showMyOffersEmptyView: Set based on the showMyOffersEmptyView parameter.

  • style: Always set to 2, regardless of the input.

Usage

To use this composable, you can call it through the Tyrads instance like this:

Tyrads.getInstance().TopPremiumOffers(
    showMore = true,
    showMyOffers = true,
    showMyOffersEmptyView = false,
    style = 2,
)

Or, use the default values:

Tyrads.getInstance().TopPremiumOffers()

Notes

  • Style Parameter: The style parameter is not currently used to change the style of the offers; it always defaults to 2. Consider updating the function to use this parameter effectively.

Option 1
Option 2
Option 3
Option 4