Package 

Object UnityServices

    • Constructor Detail

    • Method Detail

      • initialize

         final static Unit 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

         final static Unit setDebugMode(static 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.