예제 #1
0
        public void Load()
        {
            if (_loaded) return;

            var instance = new TouchNotifications {
                Configuration = _config ?? new TouchNotificationConfiguration()
            };

            Mvx.RegisterSingleton<INotifications>(instance);

            _loaded = true;
        }
예제 #2
0
        public void Load()
        {
            if (_loaded)
            {
                return;
            }

            var instance = new TouchNotifications {
                Configuration = _config ?? new TouchNotificationConfiguration()
            };

            Mvx.RegisterSingleton <INotifications>(instance);

            _loaded = true;
        }