public static void init( string appId, int age, VungleGender gender ) { if( Application.platform != RuntimePlatform.Android ) return; _plugin.Call( "init", appId, age, (int)gender ); }
public static void init(string appId, int age, VungleGender gender) { if (Application.platform != RuntimePlatform.Android) { return; } _plugin.Call("init", appId, age, (int)gender); }
public static void init( string androidAppId, string iosAppId, int age, VungleGender gender ) { #if UNITY_IPHONE var userData = new Dictionary<string,object>(); if( age > 0 ) { userData["gender"] = (int)gender + 1; userData["age"] = age; } VungleBinding.startWithAppIdAndUserData( iosAppId, userData ); #elif UNITY_ANDROID if( age > 0 ) VungleAndroid.init( androidAppId, age, gender ); else VungleAndroid.init( androidAppId ); #endif }
public static void init(string androidAppId, string iosAppId, int age, VungleGender gender) { #if UNITY_IPHONE var userData = new Dictionary <string, object>(); if (age > 0) { userData["gender"] = (int)gender + 1; userData["age"] = age; } VungleBinding.startWithAppIdAndUserData(iosAppId, userData); #elif UNITY_ANDROID if (age > 0) { VungleAndroid.init(androidAppId, age, gender); } else { VungleAndroid.init(androidAppId); } #endif }