Пример #1
0
        public void setStorage(ConsentManager.Storage iabStorage)
        {
            switch (iabStorage)
            {
            case ConsentManager.Storage.NONE:
                getInstance().Call("setStorage",
                                   new AndroidJavaClass("com.explorestack.consent.ConsentManager$Storage")
                                   .GetStatic <AndroidJavaObject>(
                                       "NONE"));
                break;

            case ConsentManager.Storage.SHARED_PREFERENCE:
                getInstance().Call("setStorage",
                                   new AndroidJavaClass("com.explorestack.consent.ConsentManager$Storage")
                                   .GetStatic <AndroidJavaObject>(
                                       "SHARED_PREFERENCE"));
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(iabStorage), iabStorage, null);
            }
        }
Пример #2
0
 public void setStorage(ConsentManager.Storage iabStorage)
 {
     Debug.Log(DummyMessage);
 }