{"action":"closed","issue":{"url":"https://api.github.com/repos/konmik/nucleus/issues/67","repository_url":"https://api.github.com/repos/konmik/nucleus","labels_url":"https://api.github.com/repos/konmik/nucleus/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/konmik/nucleus/issues/67/comments","events_url":"https://api.github.com/repos/konmik/nucleus/issues/67/events","html_url":"https://github.com/konmik/nucleus/issues/67","id":133089416,"number":67,"title":"Ok to pass in View to RxPresenter?","user":{"login":"sreejithraman","id":1271305,"avatar_url":"https://avatars.githubusercontent.com/u/1271305?v=3","gravatar_id":"","url":"https://api.github.com/users/sreejithraman","html_url":"https://github.com/sreejithraman","followers_url":"https://api.github.com/users/sreejithraman/followers","following_url":"https://api.github.com/users/sreejithraman/following{/other_user}","gists_url":"https://api.github.com/users/sreejithraman/gists{/gist_id}","starred_url":"https://api.github.com/users/sreejithraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreejithraman/subscriptions","organizations_url":"https://api.github.com/users/sreejithraman/orgs","repos_url":"https://api.github.com/users/sreejithraman/repos","events_url":"https://api.github.com/users/sreejithraman/events{/privacy}","received_events_url":"https://api.github.com/users/sreejithraman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-11T21:15:03Z","updated_at":"2016-03-03T20:41:53Z","closed_at":"2016-03-03T20:41:53Z","body":"As I understand `getView()` is being deprecated. However there are a couple instances where I would need a view without using Rx. In those cases, is it ok to pass in the view to an RxPresenter? I am using the Facebook SDK in my app. When I want to log in a user with Facebook, the SDK uses callbacks to allow me to handle `onSucess()`, `onCancel()`, and `onError()`. Going from the principals of MVP, all the login logic should go inside a Presenter. So in those cases can I do something like this: \r\n\r\n````Java\r\npublic void loginWithFacebook(final LogInMainFragment logInMainFragment) {\r\n        LoginManager.getInstance().logOut();//make sure that user is logged out\r\n\r\n        LoginManager.getInstance().registerCallback(logInMainFragment.getFacebookCallbackManager(),\r\n                new FacebookCallback<LoginResult>() {\r\n                    @Override\r\n                    public void onSuccess(final LoginResult loginResult) {\r\n                             // do things with the view (like starting a new activity) which requires me to have an instance of the view\r\n                    }\r\n\r\n                    @Override\r\n                    public void onCancel() {\r\n                        //do things like hiding progress bars, or displaying dialogs\r\n                    }\r\n\r\n                    @Override\r\n                    public void onError(FacebookException e) {\r\n                         //do things like hiding progress bars, or displaying dialogs\r\n                    }\r\n                });\r\n\r\n        LoginManager.getInstance().logInWithReadPermissions(logInMainFragment, FacebookUtils.getFacebookLoginPermissionsList()); \r\n\r\n    }\r\n````\r\n\r\nBasically in each of those methods, I need a reference to the view to update the view. How would I be able to get references to the view in those situations. I know I am probably missing something, so could you please point me in the right direction. "}}