Example #1
0
        public static RecentPlayedStore GetInstance(Context context)
        {
            lock (Padlock)
            {
                if (_instance is null)
                {
                    _instance = new RecentPlayedStore(context.ApplicationContext);
                }
            }

            return(_instance);
        }
Example #2
0
 public override void OnDowngrade(SQLiteDatabase db, int oldVersion, int newVersion)
 {
     MusicPlaybackState.GetInstance(_context).Downgrade(db, oldVersion, newVersion);
     RecentPlayedStore.GetInstance(_context).Downgrade(db, oldVersion, newVersion);
 }
Example #3
0
 public override void OnCreate(SQLiteDatabase db)
 {
     MusicPlaybackState.GetInstance(_context).Create(db);
     RecentPlayedStore.GetInstance(_context).Create(db);
 }