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

            case Api.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(Api.ConsentManager.Storage iabStorage)
 {
     consentManagerObjCBridge.setStorage(iabStorage.ToString());
 }
示例#3
0
 public void setStorage(Api.ConsentManager.Storage iabStorage)
 {
     Debug.Log(DummyMessage);
 }