private GetSocial() { getSocialImpl = GetSocialFactory.InstantiateGetSocial(); currentUser = new CurrentUser(getSocialImpl); getSocialImpl.SetOnWindowStateChangeListener( () => { IsViewOpened = true; if (onViewOpen != null) { onViewOpen(); } }, () => { IsViewOpened = false; if (onViewClose != null) { onViewClose(); } } ); }