Exemple #1
0
        public void DidCancel(ISharing sharer)
        {
            var fbArgs = new FBEventArgs <Dictionary <string, object> >(null, FacebookActionStatus.Canceled, "User cancelled facebook operation");

            OnSharing(this, fbArgs);
            _shareTcs?.TrySetResult(new FacebookResponse <Dictionary <string, object> >(fbArgs));
        }
Exemple #2
0
        public void DidFail(ISharing sharer, NSError error)
        {
            var fbArgs = new FBEventArgs <Dictionary <string, object> >(null, FacebookActionStatus.Error, $"Facebook Sharing Failed - {error.Code} - {error.Description}");

            OnSharing(this, fbArgs);
            _shareTcs?.TrySetResult(new FacebookResponse <Dictionary <string, object> >(fbArgs));
        }
 public void DidComplete(ISharing sharer, NSDictionary results)
 {
     SubmitResponse(new ChallengeResponseModel
     {
         ResponseCode    = 1,
         ResponseMessage = "Congratulations!\r\nChallenge Completed!"
     });
 }
        public void DidFail(ISharing sharer, NSError error)
        {
            var alert = new UIAlertView("Sharing Error", error?.LocalizedDescription ?? "You need the native Facebook for iOS app installed for sharing images", this, "Ok");

            alert.Show();

            //var service = sharer as IOSFacebookService;
            //service.SendOpenGraph(this, Challenge);
        }
Exemple #5
0
        public void DidFail(ISharing sharer, NSError error)
        {
            var alert = new UIAlertView("Sharing Error", error?.LocalizedDescription ?? "You need the native Facebook for iOS app installed for sharing images", this, "Ok");

            alert.Show();
            LogHelper.LogUserMessage("FB SHARE DIALOG", error.Description);
            //IFacebookService service = new IOSFacebookService();
            //service.SendOpenGraph(this, Challenge, shareText.Equals(placeholderText) ? string.Empty : shareText);
        }
Exemple #6
0
        internal static ISharing Get()
        {
            if (_Sharing != null)
            {
                return(_Sharing);
            }
            var x = new SharingModel(
                );

            _Sharing           = x;
            x.ApplicationState = Kernel_ApplicationState.Get();
            return(_Sharing);
        }
Exemple #7
0
        public void DidComplete(ISharing sharer, NSDictionary results)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>();

            foreach (var r in results)
            {
                parameters.Add($"{r.Key}", $"{r.Value}");
            }
            var fbArgs = new FBEventArgs <Dictionary <string, object> >(parameters, FacebookActionStatus.Completed);

            OnSharing(this, fbArgs);
            _shareTcs?.TrySetResult(new FacebookResponse <Dictionary <string, object> >(fbArgs));
        }
Exemple #8
0
 public void DidComplete(ISharing sharer, NSDictionary results)
 {
     SL.Manager.PostSubmitShare(ShareTemplate.ShareTransactionID, PostShareCompleteResponse);
 }
 public void DidFail(ISharing sharer, NSError error)
 {
     ShowPopUp("Success", error.Description, null, "Ok", null);
 }
 public void DidComplete(ISharing sharer, NSDictionary results)
 {
     ShowPopUp("Success", "Your post has successfully posted on facebook", null, "Ok", null);
 }
 public void DidCancel(ISharing sharer)
 {
     ShowPopUp("", "User has cancelled", null, "Ok", null);
 }
Exemple #12
0
 public void DidCancel(ISharing sharer)
 {
     Console.WriteLine("DidCancel");
 }
Exemple #13
0
 public void DidFail(ISharing sharer, NSError error)
 {
     Console.WriteLine("DidFail: " + error.DebugDescription);
 }
Exemple #14
0
 public void DidComplete(ISharing sharer, NSDictionary results)
 {
     Console.WriteLine("DidComplete: " + results.DebugDescription);
 }
Exemple #15
0
 public void DidFail(ISharing sharer, NSError error)
 {
 }
		public void DidComplete (ISharing sharer, NSDictionary results)
		{
			if (results.ContainsKey (new NSString ("postId")))
			{
				sharedId = results ["postId"].ToString ();
				new UIAlertView ("Success!!", "Successfully posted to Facebook!", null, "Ok", null).Show ();
				isXamarinShared = true;
			}
		}
 internal static void Rebind(ISharing value)
 {
     _Sharing = value;
 }
 internal static ISharing Get()
 {
     if(_Sharing != null) return _Sharing;
     var x = new SharingModel(
     );
     _Sharing = x;
     x.ApplicationState = Kernel_ApplicationState.Get();
     return _Sharing;
 }
 internal static void Clear()
 {
     _Sharing = null;
 }
		public void DidCancel (ISharing sharer)
		{
			new UIAlertView ("Cancelled", "The share post was cancelled", null, "Ok", null).Show ();
		}
		public void DidFail (ISharing sharer, NSError error)
		{
			new UIAlertView ("Error...", error.Description, null, "Ok", null).Show ();
		}
Exemple #22
0
 internal static void Rebind(ISharing value)
 {
     _Sharing = value;
 }
Exemple #23
0
 public void DidCancel(ISharing sharer)
 {
 }
Exemple #24
0
 internal static void Clear()
 {
     _Sharing = null;
 }
Exemple #25
0
 public void DidComplete(ISharing sharer, NSDictionary results)
 {
 }