private void init() { MessagingCenter.Subscribe <string, FacebookLoginResult>("FacebookSDK", "OnLogin", (sender, arg) => { if (arg.isSuccess) { if (OnLogin != null) { OnLogin.Invoke(this, arg); } } }); MessagingCenter.Subscribe <string, FacebookProfile>("FacebookSDK", "OnProfile", (sender, arg) => { if (OnProfile != null) { OnProfile.Invoke(this, arg); } }); }
private void BtnProfile_OnClick() { OnProfile?.Invoke(); }