void OnGUISMS() { if (GUILayout.Button("SMS", GUILayout.ExpandHeight(true))) { SocialXT.SMS(new string[] { "15555555555" }, "hello"); } }
void OnGUIPost() { if (GUILayout.Button("Twitter Post", GUILayout.ExpandHeight(true))) { SocialXT.Post(SLRequest.SLServiceTypeTwitter, "@vitapoly Your Unity Plugins rock!", _logo, "http://www.U3DXT.com" ); } if (GUILayout.Button("Facebook Post", GUILayout.ExpandHeight(true))) { SocialXT.Post(SLRequest.SLServiceTypeFacebook, "Super fun games from vitapoly!", null, "http://www.vitapoly.com" ); } if (GUILayout.Button("Sina Weibo Post", GUILayout.ExpandHeight(true))) { SocialXT.Post(SLRequest.SLServiceTypeSinaWeibo, "My first weibo from U3DXT Social by vitapoly.", _logo, "http://www.U3DXT.com" ); } }
void OnGUIInstagram() { if (GUILayout.Button("Instagram", GUILayout.ExpandHeight(true))) { if (!SocialXT.Instagram(_logo, "Sharing U3DXT on Instagram.")) { Log("Instagram is not installed."); } } }
// ---------- // called when the user attempts to make a social post, and passes the int 1 for twitter, 2 for facebook public static void SendSocialPost(int socialInt) { if (socialInt == 1) { SocialXT.Post(SLRequest.SLServiceTypeTwitter, "Fighting off waves of infection in SAVING TIMMY for iOS!", null, null); } else if (socialInt == 2) { SocialXT.Post(SLRequest.SLServiceTypeFacebook, "Fighting off waves of infection in SAVING TIMMY for iOS!", null, null); } }
void OnGUIActivitySheet() { if (GUILayout.Button("Activity Sheet", GUILayout.ExpandHeight(true))) { SocialXT.Share(new object[] { "You can find the best Unity Plugins at U3DXT.com!", "http://www.U3DXT.com", _logo }); } }
void OnGUIEmail() { if (GUILayout.Button("Email", GUILayout.ExpandHeight(true))) { SocialXT.Mail(new string[] { "*****@*****.**" }, "email subject", "email body", false, _logo ); } }
void OnGUIActivitySheet() { if (GUILayout.Button("Activity Sheet", GUILayout.ExpandHeight(true))) { SocialXT.Share(new object[] { "I am using @vitapoly's awesome U3DXT #Unity3D Plugin. U3DXT.COM #gamedev", "http://www.U3DXT.com", _logo }, new string[] { UIActivity.TypeAssignToContact, UIActivity.TypeCopyToPasteboard }); } }
void OnGUIActivitySheet() { if (GUILayout.Button("Activity Sheet", GUILayout.ExpandHeight(true))) { SocialXT.Share(new object[] { "You can find the best Unity Plugins at U3DXT.com!", "http://www.U3DXT.com", _logo }, new string[] { UIActivity.TypeAssignToContact, UIActivity.TypeCopyToPasteboard }); } }
void OnGUIEmail() { if (GUILayout.Button("Email", GUILayout.ExpandHeight(true))) { SocialXT.Mail(new string[] { "*****@*****.**" }, "U3DXT", "I am using your Unity plugin to send this email. Cool.", true, null as UIImage, false ); } }
public override void DidFinish(MFMessageComposeViewController controller, MessageComposeResult result) { controller.DismissViewController(true, null); SocialXT.OnSMSCompleted(result); }
public override void DidFinish(MFMailComposeViewController controller, MFMailComposeResult result, NSError error) { controller.DismissViewController(true, null); SocialXT.OnMailCompleted(result, error); }