Package 

Class UnityServices

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • initialize

         static void initialize(Context context, String gameId, boolean testMode, IUnityAdsInitializationListener initializationListener)

        Initializes Unity Ads. Unity Ads should be initialized when app starts.

        Parameters:
        context - Current Android application context of calling app
        gameId - Unique identifier for a game, given by Unity Ads admin tools or Unity editor
        testMode - If true, only test ads are shown
        initializationListener - Listener for IUnityAdsInitializationListener callbacks
      • setDebugMode

         static void setDebugMode(boolean debugMode)

        Toggles debug mode on/off

        Parameters:
        debugMode - If true, debug mode is on and there will be lots of debug output from Unity Services.
      • getDebugMode

         static boolean getDebugMode()

        Get current debug mode status