コード例 #1
0
        public void Load()
        {
            if (_loaded) return;

            var instance = new DroidNotifications
            {
                Configuration = _config ?? new DroidNotificationConfiguration()
            };

            Mvx.RegisterSingleton<INotifications>(instance);

            _loaded = true;
        }
コード例 #2
0
        public void Load()
        {
            if (_loaded)
            {
                return;
            }

            var instance = new DroidNotifications
            {
                Configuration = _config ?? new DroidNotificationConfiguration()
            };

            Mvx.RegisterSingleton <INotifications>(instance);

            _loaded = true;
        }