public void Dispose() { view.OnSearchText -= OnSearchText; view.OnShouldHide -= OnShouldHidePrompt; userViewsHandler.OnAddUser -= OnAddUserPressed; userViewsHandler.OnRemoveUser -= OnRemoveUserPressed; usersSearchPromise?.Dispose(); userViewsHandler.Dispose(); view.Dispose(); }
public void Dispose() { friendsHandler.OnFriendRemoved -= OnFriendRemoved; searchHandler.OnSearchChanged -= OnSearchResult; view.OnSearchText -= OnSearchText; view.OnShouldHide -= OnShouldHidePrompt; userViewsHandler.OnAddUser -= OnAddUserPressed; userViewsHandler.OnRemoveUser -= OnRemoveUserPressed; friendsHandler.Dispose(); userViewsHandler.Dispose(); view.Dispose(); }