示例#1
0
    public void Dispose()
    {
        view.OnSearchText             -= OnSearchText;
        view.OnShouldHide             -= OnShouldHidePrompt;
        userViewsHandler.OnAddUser    -= OnAddUserPressed;
        userViewsHandler.OnRemoveUser -= OnRemoveUserPressed;

        usersSearchPromise?.Dispose();
        userViewsHandler.Dispose();
        view.Dispose();
    }
示例#2
0
    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();
    }