-
- All Implemented Interfaces:
public class UnityServices
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumUnityServices.UnityServicesError
-
Method Summary
Modifier and Type Method Description static voidinitialize(Context context, String gameId, boolean testMode, IUnityAdsInitializationListener initializationListener)Initializes Unity Ads. static booleanisSupported()static booleanisInitialized()static StringgetVersion()static voidsetDebugMode(boolean debugMode)Toggles debug mode on/off static booleangetDebugMode()Get current debug mode status -
-
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 appgameId- Unique identifier for a game, given by Unity Ads admin tools or Unity editortestMode- If true, only test ads are showninitializationListener- Listener for IUnityAdsInitializationListener callbacks
-
isSupported
static boolean isSupported()
-
isInitialized
static boolean isInitialized()
-
getVersion
static String getVersion()
-
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
-
-
-
-