public override void SharePhoto( Texture2D texture2D, Uri photoURL, bool userGenerated, string caption, FacebookDelegate <IShareResult> callback) { MethodArguments args = new MethodArguments(); if (texture2D != null) { var tempPhotoPath = Utilities.SaveTexture2DtoPNG(texture2D, "tempSharePhoto"); args.AddUri("photo_url", new Uri(tempPhotoPath)); } else if (photoURL != null) { args.AddUri("photo_url", photoURL); } args.AddPrimative("user_generated", userGenerated); args.AddString("caption", caption); var sharePhotoCall = new JavaMethodCall <IShareResult>(this, "SharePhoto"); sharePhotoCall.Callback = callback; sharePhotoCall.Call(args); }
public override void AppInvite(Uri appLinkUrl, Uri previewImageUrl, FacebookDelegate <IAppInviteResult> callback) { MethodArguments methodArguments = new MethodArguments(); methodArguments.AddUri("appLinkUrl", appLinkUrl); methodArguments.AddUri("previewImageUrl", previewImageUrl); new AndroidFacebook.JavaMethodCall <IAppInviteResult>(this, "AppInvite") { Callback = callback }.Call(methodArguments); }
public override void ShareLink(Uri contentURL, string contentTitle, string contentDescription, Uri photoURL, FacebookDelegate <IShareResult> callback) { MethodArguments methodArguments = new MethodArguments(); methodArguments.AddUri("content_url", contentURL); methodArguments.AddString("content_title", contentTitle); methodArguments.AddString("content_description", contentDescription); methodArguments.AddUri("photo_url", photoURL); new AndroidFacebook.JavaMethodCall <IShareResult>(this, "ShareLink") { Callback = callback }.Call(methodArguments); }
public override void ShareLink(Uri contentURL, string contentTitle, string contentDescription, Uri photoURL, FacebookDelegate <IShareResult> callback) { MethodArguments methodArguments = new MethodArguments(); methodArguments.AddUri("link", contentURL); methodArguments.AddString("name", contentTitle); methodArguments.AddString("description", contentDescription); methodArguments.AddUri("picture", photoURL); new CanvasFacebook.CanvasUIMethodCall <IShareResult>(this, "feed", "OnShareLinkComplete") { Callback = callback }.Call(methodArguments); }
public override void AppInvite( Uri appLinkUrl, Uri previewImageUrl, FacebookDelegate <IAppInviteResult> callback) { MethodArguments args = new MethodArguments(); args.AddUri("appLinkUrl", appLinkUrl); args.AddUri("previewImageUrl", previewImageUrl); var appInviteCall = new JavaMethodCall <IAppInviteResult>(this, "AppInvite"); appInviteCall.Callback = callback; appInviteCall.Call(args); }
public override void FeedShare(string toId, Uri link, string linkName, string linkCaption, string linkDescription, Uri picture, string mediaSource, FacebookDelegate <IShareResult> callback) { MethodArguments methodArguments = new MethodArguments(); methodArguments.AddString("toId", toId); methodArguments.AddUri("link", link); methodArguments.AddString("linkName", linkName); methodArguments.AddString("linkCaption", linkCaption); methodArguments.AddString("linkDescription", linkDescription); methodArguments.AddUri("picture", picture); methodArguments.AddString("mediaSource", mediaSource); new AndroidFacebook.JavaMethodCall <IShareResult>(this, "FeedShare") { Callback = callback }.Call(methodArguments); }
public override void FeedShare(string toId, Uri link, string linkName, string linkCaption, string linkDescription, Uri picture, string mediaSource, FacebookDelegate <IShareResult> callback) { MethodArguments methodArguments = new MethodArguments(); methodArguments.AddString("to", toId); methodArguments.AddUri("link", link); methodArguments.AddString("name", linkName); methodArguments.AddString("caption", linkCaption); methodArguments.AddString("description", linkDescription); methodArguments.AddUri("picture", picture); methodArguments.AddString("source", mediaSource); new CanvasFacebook.CanvasUIMethodCall <IShareResult>(this, "feed", "OnShareLinkComplete") { Callback = callback }.Call(methodArguments); }
public override void ShareLink( Uri contentURL, string contentTitle, string contentDescription, Uri photoURL, FacebookDelegate <IShareResult> callback) { MethodArguments args = new MethodArguments(); args.AddUri("content_url", contentURL); args.AddString("content_title", contentTitle); args.AddString("content_description", contentDescription); args.AddUri("photo_url", photoURL); var shareLinkCall = new JavaMethodCall <IShareResult>(this, "ShareLink"); shareLinkCall.Callback = callback; shareLinkCall.Call(args); }
public override void ShareLink( Uri contentURL, string contentTitle, string contentDescription, Uri photoURL, FacebookDelegate <IShareResult> callback) { MethodArguments args = new MethodArguments(); args.AddUri("link", contentURL); args.AddString("name", contentTitle); args.AddString("description", contentDescription); args.AddUri("picture", photoURL); var call = new CanvasUIMethodCall <IShareResult>(this, MethodFeed, Constants.OnShareCompleteMethodName); call.Callback = callback; call.Call(args); }
public override void ShareVideo( string contentTitle, string contentDescription, Uri preiviewPhotoURL, Uri videoURL, FacebookDelegate <IShareResult> callback) { MethodArguments args = new MethodArguments(); args.AddString("content_title", contentTitle); args.AddString("content_description", contentDescription); args.AddUri("preview_photo_url", preiviewPhotoURL); args.AddUri("video_url", videoURL); var shareVideoCall = new JavaMethodCall <IShareResult>(this, "ShareVideo"); shareVideoCall.Callback = callback; shareVideoCall.Call(args); }
public override void FeedShare( string toId, Uri link, string linkName, string linkCaption, string linkDescription, Uri picture, string mediaSource, FacebookDelegate <IShareResult> callback) { MethodArguments args = new MethodArguments(); args.AddString("to", toId); args.AddUri("link", link); args.AddString("name", linkName); args.AddString("caption", linkCaption); args.AddString("description", linkDescription); args.AddUri("picture", picture); args.AddString("source", mediaSource); var call = new CanvasUIMethodCall <IShareResult>(this, MethodFeed, Constants.OnShareCompleteMethodName); call.Callback = callback; call.Call(args); }
public override void ShareLink( Uri contentURL, string contentTitle, string contentDescription, Uri photoURL, string hashtag, FacebookDelegate <IShareResult> callback) { if (hashtag != null) { throw new NotImplementedException("ShareLink with hashtag is only implemented for iOS and Android for now. Set it to null."); } MethodArguments args = new MethodArguments(); args.AddUri("link", contentURL); args.AddString("name", contentTitle); args.AddString("description", contentDescription); args.AddUri("picture", photoURL); var call = new CanvasUIMethodCall <IShareResult>(this, MethodFeed, Constants.OnShareCompleteMethodName); call.Callback = callback; call.Call(args); }
public override void UploadVideoToMediaLibrary( string caption, Uri videoUri, FacebookDelegate <IMediaUploadResult> callback) { MethodArguments args = new MethodArguments(); args.AddString("caption", caption); args.AddUri("videoUri", videoUri); var uploadImageToMediaLibrary = new JavaMethodCall <IMediaUploadResult>( this, "UploadVideoToMediaLibrary") { Callback = callback }; uploadImageToMediaLibrary.Call(args); }
public override void UploadImageToMediaLibrary( string caption, Uri imageUri, bool shouldLaunchMediaDialog, FacebookDelegate <IMediaUploadResult> callback) { MethodArguments args = new MethodArguments(); args.AddString("caption", caption); args.AddUri("imageUri", imageUri); args.AddString("shouldLaunchMediaDialog", shouldLaunchMediaDialog.ToString()); var uploadImageToMediaLibrary = new JavaMethodCall <IMediaUploadResult>( this, "UploadImageToMediaLibrary") { Callback = callback }; uploadImageToMediaLibrary.Call(args); }
public override void ScheduleAppToUserNotification( string title, string body, Uri media, int timeInterval, string payload, FacebookDelegate <IScheduleAppToUserNotificationResult> callback) { MethodArguments args = new MethodArguments(); args.AddString("title", title); args.AddString("body", body); args.AddUri("media", media); args.AddPrimative("timeInterval", timeInterval); args.AddString("payload", payload); var scheduleAppToUserNotification = new JavaMethodCall <IScheduleAppToUserNotificationResult>( this, "ScheduleAppToUserNotification") { Callback = callback }; scheduleAppToUserNotification.Call(args); }