phatal / SocialWorker-1

【Unity】Twitter、Facebook、Line、Instagram、メールへの簡易連携Asset

Home Page:http://qiita.com/yedo/items/7e76dbf58bab34042bc1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SocialWorker

SocialWorker

SocialWorkerは、iOS/AndroidでのTwitter、Facebook、Line、Instagram、メールへの連携を簡単に行うことが出来るUnityAssetです。
詳しくは以下をご確認下さい。

Japanese/English

Description

SocialWorkerは各種SNSへの簡単なデータの受け渡しをサポートしています。そのため、連携可能なデータはメッセージと画像のみです(SNSによっては微妙に追加で渡せるデータもあったりしますが)。
連携方法は、iOSではURLSchemeを主に使用しており、AndroidではIntentによるデータの受け渡しの方法を取っています。

Requirement

Unity 5.0+
iOS 6.0+
Android 2.3+

Usage

1. SocialWorker Prefab の設置

[SocialWorker/Prefabs/SocialWorker]をHierarchyに設置。

2. スクリプトから連携メソッドを呼ぶ

SocialWorker.PostTwitter(string message, string url, string imagePath, Action<SocialWorkerResult> onResult = null)
SocialWorker.PostFacebook(string imagePath, Action<SocialWorkerResult> onResult = null)
SocialWorker.PostLine(string message, string imagePath, Action<SocialWorkerResult> onResult = null)
SocialWorker.PostInstagram(string imagePath, Action<SocialWorkerResult> onResult = null)
SocialWorker.PostMail(string[] to, string[] cc, string[] bcc, string subject, string message, string imagePath, Action<SocialWorkerResult> onResult = null)
SocialWorker.CreateChooser(string message, string imagePath, Action<SocialWorkerResult> onResult = null)

ss_0.png ss_1.png ss_2.png ss_3.png ss_4.png ss_5.png

Install

本プロジェクトをUnity上にそのままインポートするか、トップ階層にある SocialWorker.unitypackage をご使用下さい。

Author

http://yedo-factory.co.jp/
http://okamura0510.jp/

About

【Unity】Twitter、Facebook、Line、Instagram、メールへの簡易連携Asset

http://qiita.com/yedo/items/7e76dbf58bab34042bc1

License:MIT License


Languages

Language:C# 41.9%Language:Objective-C++ 31.8%Language:Java 26.3%