Ejemplo n.º 1
0
        public AndroidBridge()
        {
#if UNITY_ANDROID
            var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
            var activity    = unityPlayer.GetStatic <AndroidJavaObject>("currentActivity");
            _applicationContext = activity.Call <AndroidJavaObject>("getApplicationContext");

            var sdk         = GetSDK();
            var publisherId = PureSDKSettings.ReadOnlyCopy().publisherID;
            sdk.Call("init", publisherId, null);
            isTracking = sdk.Call <bool>("isTracking");
#endif
        }
Ejemplo n.º 2
0
 public override void OnActivate(string searchContext, VisualElement rootElement)
 {
     // This function is called when the user clicks on the MyCustom element in the Settings window.
     settings = PureSDKSettingsEditor.GetOrCreateSettings();
 }