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)); }
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); }
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); }
internal static ISharing Get() { if (_Sharing != null) { return(_Sharing); } var x = new SharingModel( ); _Sharing = x; x.ApplicationState = Kernel_ApplicationState.Get(); return(_Sharing); }
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)); }
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); }
public void DidCancel(ISharing sharer) { Console.WriteLine("DidCancel"); }
public void DidFail(ISharing sharer, NSError error) { Console.WriteLine("DidFail: " + error.DebugDescription); }
public void DidComplete(ISharing sharer, NSDictionary results) { Console.WriteLine("DidComplete: " + results.DebugDescription); }
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 (); }
public void DidCancel(ISharing sharer) { }
public void DidComplete(ISharing sharer, NSDictionary results) { }