Exemplo n.º 1
0
        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);
                }
            });
        }
Exemplo n.º 2
0
 private void BtnProfile_OnClick()
 {
     OnProfile?.Invoke();
 }