示例#1
0
        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);
        }
示例#2
0
        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.");
        }