Esempio n. 1
0
 public static MusicDatabase GetInstance(Context context)
 {
     lock (Padlock)
     {
         if (_instance is null)
         {
             _instance = new MusicDatabase(context.ApplicationContext);
         }
     }
     return(_instance);
 }
 public MusicPlaybackState(Context context)
 {
     _musicDatabase = MusicDatabase.GetInstance(context);
 }
Esempio n. 3
0
 public RecentPlayedStore(Context context)
 {
     _musicDatabase = MusicDatabase.GetInstance(context);
 }