예제 #1
0
 /// <summary>
 ///     Подключение к Google Play Srvices
 /// </summary>
 public void ConnectionServies()
 {
     try
     {
         Social.localUser.Authenticate((bool success, string message) =>
         {
             AppDebug.Info($"Loading: {success}");
             if (success)
             {
                 userName = Social.localUser.userName;
                 AppDebug.Info($"User name: {userName}");
             }
             else
             {
                 AppDebug.Error(message);
             }
         });
     }
     catch (Exception ex)
     {
         AppDebug.Error(ex.Message);
     }
 }