public CrashToggleEditor(IDependentToggle analyticsToggle) { _dependentToggle = analyticsToggle; bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(CrashKitEnabled); _toggle = new Toggle.Toggle("Crash*", enabled, OnStateChanged, true).SetTooltip("Crash Kit is dependent on Analytics Kit."); }
public CloudDBToggleEditor(IDependentToggle dependentToggle) { _dependentToggle = dependentToggle; bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(CloudDBEnabled); _toggle = new Toggle.Toggle("Cloud DB*", enabled, OnStateChanged, true).SetTooltip("CloudDB is dependent on Auth Service."); }
public PluginToggleEditor() { bool enabled = HMSPluginSettings.Instance.Settings.GetBool(PluginEnabled, true); _toggle = new Toggle.Toggle("Enable Plugin", enabled, OnStateChanged, true); RefreshDrawer(!enabled); }
public IAPToggleEditor(TabBar tabBar) { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(IAPKitEnabled); _tabView = HMSIAPTabFactory.CreateTab("IAP"); _tabBar = tabBar; _toggle = new Toggle.Toggle("IAP", enabled, OnStateChanged, true); }
public GameServiceToggleEditor(TabBar tabBar, IDependentToggle dependentToggle) { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(GameServiceEnabled); _dependentToggle = dependentToggle; _tabView = HMSGameServiceTabFactory.CreateTab("Game Service"); _tabBar = tabBar; _toggle = new Toggle.Toggle("Game Service*", enabled, OnStateChanged, true).SetTooltip("Game Service is dependent on AccountKit."); }
public RemoteConfigToggleEditor(TabBar tabBar, IDependentToggle analyticsToggle) { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(RemoteConfigEnabled); _dependentToggle = analyticsToggle; _tabView = HMSRemoteConfigTabFactory.CreateTab("Remote Config"); _tabBar = tabBar; _toggle = new Toggle.Toggle("Remote Config*", enabled, OnStateChanged, true).SetTooltip("Remote Config is dependent on Analytics Kit."); }
public CloudDBToggleEditor(TabBar tabBar, IDependentToggle dependentToggle) { _dependentToggle = dependentToggle; _tabView = HMSCloudDBTabFactory.CreateTab("Cloud DB"); _tabBar = tabBar; bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(CloudDBEnabled); _toggle = new Toggle.Toggle("Cloud DB*", enabled, OnStateChanged, true).SetTooltip("CloudDB is dependent on Auth Service."); }
public HMSIAPSettingsDrawer() { _iapSettings = HMSIAPKitSettings.Instance.Settings; _productListSettings = HMSIAPProductListSettings.Instance.Settings; _productManipulator = new IAPProductManipulator(_productListSettings); _initializeOnStartToggle = new Toggle.Toggle("Initialize On Start*", HMSIAPKitSettings.Instance.Settings.GetBool(HMSIAPKitSettings.InitializeOnStart), OnInitializeOnStartToggle).SetTooltip("Obtains product info in Start function."); _productManipulator.OnRefreshRequired += OnIAPProductChanged; OnIAPProductChanged(); SetupSequence(); }
public HMSRemoteConfigSettingsDrawer() { _defaultValueSettings = HMSRemoteDefaultValueSettings.Instance.Settings; _remoteConfigSettings = HMSRemoteConfigSettings.Instance.Settings; _defaultValueManipulator = new DefaultValueManipulator(_defaultValueSettings); _developerModeToggle = new Toggle.Toggle("Developer Mode", _remoteConfigSettings.GetBool(HMSRemoteConfigSettings.DeveloperMode), OnDeveloperModeToggle); _applyDefaultValuesToggle = new Toggle.Toggle("Apply Default Values*", _remoteConfigSettings.GetBool(HMSRemoteConfigSettings.ApplyDefaultValues), OnApplyDefaultValuesToggle).SetTooltip("This will apply default values on start"); _defaultValueManipulator.OnRefreshRequired += OnDefaultValueChanged; OnDefaultValueChanged(); SetupSequence(); }
public HMSAdsSettingsDrawer() { _settings = HMSAdsKitSettings.Instance.Settings; _enableBannerAdsToggle = new Toggle.Toggle("Enable Banner Ads", _settings.GetBool(HMSAdsKitSettings.EnableBannerAd), OnBannerAdsToggleChanged, false); _bannerAdsTextField = new TextFieldWithAccept("Banner Ad ID", _settings.Get(HMSAdsKitSettings.BannerAdID), "Save", OnBannerAdIDSaveButtonClick).SetLabelWidth(0).SetButtonWidth(100); _bannerAdsDisabledDrawer = new DisabledDrawer(_bannerAdsTextField).SetEnabled(!_enableBannerAdsToggle.IsChecked()); _enableInterstitialAdsToggle = new Toggle.Toggle("Enable Interstitial Ads", _settings.GetBool(HMSAdsKitSettings.EnableInterstitialAd), OnInterstitialAdsToggleChanged, false); _interstitialAdsTextField = new TextFieldWithAccept("Interstitial Ad ID", _settings.Get(HMSAdsKitSettings.InterstitialAdID), "Save", OnInterstitialAdIDSaveButtonClick).SetLabelWidth(0).SetButtonWidth(100); _interstitialAdsDisabledDrawer = new DisabledDrawer(_interstitialAdsTextField).SetEnabled(!_enableInterstitialAdsToggle.IsChecked()); _enableRewardedAdsToggle = new Toggle.Toggle("Enable Rewarded Ads", _settings.GetBool(HMSAdsKitSettings.EnableRewardedAd), OnRewardedAdsToggleChanged, false); _rewardedAdsTextField = new TextFieldWithAccept("Rewarded Ad ID", _settings.Get(HMSAdsKitSettings.RewardedAdID), "Save", OnRewardedAdIDSaveButtonClick).SetLabelWidth(0).SetButtonWidth(100); _rewardedAdsDisabledDrawer = new DisabledDrawer(_rewardedAdsTextField).SetEnabled(!_enableRewardedAdsToggle.IsChecked()); _testAdstoggle = new Toggle.Toggle("Use Test Ads*", _settings.GetBool(HMSAdsKitSettings.UseTestAds), OnTestAdsToggleChanged); _testAdstoggle.SetTooltip("This will overwrite all ads with test ads."); SetupSequence(); }
public HMSAdsSettingsDrawer() { _settings = HMSAdsKitSettings.Instance.Settings; _enableBannerAdsToggle = new Toggle.Toggle("Enable Banner Ads", _settings.GetBool(HMSAdsKitSettings.EnableBannerAd), OnBannerAdsToggleChanged, false); _bannerAdsTextField = new TextFieldWithAccept("Banner Ad ID", _settings.Get(HMSAdsKitSettings.BannerAdID), "Save", OnBannerAdIDSaveButtonClick).SetLabelWidth(0).SetButtonWidth(100); _enableBannerAdLoadToggle = new Toggle.Toggle("Show Banner on Load*", _settings.GetBool(HMSAdsKitSettings.ShowBannerOnLoad), OnShowBannerOnLoadChanged, false).SetTooltip("Enabling this will make the banner to be shown right after it finishes loading."); _bannerAdsDisabledDrawer = new DisabledDrawer(new VerticalSequenceDrawer(_bannerAdsTextField, _enableBannerAdLoadToggle)).SetEnabled(!_enableBannerAdsToggle.IsChecked()); _enableInterstitialAdsToggle = new Toggle.Toggle("Enable Interstitial Ads", _settings.GetBool(HMSAdsKitSettings.EnableInterstitialAd), OnInterstitialAdsToggleChanged, false); _interstitialAdsTextField = new TextFieldWithAccept("Interstitial Ad ID", _settings.Get(HMSAdsKitSettings.InterstitialAdID), "Save", OnInterstitialAdIDSaveButtonClick).SetLabelWidth(0).SetButtonWidth(100); _interstitialAdsDisabledDrawer = new DisabledDrawer(_interstitialAdsTextField).SetEnabled(!_enableInterstitialAdsToggle.IsChecked()); _enableRewardedAdsToggle = new Toggle.Toggle("Enable Rewarded Ads", _settings.GetBool(HMSAdsKitSettings.EnableRewardedAd), OnRewardedAdsToggleChanged, false); _rewardedAdsTextField = new TextFieldWithAccept("Rewarded Ad ID", _settings.Get(HMSAdsKitSettings.RewardedAdID), "Save", OnRewardedAdIDSaveButtonClick).SetLabelWidth(0).SetButtonWidth(100); _rewardedAdsDisabledDrawer = new DisabledDrawer(_rewardedAdsTextField).SetEnabled(!_enableRewardedAdsToggle.IsChecked()); _testAdstoggle = new Toggle.Toggle("Use Test Ads*", _settings.GetBool(HMSAdsKitSettings.UseTestAds), OnTestAdsToggleChanged); _testAdstoggle.SetTooltip("This will overwrite all ads with test ads."); SetupSequence(); }
public PushToggleEditor() { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(PushKitEnabled); _toggle = new Toggle.Toggle("Push", enabled, OnStateChanged, true); }
public DriveKitToggleEditor() { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(DriveKitEnabled); _toggle = new Toggle.Toggle("Drive Kit", enabled, OnStateChanged, true); }
public AppMessagingToggleEditor() { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(AppMessagingEnabled); _toggle = new Toggle.Toggle("App Messaging", enabled, OnStateChanged, true); }
public NearbyServiceToggleEditor() { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(NearbyServiceEnabled); _toggle = new Toggle.Toggle("Nearby Service", enabled, OnStateChanged, true); }
public AnalyticsToggleEditor() { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(AnalyticsKitEnabled); _toggle = new Toggle.Toggle("Analytics", enabled, OnStateChanged, true); }