public void ConsentStatusChanged(MoPubBase.Consent.Status newStatus, bool canCollectPersonalInfo) { this._canCollectPersonalInfo = canCollectPersonalInfo; this._currentConsentStatus = newStatus; this._shouldShowConsentDialog = MoPubAndroid.ShouldShowConsentDialog; this._status = "Consent status changed"; }
private void UpdateConsentValues() { this._canCollectPersonalInfo = MoPubAndroid.CanCollectPersonalInfo; this._currentConsentStatus = MoPubAndroid.CurrentConsentStatus; this._shouldShowConsentDialog = MoPubAndroid.ShouldShowConsentDialog; this._isGdprApplicable = MoPubAndroid.IsGdprApplicable; }
public void EmitConsentStatusChangedEvent(string argsJson) { string[] array = DecodeArgs(argsJson, 3); MoPubBase.Consent.Status arg = MoPubBase.Consent.FromString(array[0]); MoPubBase.Consent.Status arg2 = MoPubBase.Consent.FromString(array[1]); bool arg3 = array[2].ToLower() == "true"; MoPubManager.OnConsentStatusChangedEvent?.Invoke(arg, arg2, arg3); }
public void EmitConsentStatusChangedEvent(string argsJson) { string[] array = this.DecodeArgs(argsJson, 3); MoPubBase.Consent.Status arg = MoPubBase.Consent.FromString(array[0]); MoPubBase.Consent.Status arg2 = MoPubBase.Consent.FromString(array[1]); bool arg3 = array[2].ToLower() == "true"; Action <MoPubBase.Consent.Status, MoPubBase.Consent.Status, bool> onConsentStatusChangedEvent = MoPubManager.OnConsentStatusChangedEvent; if (onConsentStatusChangedEvent != null) { onConsentStatusChangedEvent(arg, arg2, arg3); } }
private void OnConsentStatusChangedEvent(MoPubBase.Consent.Status oldStatus, MoPubBase.Consent.Status newStatus, bool canCollectPersonalInfo) { UnityEngine.Debug.Log(string.Concat(new object[] { "OnConsetStatusChangedEvent: old=", oldStatus, " new=", newStatus, " personalInfoOk=", canCollectPersonalInfo })); this._demoGUI.ConsentStatusChanged(newStatus, canCollectPersonalInfo); }
private void OnConsentStatusChangedEvent(MoPubBase.Consent.Status oldStatus, MoPubBase.Consent.Status newStatus, bool canCollectPersonalInfo) { this._demoGUI.ConsentStatusChanged(newStatus, canCollectPersonalInfo); }
public void ConsentStatusChanged(MoPubBase.Consent.Status newStatus, bool canCollectPersonalInfo) { _canCollectPersonalInfo = canCollectPersonalInfo; _currentConsentStatus = newStatus; _shouldShowConsentDialog = MoPubAndroid.ShouldShowConsentDialog; }
private void OnConsentStatusChangedEvent(MoPubBase.Consent.Status oldStatus, MoPubBase.Consent.Status newStatus, bool canCollectPersonalInfo) { UnityEngine.Debug.Log("OnConsetStatusChangedEvent: old=" + oldStatus + " new=" + newStatus + " personalInfoOk=" + canCollectPersonalInfo); ConsentStatusChanged(newStatus, canCollectPersonalInfo); }