public void SetInfo(AppleIdCredential credential)
 {
     userIdentifierLabel.Text = credential.User;
     givenNameLabel.Text      = credential.GivenName ?? "";
     familyNameLabel.Text     = credential.FamilyName ?? "";
     emailLabel.Text          = credential.Email ?? "";
 }
Esempio n. 2
0
 public void CreateUserIdentifier(AppleIdCredential credential)
 {
     try
     {
         GetKeychainItem().SaveItem(credential.User);
     }
     catch (Exception)
     {
         Console.WriteLine("Unable to save userIdentifier to keychain.");
     }
 }
Esempio n. 3
0
        private void DidCompleteAuthWithAppleId(object sender, AppleIdCredential credential)
        {
            // For the purpose of this demo app, show the Apple ID credential information in the ResultViewController.
            if (!(PresentingViewController is ResultViewController viewController))
            {
                return;
            }

            InvokeOnMainThread(() =>
            {
                viewController.SetInfo(credential);

                DismissViewController(true, null);
            });
        }