public override void OnLoadChildren(string parentId, Result result) { if (!_musicProvider.IsInitialized) { result.Detach(); _musicProvider.RetrieveMedia(success => { if (success) { LoadChildrenImpl(parentId, result); } else { UpdatePlaybackState("Unable to get the data."); result.SendResult(new JavaList <MediaBrowser.MediaItem>()); } }); } else { LoadChildrenImpl(parentId, result); } }