public static MusicPlaybackState GetInstance(Context context)
 {
     lock (Padlock)
     {
         if (_instance is null)
         {
             _instance = new MusicPlaybackState(context.ApplicationContext);
         }
     }
     return(_instance);
 }
Ejemplo n.º 2
0
 public override void OnUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
 {
     MusicPlaybackState.GetInstance(_context).Upgrade(db, oldVersion, newVersion);
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
0
 public override void OnCreate(SQLiteDatabase db)
 {
     MusicPlaybackState.GetInstance(_context).Create(db);
     RecentPlayedStore.GetInstance(_context).Create(db);
 }